/* Personnaliser — studio de personnalisation en ligne */

/* Variante plus courte de p64up propre à cette page (12px au lieu de 32px dans la source). */
@keyframes pzup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pz { background: linear-gradient(180deg, #ffffff 0, #f4f7fc 420px, #fbf8ec 100%); }
.pz input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pz input[type=number] { -moz-appearance: textfield; }

/* ---------- En-tête de page ---------- */
.pz-intro {
  padding-top: 40px; padding-bottom: 32px; display: grid; gap: 20px 64px; align-items: end;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .pz-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } }
.pz-intro__main { display: flex; flex-direction: column; gap: 12px; }
.pz-crumb ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.pz-crumb li { display: flex; gap: 8px; }
.pz-crumb a { color: var(--muted); text-decoration: none; }
.pz-crumb a:hover { color: var(--blue); }
.pz-crumb li[aria-current] { color: var(--navy); font-weight: 600; }
.pz-eyebrow { margin: 0; font: 700 13px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.pz-eyebrow span { color: var(--blue); font-weight: 800; letter-spacing: -0.05em; margin-right: 4px; }
.pz-title {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08;
  color: var(--navy); -webkit-text-stroke: 0.025em currentColor; text-wrap: balance;
}
.pz-grad { width: 56px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--yellow)); }
.pz-intro__aside { display: flex; flex-direction: column; gap: 10px; }
.pz-intro__aside p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.pz-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pz-price__value { font-family: var(--font-cond); font-weight: 800; font-size: 28px; color: var(--navy); }
.pz-price__note { font-size: 14px; color: var(--muted); }

/* ---------- Carte du studio ---------- */
.pz-wrap { padding-bottom: 75px; }
.pz-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 68, 116, 0.10), 0 2px 6px rgba(0, 68, 116, 0.04);
}

/* Barre du haut : étapes + Devant / Dos */
.pz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pz-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-step {
  min-height: 42px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; gap: 10px; font: 600 14px var(--font); white-space: nowrap;
  transition: background 200ms ease-out;
}
.pz-step:hover { background: var(--soft); }
.pz-step__num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.pz-step[aria-selected="true"] { background: #fff6cc; font-weight: 700; }
.pz-step[aria-selected="true"] .pz-step__num { background: var(--yellow); }
.pz-views { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; }
.pz-view {
  min-height: 40px; padding: 0 22px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--navy);
  font: 600 14px var(--font); display: flex; align-items: center; gap: 6px; transition: background 200ms ease-out, color 200ms ease-out;
}
.pz-view[aria-selected="true"] { background: #ffffff; color: var(--blue); font-weight: 700; box-shadow: 0 2px 8px rgba(0, 68, 116, 0.12); }
.pz-view__count { font-size: 12px; font-weight: 600; opacity: 0.7; }
.pz-view__count:empty { display: none; }

/* Corps : panneau d'options | aperçu, récapitulatif sous l'aperçu */
.pz-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "canvas" "side" "foot"; }
.pz-main { display: contents; }
@media (min-width: 1080px) {
  .pz-body { grid-template-columns: 360px minmax(0, 1fr); grid-template-areas: "side main"; }
  /* Colonne de droite sur toute la hauteur : espace de travail extensible, récapitulatif en bas */
  .pz-main { grid-area: main; display: flex; flex-direction: column; min-height: 100%; }
  .pz-canvas { flex: 1; }
}
.pz-side { grid-area: side; padding: 20px; min-width: 0; border-top: 1px solid var(--line); }
@media (min-width: 1080px) { .pz-side { border-top: 0; border-right: 1px solid var(--line); } }
.pz-foot { background: #ffffff; }
.pz-canvas { grid-area: canvas; display: flex; flex-direction: column; min-width: 0; }
.pz-foot { grid-area: foot; min-width: 0; border-top: 1px solid var(--line); }

.pz-canvas__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pz-canvas__title { margin: 0; font: 700 17px var(--font); color: var(--navy); }
.pz-canvas__sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pz-canvas__tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.pz-zone-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pz-zone-legend__box { width: 18px; height: 12px; border: 1.5px dashed var(--blue); border-radius: 2px; }
.pz-verified { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); }
.pz-verified__dot { width: 8px; height: 8px; border-radius: 50%; background: #2eb872; box-shadow: 0 0 0 4px rgba(46, 184, 114, 0.18); }
.pz-canvas__area {
  flex: 1; display: flex; flex-direction: column; align-items: stretch; padding: 20px 16px 16px;
  background-color: #fbfcfe;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(0, 120, 204, 0.08), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(252, 212, 8, 0.14), transparent 45%),
    linear-gradient(45deg, #eef2f8 25%, transparent 25%), linear-gradient(-45deg, #eef2f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f8 75%), linear-gradient(-45deg, transparent 75%, #eef2f8 75%);
  background-size: auto, auto, 24px 24px, 24px 24px, 24px 24px, 24px 24px;
  background-position: 0 0, 0 0, 0 0, 0 12px, 12px -12px, -12px 0;
}
.pz-stage-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
@media (min-width: 1080px) { .pz-stage-wrap { position: sticky; top: 92px; } }

.pz-stage {
  position: relative; width: 100%; max-width: min(100%, max(320px, calc((100vh - 230px) * 0.893))); margin: 0 auto;
  aspect-ratio: 500 / 560; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; /* fond : la page défile ; .pz-el reste en none pour le glisser */
}
.pz-stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pz-stage__els { position: absolute; inset: 0; }
.pz-el { position: absolute; outline: 0 solid transparent; outline-offset: 4px; cursor: move; touch-action: none; }
.pz-el.is-selected { outline: 2px dashed var(--blue); }
.pz-el img { width: 100%; display: block; pointer-events: none; }
.pz-el__text { display: block; white-space: pre; text-align: center; line-height: 1.05; }
.pz-el__handle {
  position: absolute; right: -15px; bottom: -15px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue);
  border: 3px solid #ffffff; box-shadow: 0 2px 6px rgba(0, 68, 116, 0.3); cursor: nwse-resize; touch-action: none;
}
/* Carte au centre de l'aperçu vide */
.pz-hint {
  position: absolute; left: 50%; transform: translate(-50%, -50%); width: min(78%, 260px); text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 30px rgba(0, 68, 116, 0.14);
  color: var(--navy); font-weight: 600; font-size: 14px; line-height: 1.4;
}
.pz-hint .ico { width: 26px; height: 26px; background: var(--blue); }
.pz-caption {
  margin: 0; padding: 10px 18px; border-radius: 999px; background: #ffffff; box-shadow: 0 6px 18px rgba(0, 68, 116, 0.08);
  font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center;
}

/* ---------- Panneau d'options ---------- */
.pz-tab { display: flex; flex-direction: column; animation: pzup 250ms ease-out both; }
.pz-sec { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.pz-sec__head, .pz-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pz-sec__meta { font-size: 12px; color: var(--muted); }
.pz-h { margin: 0; font: 700 16px/1.3 var(--font); color: var(--navy); }
.pz-group { display: flex; flex-direction: column; gap: 12px; }
.pz-accent { color: var(--blue); font-weight: 700; }
.pz-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Produits et couleurs : grilles compactes */
.pz-scroller { display: block; }
.pz-arrow { display: none; }
.pz-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pz-thumbs li { min-width: 0; }
.pz-thumb {
  height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #ffffff; text-decoration: none; color: var(--navy); transition: border-color 200ms ease-out, background 200ms ease-out;
}
.pz-thumb:hover { border-color: var(--blue); color: var(--navy); }
.pz-thumb[aria-current="page"] { border: 2px solid var(--navy); background: #fffbea; }
.pz-thumb__img { aspect-ratio: 1 / 1; border-radius: 8px; background: var(--soft); overflow: hidden; display: block; }
.pz-thumb__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pz-thumb__name { font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pz-colors { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }
.pz-swatch {
  flex: none; width: 29px; height: 29px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--c);
  border: 3px solid #ffffff; box-shadow: 0 0 0 1px #c9d5e5; transition: box-shadow 200ms ease-out;
}
.pz-swatch[aria-checked="true"], .pz-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--navy); }

/* Tailles (étape 1) */
.pz-linkbtn {
  min-height: 32px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font: 600 12px var(--font); color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
}
.pz-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pz-chip {
  position: relative; min-height: 50px; padding: 0 6px; border-radius: 12px; cursor: pointer; background: #ffffff; color: var(--navy);
  border: 1.5px solid var(--line); font: 800 17px var(--font-cond); display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}
.pz-chip:hover { border-color: var(--blue); }
.pz-chip[aria-pressed="true"] { border: 2px solid var(--navy); background: #fffbea; color: var(--navy); }
.pz-chip__qty {
  position: absolute; top: -7px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow);
  color: var(--navy); font: 700 11px var(--font); display: flex; align-items: center; justify-content: center;
}

.pz-next {
  width: 100%; min-height: 48px; padding: 0 20px; background: var(--navy); color: #ffffff; border: 0; border-radius: 10px;
  cursor: pointer; font: 700 15px var(--font); transition: background 200ms ease-out;
}
.pz-next:hover { background: var(--blue); }

/* ---------- Étape 2 : design ---------- */
.pz-add { display: flex; flex-direction: column; gap: 10px; }
.pz-label { font-weight: 600; font-size: 14px; color: var(--navy); }
.pz-textbox { display: flex; gap: 8px; }
.pz-input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; font: 400 15px var(--font); color: var(--ink); background: #ffffff;
  border: 1.5px solid #c9d5e5; border-radius: 10px; width: 100%;
}
.pz-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 120, 204, 0.12); }
.pz-btn-add {
  flex: none; min-height: 46px; padding: 0 16px; background: var(--blue); color: #ffffff; border: 0; border-radius: 10px; cursor: pointer;
  font: 700 15px var(--font); transition: background 200ms ease-out;
}
.pz-btn-add:hover { background: var(--navy); }
.pz-drop {
  display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--blue); border-radius: 12px; background: #ffffff;
  cursor: pointer; transition: background 200ms ease-out, border-color 200ms ease-out;
}
.pz-drop:hover, .pz-drop.is-drag { background: #eef5fd; }
.pz-drop.is-drag { border-style: dashed; }
.pz-add:has(.pz-file:focus-visible) .pz-drop { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pz-drop .ico { width: 20px; height: 20px; background: var(--blue); }
.pz-drop__title { display: block; font-weight: 700; font-size: 15px; color: var(--blue); }
.pz-drop__sub { display: block; font-size: 12px; color: var(--muted); }
.pz-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pz-btn-navy {
  min-height: 44px; background: var(--navy); color: #ffffff; border: 0; border-radius: 10px; cursor: pointer; font: 700 15px var(--font);
}
.pz-notice { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #fff6cc; color: var(--navy); font-size: 14px; line-height: 1.5; }

/* Élément sélectionné */
.pz-sel { display: flex; flex-direction: column; gap: 16px; padding: 18px; border: 2px solid var(--blue); border-radius: 12px; background: #f7faff; }
.pz-sel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pz-done { min-height: 40px; padding: 0 12px; background: none; border: 0; cursor: pointer; font: 600 14px var(--font); color: var(--muted); }
.pz-done:hover { color: var(--navy); }
.pz-sel__text { display: flex; flex-direction: column; gap: 12px; }
.pz-sel__text label, .pz-sublabel { font-weight: 600; font-size: 14px; color: var(--navy); }
.pz-textarea {
  padding: 10px 12px; font: 400 16px/1.4 var(--font); background: #ffffff; border: 1.5px solid var(--line); border-radius: 8px;
  resize: vertical; width: 100%;
}
.pz-textarea:focus { border-color: var(--blue); outline: none; }
.pz-fonts, .pz-inks { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-font { min-height: 44px; padding: 0 14px; background: #ffffff; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 17px; color: var(--navy); }
.pz-font[aria-pressed="true"] { border-color: var(--blue); }
.pz-font--sport { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; }
.pz-font--moderne { font-family: 'Barlow', sans-serif; font-weight: 600; }
.pz-font--manuscrite { font-family: 'Kalam', cursive; font-weight: 700; }
.pz-font--classique { font-family: Georgia, serif; font-weight: 700; }
.pz-inks .pz-swatch { flex: initial; }
.pz-ranges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.pz-ranges label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.pz-ranges input { width: 100%; accent-color: var(--blue); min-height: 32px; }
.pz-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-tool {
  min-height: 44px; padding: 0 14px; background: #ffffff; border: 1px solid #c9d5e5; border-radius: 6px; cursor: pointer;
  font: 600 14px var(--font); color: var(--navy);
}
.pz-tool:hover { border-color: var(--blue); }
.pz-tool--danger { display: flex; align-items: center; gap: 6px; color: #b42318; }
.pz-tool--danger:hover { border-color: #b42318; }
.pz-tool--danger .ico { width: 16px; height: 16px; background: currentColor; }

/* Liste des éléments */
.pz-layers { display: flex; flex-direction: column; gap: 8px; }
.pz-layers__title { font-weight: 700; font-size: 15px; color: var(--navy); }
.pz-layers__list { display: flex; flex-direction: column; gap: 6px; }
.pz-layer {
  width: 100%; min-height: 52px; padding: 6px 12px 6px 6px; display: flex; align-items: center; gap: 12px; background: #ffffff;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left; font: 600 15px var(--font); color: var(--navy);
}
.pz-layer[aria-pressed="true"] { background: #f7faff; border-color: var(--blue); }
.pz-layer__thumb {
  width: 40px; height: 40px; flex: none; border-radius: 6px; background: #eef3f9; display: flex; align-items: center; justify-content: center;
  overflow: hidden; font: 800 18px var(--font-cond); color: var(--navy);
}
.pz-layer__thumb img { max-width: 100%; max-height: 100%; display: block; }
.pz-layer__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Fichier joint */
.pz-attach { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.pz-attach .ico { width: 22px; height: 22px; }
.pz-attach__name { flex: 1; min-width: 0; font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-attach__remove { min-height: 40px; padding: 0 10px; background: none; border: 0; cursor: pointer; font: 600 14px var(--font); color: #b42318; }

/* ---------- Étape 3 : quantités, technique ---------- */
.pz-qtys { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pz-qty {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #ffffff;
}
.pz-qty.is-on { border-color: var(--blue); background: #f7faff; }
.pz-qty label { font-weight: 700; font-size: 15px; color: var(--navy); }
.pz-qty__ctrl { display: flex; align-items: center; }
.pz-qty__btn { width: 34px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--navy); border-radius: 6px; }
.pz-qty__btn:hover { background: var(--soft-2); }
.pz-qty__input {
  width: 40px; height: 40px; padding: 0; text-align: center; border: 1px solid var(--line); border-radius: 6px;
  font: 600 16px var(--font); color: var(--navy); background: #ffffff;
}
.pz-err { font-size: 14px; color: #b42318; }
.pz-techs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.pz-tech {
  text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 4px; background: #ffffff; border: 2px solid var(--line);
  border-radius: 10px; cursor: pointer; font-family: var(--font);
}
.pz-tech[aria-checked="true"] { background: #f7faff; border-color: var(--blue); }
.pz-tech[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; }
.pz-tech:hover { border-color: var(--blue); }
.pz-tech__name { font-weight: 700; font-size: 16px; color: var(--navy); }
.pz-tech__desc { font-size: 14px; line-height: 1.45; color: var(--muted); }
.pz-notes { display: flex; flex-direction: column; gap: 8px; }
.pz-notes label { font-weight: 600; font-size: 15px; color: var(--navy); }
.pz-notes label span { font-weight: 400; color: var(--muted); }
.pz-textarea--soft { padding: 12px 14px; line-height: 1.6; background: var(--soft); }
.pz-textarea--soft:focus { background: #ffffff; }

/* ---------- Récapitulatif (bas de l'aperçu) ---------- */
.pz-sum { padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: #ffffff; }
.pz-sum__list { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pz-sum__list div { display: flex; flex-direction: column; gap: 2px; }
.pz-sum__list dt { font-size: 12px; color: var(--muted); }
.pz-sum__list dd { margin: 0; font: 700 15px var(--font); color: var(--navy); }
.pz-added {
  flex: 1 1 100%; padding: 12px 14px; border-radius: 10px; background: #fff6cc; color: var(--navy); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px; animation: pzup 300ms ease-out both;
}
.pz-added span { font-weight: 700; font-size: 15px; }
.pz-added a { color: var(--navy); font-weight: 700; font-size: 14px; text-underline-offset: 4px; }
.pz-errsum { flex: 1 1 100%; font-size: 14px; color: #b42318; }
.pz-errsum:empty { display: none; }
.pz-sum__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.pz-cart-btn {
  min-height: 50px; padding: 0 28px; background: var(--yellow); color: var(--navy); border: 0; border-radius: 10px; cursor: pointer;
  font: 700 16px var(--font); box-shadow: 0 8px 18px rgba(252, 212, 8, 0.35); transition: background 200ms ease-out, transform 200ms ease-out;
}
.pz-cart-btn::after { content: " →"; }
.pz-cart-btn:hover { background: var(--yellow-dark); transform: translateY(-2px); }
@media (max-width: 559px) {
  .pz-sum__actions { margin-left: 0; width: 100%; }
  .pz-cart-btn { width: 100%; }
}

/* ---------- Fiche produit ---------- */
.pz-specs { gap: 40px 80px; align-items: start; }
.pz-specs__intro { display: flex; flex-direction: column; gap: 16px; }
.pz-specs__intro .eyebrow { margin: 0; }
.pz-specs__desc { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.pz-specs__table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #ffffff; }
.pz-specs__table table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.55; }
.pz-specs__table tr { border-top: 1px solid var(--line); }
.pz-specs__table th { text-align: left; vertical-align: top; padding: 16px 22px; width: 38%; font-weight: 600; color: var(--navy); background: #f7faff; }
.pz-specs__table td { padding: 16px 22px; color: var(--muted); }

/* ---------- Guide des tailles (modale) ---------- */
.pz-modal-bg { position: fixed; inset: 0; background: rgba(0, 40, 70, 0.6); z-index: 200; }
.pz-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 210; width: min(92vw, 560px); max-height: 86vh;
  overflow: auto; background: #ffffff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 68, 116, 0.3);
}
.pz-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pz-modal__close {
  width: 44px; height: 44px; border: 1px solid var(--line); background: #ffffff; border-radius: 6px; font-size: 22px; line-height: 1;
  color: var(--navy); cursor: pointer;
}
.pz-modal__intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.pz-modal__foot { margin: 0; font-size: 14px; color: var(--muted); }
.pz-guide { width: 100%; border-collapse: collapse; font-size: 16px; }
.pz-guide thead th { text-align: left; padding: 10px 12px; background: var(--navy); color: #ffffff; font-weight: 700; }
.pz-guide tbody tr { border-bottom: 1px solid var(--line); }
.pz-guide tbody th { text-align: left; padding: 10px 12px; font-weight: 700; color: var(--navy); }
.pz-guide tbody td { padding: 10px 12px; color: var(--muted); }

/* ---------- Mobile : barre d'étapes et aperçu compacts ---------- */
@media (max-width: 599px) {
  .pz-intro { padding-top: 24px; padding-bottom: 22px; }
  .pz-top { padding: 10px; gap: 8px; }
  .pz-steps { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .pz-step { flex-direction: column; min-height: 52px; gap: 2px !important; font-size: 12px !important; }
  .pz-step { justify-content: center; padding: 0 6px; gap: 6px; font-size: 13px; min-width: 0; }
  .pz-step__num { width: 22px; height: 22px; font-size: 12px; }
  .pz-step__label { overflow: hidden; text-overflow: ellipsis; }
  .pz-views { width: 100%; }
  .pz-view { flex: 1; justify-content: center; }
  .pz-canvas__bar { padding: 12px 16px; }
  .pz-canvas__sub, .pz-verified { display: none; }
  .pz-canvas__area { padding: 16px 12px 14px; }
  .pz-side { padding: 18px 16px; }
  .pz-sum { padding: 14px 16px; }
}

/* ---------- Studio v2 : outils, calques, noms et numéros, vérification ---------- */
.pz-history { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.pz-hbtn {
  min-height: 36px; padding: 0 12px; background: #ffffff; border: 1px solid #c9d5e5; border-radius: 8px; cursor: pointer;
  font: 600 13px var(--font); color: var(--navy); display: inline-flex; align-items: center; gap: 6px;
}
.pz-hbtn:hover:not(:disabled) { border-color: var(--blue); }
.pz-hbtn:disabled { opacity: 0.45; cursor: default; }
.pz-hbtn--danger { color: #b42318; margin-left: auto; }
.pz-hbtn--danger:hover:not(:disabled) { border-color: #b42318; }
.pz-el.is-locked { cursor: default; }
.pz-el.is-locked.is-selected { outline-style: solid; outline-color: #8aa4c2; }

.pz-places { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pz-places .pz-sublabel { flex: 1 1 100%; }
.pz-place {
  min-height: 38px; padding: 0 12px; background: #ffffff; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer;
  font: 600 14px var(--font); color: var(--navy);
}
.pz-place:hover { border-color: var(--blue); }
.pz-place[aria-pressed="true"] { border-color: var(--blue); background: #eef5fd; }
.pz-dims { margin: -6px 0 0; font-size: 13px; color: var(--muted); }

.pz-layer-row { display: flex; align-items: center; gap: 6px; }
.pz-layer-row .pz-layer { flex: 1; min-width: 0; }
.pz-layer__ctrl { display: flex; gap: 2px; flex: none; }
.pz-layer__btn {
  min-width: 34px; height: 34px; padding: 0 6px; background: #ffffff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  font: 700 13px var(--font); color: var(--navy);
}
.pz-layer__btn:hover:not(:disabled) { border-color: var(--blue); }
.pz-layer__btn:disabled { opacity: 0.35; cursor: default; }
.pz-layer__btn--del { color: #b42318; font-size: 18px; line-height: 1; }

.pz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.pz-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.pz-check span { color: var(--muted); font-size: 13px; }
.pz-roster { display: flex; flex-direction: column; gap: 10px; }
.pz-roster__head, .pz-roster__row { display: grid; grid-template-columns: minmax(0, 1fr) 58px 92px 34px; gap: 6px; align-items: center; }
.pz-roster__head span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pz-roster__rows { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.pz-roster__row .pz-input { min-height: 40px; padding: 0 8px; font-size: 14px; }
.pz-roster__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-roster__paste { display: flex; flex-direction: column; gap: 8px; }
.pz-roster__paste label { font-size: 13px; line-height: 1.5; color: var(--muted); }
.pz-roster__paste .pz-btn-add { align-self: flex-start; }

.pz-check-views { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pz-check-views figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pz-check-views img { width: 100%; height: auto; aspect-ratio: 500 / 560; border-radius: 10px; border: 1px solid var(--line); background: #eef3f9; }
.pz-check-views figcaption { font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.pz-recap { margin: 12px 0 0; display: grid; gap: 6px; }
.pz-recap div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.45; }
.pz-recap dt { color: var(--muted); }
.pz-recap dd { margin: 0; font-weight: 600; color: var(--navy); }
.pz-alerts { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #fff6cc; color: var(--navy); font-size: 14px; line-height: 1.5; }
.pz-alerts.is-ok { background: #eef8f1; color: #1d5b33; }
.pz-alerts p { margin: 0; }
.pz-alerts__title { font-weight: 700; margin-bottom: 6px !important; }
.pz-alerts ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pz-opt { font-weight: 400; color: var(--muted); }
.pz-rights { margin-bottom: 4px; }
.pz-reassure { margin: 14px 0; padding: 14px 16px; border-left: 3px solid var(--blue); background: #f7faff; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.pz-reassure p { margin: 0; }
.pz-reassure p + p { margin-top: 6px; }
.pz-reassure a { color: var(--blue); font-weight: 700; }
.pz-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pz-save .pz-note { margin: 0; }
.pz-save .pz-note a { color: var(--blue); font-weight: 700; }
.pz-quote-btn {
  min-height: 50px; padding: 0 22px; background: #ffffff; color: var(--navy); border: 2px solid var(--navy); border-radius: 10px; cursor: pointer;
  font: 700 16px var(--font); transition: background 200ms ease-out;
}
.pz-quote-btn:hover { background: #f2f6fb; }
.pz-quote-btn:disabled, .pz-cart-btn:disabled { opacity: 0.7; cursor: progress; }
.pz-sent { background: #e1f4e7; }
.pz-linkbtn[data-pz="restart"] { display: inline; min-height: 0; font-size: 14px; }
@media (max-width: 559px) {
  .pz-quote-btn { width: 100%; }
  .pz-hbtn--danger { margin-left: 0; }
  .pz-roster__head, .pz-roster__row { grid-template-columns: minmax(0, 1fr) 50px 78px 34px; }
}

/* ---------- Studio v3 : formes, rotation rapide, vue 360°, devis intégré ---------- */
.pz-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pz-shape {
  min-height: 64px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #ffffff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--blue);
  font: 600 12px var(--font); transition: border-color 200ms ease-out, background 200ms ease-out;
}
.pz-shape:hover { border-color: var(--blue); background: #f7faff; }
.pz-shape svg { width: 30px; height: 26px; display: block; }
.pz-shape span { color: var(--navy); }
.pz-el__shape { width: 100%; height: auto; display: block; pointer-events: none; }
.pz-layer__thumb svg { width: 26px; height: 26px; display: block; }
.pz-ink-pick {
  position: relative; flex: none; width: 29px; height: 29px; border-radius: 50%; cursor: pointer; overflow: hidden;
  background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); box-shadow: 0 0 0 1px #c9d5e5;
  display: flex; align-items: center; justify-content: center; border: 3px solid #ffffff;
}
.pz-ink-pick span { font: 800 14px var(--font); color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); pointer-events: none; }
.pz-ink-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pz-ink-pick:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pz-rot-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.pz-rot-btns .pz-tool { min-height: 38px; padding: 0 12px; font-size: 13px; }

.pz-hbtn--turn { border-color: var(--blue); color: var(--blue); }
.pz-hbtn--turn[aria-pressed="true"] { background: var(--blue); color: #ffffff; }
.pz-turn { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; animation: pzup 250ms ease-out both; }
.pz-turn[hidden], .pz-stage-wrap[hidden] { display: none; }
.pz-turn__scene { position: relative; width: min(100%, 440px); perspective: 1400px; padding-bottom: 18px; }
.pz-turn__card { position: relative; aspect-ratio: 500 / 560; transform-style: preserve-3d; will-change: transform; }
.pz-turn__face {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 14px 22px rgba(0, 68, 116, 0.16));
}
.pz-turn__face--back { transform: rotateY(180deg); }
.pz-turn__floor { position: absolute; left: 18%; right: 18%; bottom: 0; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 68, 116, 0.18), transparent); }
.pz-turn__ctrl { width: min(100%, 520px); display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #ffffff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 68, 116, 0.08); }
.pz-turn__range { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.pz-turn__range input { width: 100%; accent-color: var(--blue); min-height: 32px; }
.pz-turn__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-turn__btns .pz-tool { flex: 1 1 auto; }
.pz-turn__btns .pz-tool[hidden] { display: none; }
.pz-turn-cta { width: 100%; margin: 0 0 16px; border-color: var(--blue); color: var(--blue); }

/* Section devis */
.pz-devis { padding: 75px 0; background: #fbf8ec; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.pz-devis__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: start; }
@media (min-width: 980px) {
  .pz-devis__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .pz-devis__intro { position: sticky; top: 100px; }
}
.pz-devis__intro { display: flex; flex-direction: column; gap: 14px; }
.pz-devis__intro > p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.pz-devis__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--navy); -webkit-text-stroke: 0.025em currentColor; }
.pz-devis__list { display: grid; gap: 10px; }
.pz-devis__list li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.45; }
.pz-devis__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow);
  color: var(--navy); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pz-devis__tel a { color: var(--blue); font-weight: 700; }
.pz-devis__card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 68, 116, 0.10), 0 2px 6px rgba(0, 68, 116, 0.04);
}
@media (max-width: 599px) {
  .pz-devis { padding: 48px 0; }
  .pz-devis__card { padding: 20px 16px; border-radius: 16px; }
}
.pz-dv { display: flex; flex-direction: column; gap: 16px; }
.pz-dv[hidden] { display: none; }
.pz-dv__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 16px; }
.pz-dv__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pz-dv__field label, .pz-dv__label { font-weight: 600; font-size: 14px; color: var(--navy); }
.pz-dv .pz-input[aria-invalid="true"], .pz-dv .pz-textarea[aria-invalid="true"] { border-color: #b42318; }
.pz-dv .pz-textarea { border-color: #c9d5e5; }
.pz-dv select.pz-input { padding-right: 8px; }
.pz-req { color: #b42318; }
.pz-dv .pz-err:empty { display: none; }
.pz-drop--soft { border-style: dashed; }
.pz-dv:has(#dv-files:focus-visible) .pz-drop--soft { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pz-dv-files { display: flex; flex-direction: column; gap: 6px; }
.pz-dv-files:empty { display: none; }
.pz-dv-file { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 6px 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pz-dv-file.is-over { opacity: 0.6; }
.pz-dv-file__name { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--navy); }
.pz-dv-file__meta { font-size: 12px; color: var(--muted); }
.pz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pz-dv__legal, .pz-dv__rgpd { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.pz-dv__rgpd a { color: var(--blue); }
.pz-dv__submit { align-self: flex-start; }
@media (max-width: 559px) { .pz-dv__submit { align-self: stretch; } }

.pz-dv-crea { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; border: 1.5px dashed #c9d5e5; background: #f7faff; }
.pz-dv-crea.is-on { border: 2px solid var(--blue); background: #eef5fd; }
.pz-dv-crea__thumbs { flex: none; display: flex; gap: 6px; }
.pz-dv-crea__thumbs img { width: 76px; height: auto; aspect-ratio: 500 / 560; border-radius: 8px; background: #eef3f9; border: 1px solid var(--line); display: block; }
.pz-dv-crea__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pz-dv-crea__title { margin: 0; font-weight: 700; font-size: 15px; color: var(--navy); }
.pz-dv-crea__meta { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pz-dv-crea__actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.pz-dv-crea__actions .pz-btn-add { min-height: 40px; font-size: 14px; }
.pz-linkbtn--muted { color: var(--muted); }
@media (max-width: 459px) { .pz-dv-crea { flex-direction: column; align-items: flex-start; } }

.pz-dv-done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; animation: pzup 300ms ease-out both; }
.pz-dv-done[hidden] { display: none; }
.pz-dv-done p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.pz-dv-done h3 { font-size: 20px; outline: none; }
.pz-dv-done__ico { width: 48px; height: 48px; border-radius: 50%; background: #e1f4e7; color: #1d5b33; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pz-dv-done__test { padding: 10px 12px; border-radius: 10px; background: #fff6cc; font-size: 14px !important; }
.pz-dv-done__test[hidden] { display: none; }
.pz-dv-done__test a { color: var(--navy); font-weight: 700; }
.pz-dv-done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pz-dv-done__actions .pz-cart-btn { display: inline-flex; align-items: center; text-decoration: none; }
.pz-wrap { scroll-margin-top: 80px; }
