/* Design tokens: on the configurator AND on the modal overlay, which is
   appended to <body> (outside .ppq-wrap) — otherwise the accent variables are
   undefined there and the primary buttons render white on white. */
.ppq-wrap,
.ppq-modal-overlay {
  --ppq-accent: #0f766e;
  --ppq-accent-strong: #0b5c55;
  --ppq-border: #e2e8f0;
  --ppq-bg: #ffffff;
  --ppq-muted: #64748b;
}
.ppq-wrap {
  --ppq-accent-strong: #0b5c55;
  --ppq-border: #e2e8f0;
  --ppq-bg: #ffffff;
  --ppq-muted: #64748b;
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--ppq-border);
  border-radius: 14px;
  background: var(--ppq-bg);
  font-family: inherit;
}

.ppq-loading { color: var(--ppq-muted); font-size: 0.95rem; }

.ppq-fields,
.ppq-advanced-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.ppq-field { display: flex; flex-direction: column; gap: 0.3rem; }

.ppq-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ppq-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ppq-select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ppq-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: #0f172a;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ppq-select:hover { border-color: #cbd5e1; }
.ppq-select:focus-visible {
  outline: none;
  border-color: var(--ppq-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.ppq-advanced { margin-top: 1rem; }

.ppq-advanced-toggle {
  background: none;
  border: none;
  color: var(--ppq-accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.ppq-advanced-toggle::before { content: '▸ '; }
.ppq-advanced-toggle.ppq-open::before { content: '▾ '; }

.ppq-advanced-fields { margin-top: 0.75rem; }

.ppq-price-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ppq-border);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.ppq-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
}
.ppq-price.ppq-loading-price { opacity: 0.5; }

.ppq-price-note { color: var(--ppq-muted); font-size: 0.9rem; }

.ppq-delivery {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ppq-accent-strong);
}

.ppq-file {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ppq-border);
}
.ppq-file-input {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.ppq-file-hint { margin-top: 0.35rem; font-size: 0.75rem; color: var(--ppq-muted); }
.ppq-file-status { margin-top: 0.35rem; font-size: 0.85rem; }
.ppq-file-ok { color: var(--ppq-accent); font-weight: 600; }
.ppq-file-error { color: #b91c1c; }

.ppq-cart-form { margin-top: 1rem; }

.ppq-debug {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  line-height: 1.5;
}
.ppq-debug strong { color: #fbbf24; }

.ppq-add-to-cart {
  background: var(--ppq-accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background .18s ease, transform .1s ease;
}
.ppq-add-to-cart:hover:not(:disabled) { background: var(--ppq-accent-strong) !important; }
.ppq-add-to-cart:active:not(:disabled) { transform: translateY(1px); }
.ppq-add-to-cart:disabled { opacity: 0.55; cursor: not-allowed; }

.ppq-error {
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

/* Legend for options requiring an adaptation of the configuration */
.ppq-legend {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ppq-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ppq-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f0b429;
  flex: none;
}
.ppq-select.ppq-has-adapt { border-color: #e2e8f0; }

/* "Aide à la sélection" panel (auto-adapted options) */
.ppq-help {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #f3d38a;
  background: #fffaeb;
  color: #78350f;
  font-size: 0.9rem;
}
.ppq-help-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}
.ppq-help-intro { margin: 0 0 0.6rem 0; }
.ppq-help-intro strong { color: #0f172a; }
.ppq-help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ppq-help-list li {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f3e3b6;
}
.ppq-help-prop { font-weight: 600; color: #0f172a; }
.ppq-help-from { color: var(--ppq-muted); text-decoration: line-through; }
.ppq-help-arrow { color: #b45309; font-weight: 700; }
.ppq-help-to { font-weight: 600; color: var(--ppq-accent-strong); }
.ppq-help-actions { margin-top: 0.7rem; display: flex; gap: 0.5rem; }
.ppq-help-ok,
.ppq-help-cancel {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, transform .1s ease;
}
.ppq-help-ok { background: var(--ppq-accent); color: #fff; }
.ppq-help-ok:hover { background: var(--ppq-accent-strong); }
.ppq-help-cancel { background: #fff; color: #0f172a; border-color: #cbd5e1; }
.ppq-help-cancel:hover { background: #f8fafc; }
.ppq-help-ok:active, .ppq-help-cancel:active { transform: translateY(1px); }
@media (max-width: 640px) {
  .ppq-help-list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .ppq-help-arrow { display: none; }
}

/* ---- Spécifications fichier(s) ---------------------------------------- */
.ppq-specs-row { margin-top: 0.75rem; }
.ppq-specs-btn {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  color: var(--ppq-accent-strong);
  border: 1px solid var(--ppq-accent);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ppq-specs-btn:hover { background: var(--ppq-accent); color: #fff; }
.ppq-specs-btn:focus-visible { outline: 2px solid var(--ppq-accent-strong); outline-offset: 2px; }
.ppq-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}
.ppq-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.5;
  max-height: 92vh;
  display: flex; flex-direction: column;
}
.ppq-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
}
.ppq-modal-head h3 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.ppq-modal-close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #cbd5e1; background: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; color: #0f172a;
  transition: background .18s ease;
}
.ppq-modal-close:hover { background: #f1f5f9; }
.ppq-modal-body { padding: 0.5rem 1.5rem 1.5rem; overflow-y: auto; overflow-wrap: anywhere; flex: 1 1 auto; min-height: 0; }
.ppq-modal-head, .ppq-modal-foot { flex: none; }
.ppq-template-inline { color: var(--ppq-accent-strong, #0b5c55) !important; font-weight: 600; text-decoration: underline; }
.ppq-specs-title { margin: 1rem 0 0.5rem; font-size: 1.2rem; font-weight: 600; }
.ppq-specs-table { width: 100%; border-collapse: collapse; }
.ppq-specs-table th, .ppq-specs-table td {
  text-align: left; padding: 0.55rem 0; vertical-align: top;
  border-bottom: 1px solid #f1f5f9; font-weight: 400; font-size: 1rem;
}
.ppq-specs-table th { width: 55%; color: #334155; padding-right: 1rem; }
.ppq-specs-table td { color: #0f172a; }
.ppq-template-link {
  display: inline-block; margin: 0.9rem 0 0.25rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--ppq-accent); color: #fff !important; text-decoration: none; font-weight: 600;
  transition: background .18s ease;
}
.ppq-template-link:hover { background: var(--ppq-accent-strong); }
.ppq-accordion { display: grid; gap: 0.5rem; }
.ppq-acc-item {
  border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
}
.ppq-acc-item summary {
  cursor: pointer; padding: 0.9rem 1rem; font-weight: 600; color: #475569;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.ppq-acc-item summary::-webkit-details-marker { display: none; }
.ppq-acc-item summary::after {
  content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ppq-accent);
  border-bottom: 2px solid var(--ppq-accent); transform: rotate(45deg); transition: transform .18s ease;
  flex: none; margin-left: 1rem;
}
.ppq-acc-item[open] summary::after { transform: rotate(-135deg); }
.ppq-acc-item[open] { background: #fff; }
.ppq-acc-content { padding: 0 1rem 1rem; color: #334155; font-size: 0.95rem; }
.ppq-acc-content p { margin: 0 0 0.6rem; }
.ppq-acc-content ul, .ppq-acc-content ol { margin: 0 0 0.6rem 1.2rem; }
.ppq-acc-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ppq-acc-content a { color: var(--ppq-accent-strong); }
.ppq-muted { color: var(--ppq-muted); font-size: 0.95rem; }
@media (max-width: 640px) {
  .ppq-modal-head h3 { font-size: 1.2rem; }
  .ppq-specs-table th { width: 50%; }
}

/* ---- Lieu de production ------------------------------------------------ */
.ppq-delivery-date { font-weight: 600; color: var(--ppq-accent-strong); }
.ppq-production { margin-top: 0.35rem; font-size: 0.9rem; color: #334155; display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; }
.ppq-flag { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -2px; margin-right: 0.35rem; }
.ppq-country-fr, .ppq-production-grid strong { color: var(--ppq-accent-strong); font-weight: 700; }
.ppq-carrier { color: var(--ppq-muted); }
.ppq-production-grid { width: 100%; margin-top: 0.6rem; border-collapse: collapse; font-size: 0.88rem; }
.ppq-production-grid th { text-align: left; font-weight: 600; color: var(--ppq-muted); padding: 0.35rem 0.5rem; border-bottom: 1px solid #e2e8f0; }
.ppq-production-grid td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #f1f5f9; }
.ppq-production-grid td:last-child, .ppq-production-grid th:last-child { text-align: right; white-space: nowrap; }
.ppq-production-grid tr.ppq-recommended td { background: #eef6f4; }
.ppq-production-grid tr.ppq-recommended td:last-child { font-weight: 700; color: var(--ppq-accent-strong); }
.ppq-badge-rec { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--ppq-accent); color: #fff; font-size: 0.7rem; font-weight: 600; vertical-align: 1px; }

/* ---- Visual choices (pictogram tiles, like Print.com) ------------------- */
.ppq-select-hidden { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }
.ppq-field-icons { position: relative; grid-column: 1 / -1; }
.ppq-tiles { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.35rem; }
.ppq-tile {
  position: relative;
  width: 132px; min-height: 150px;
  padding: 1rem 0.6rem 0.9rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #475569;
  font-size: 0.92rem; line-height: 1.25; text-align: center; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease, box-shadow .18s ease;
}
.ppq-tile:hover { border-color: var(--ppq-accent); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ppq-tile:focus-visible { outline: 2px solid var(--ppq-accent-strong); outline-offset: 2px; }
.ppq-tile:active { transform: translateY(1px); }
.ppq-tile.is-selected { background: var(--ppq-accent); border-color: var(--ppq-accent); color: #fff; font-weight: 700; }
.ppq-tile-icon { width: 64px; height: 64px; object-fit: contain; }
.ppq-tile-label { display: block; }
.ppq-tile-dot { display: none; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #f0b429; }
.ppq-tile.needs-adapt .ppq-tile-dot { display: block; }
@media (max-width: 640px) {
  .ppq-tile { width: calc(50% - 0.4rem); min-height: 130px; }
  .ppq-tile-icon { width: 52px; height: 52px; }
}

/* ---- Generic modal footer / buttons / info sheets ----------------------- */
body.ppq-modal-open { overflow: hidden; }
.ppq-modal-foot {
  display: flex; justify-content: flex-end; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border-top: 1px solid #eef2f7; background: #fff;
  border-radius: 0 0 16px 16px;
}
.ppq-btn-primary, .ppq-btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.7rem 1.4rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none !important; border: 1px solid transparent;
  transition: background .18s ease, transform .1s ease;
}
.ppq-btn-primary { background: var(--ppq-accent, #0f766e); color: #fff !important; }
.ppq-btn-primary:hover { background: var(--ppq-accent-strong, #0b5c55); }
.ppq-btn-secondary { background: #fff; color: #0f172a; border-color: #cbd5e1; }
.ppq-btn-primary:active, .ppq-btn-secondary:active { transform: translateY(1px); }
.ppq-btn-primary.is-disabled { opacity: .55; pointer-events: none; }
.ppq-template-link { margin: 0; display: inline-flex !important; }
.ppq-dl-icon { width: 18px; height: 18px; display: inline-block; position: relative; }
.ppq-dl-icon::before { content: ''; position: absolute; left: 7px; top: 0; width: 3px; height: 10px; background: #fff; border-radius: 2px; }
.ppq-dl-icon::after { content: ''; position: absolute; left: 3px; top: 5px; width: 8px; height: 8px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.ppq-dl-icon { border-bottom: 3px solid #fff; }

.ppq-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-left: 0.45rem; border-radius: 50%; border: 0;
  background: #9db89a; color: #fff; font: 700 13px/1 Georgia, serif; cursor: pointer;
  vertical-align: middle; transition: background .18s ease, transform .1s ease;
}
.ppq-info-btn:hover { background: var(--ppq-accent); }
.ppq-info-btn:focus-visible { outline: 2px solid var(--ppq-accent-strong); outline-offset: 2px; }
.ppq-info-btn:active { transform: scale(.95); }
.ppq-info-card {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.1rem 1.25rem; margin: 0.75rem 0; background: #fff;
}
.ppq-info-card h4 { margin: 0 0 0.6rem; font-size: 1.15rem; font-weight: 700; color: #475569; }
.ppq-info-chars { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.ppq-info-char {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: #f1f5f9; color: #334155; font-size: 0.8rem;
}
.ppq-info-char img { width: 22px; height: 22px; }
.ppq-info-row { display: flex; gap: 1rem; align-items: flex-start; }
.ppq-info-img { width: 180px; max-width: 40%; height: auto; border-radius: 10px; flex: none; }
.ppq-info-text { flex: 1; min-width: 0; color: #334155; font-size: 0.98rem; line-height: 1.6; overflow-wrap: anywhere; }
.ppq-info-text h5 { margin: 0.6rem 0 0.3rem; font-size: 1rem; font-weight: 700; color: #475569; }
.ppq-info-text a { color: var(--ppq-accent-strong); font-weight: 600; }
.ppq-info-text p { margin: 0 0 0.6rem; }
.ppq-info-text ul { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.ppq-info-text li { position: relative; padding-left: 1.2rem; margin-bottom: 0.35rem; }
.ppq-info-text li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: #9db89a; }
.ppq-info-text img { max-width: 100%; height: auto; border-radius: 8px; }
.ppq-info-use { color: var(--ppq-muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  .ppq-info-row { flex-direction: column; }
  .ppq-info-img { max-width: 100%; width: 100%; }
}

/* ---- Gabarit button on the product page (next to "Spécifications") ------- */
.ppq-specs-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.ppq-template-btn {
  display: inline-flex !important; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  background: var(--ppq-accent, #0f766e); color: #fff !important; text-decoration: none !important;
  border: 1px solid var(--ppq-accent, #0f766e); cursor: pointer;
  transition: background .18s ease, transform .1s ease;
}
.ppq-template-btn:hover { background: var(--ppq-accent-strong, #0b5c55); }
.ppq-template-btn:focus-visible { outline: 2px solid var(--ppq-accent-strong, #0b5c55); outline-offset: 2px; }
.ppq-template-btn:active { transform: translateY(1px); }

/* ---- "Personnalisé (largeur x hauteur)" ---------------------------------- */
.ppq-custom-dims {
  margin-top: 0.6rem; padding: 0.85rem 1rem; border-radius: 12px;
  background: #f8fafc; border: 1px dashed #cbd5e1;
}
.ppq-field-wide { grid-column: 1 / -1; }
.ppq-field-wide .ppq-select { max-width: 420px; }
.ppq-dims-row { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; max-width: 520px; }
.ppq-dim-field { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 120px; min-width: 120px; margin: 0; }
.ppq-dim-label { font-size: 0.8rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: .02em; }
.ppq-dim-input { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; overflow: hidden; }
.ppq-dim-input:focus-within { border-color: var(--ppq-accent, #0f766e); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.ppq-dim { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0.55rem 0.7rem !important; font-size: 1rem; box-shadow: none !important; -moz-appearance: textfield; }
.ppq-dim::-webkit-outer-spin-button, .ppq-dim::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ppq-dim.is-invalid { color: #b42318; }
.ppq-dim-unit { padding: 0 0.7rem; color: #64748b; font-size: 0.9rem; border-left: 1px solid #e2e8f0; align-self: stretch; display: flex; align-items: center; background: #f1f5f9; }
.ppq-dim-hint { font-size: 0.75rem; color: #64748b; }
.ppq-dim-x { font-size: 1.3rem; color: #94a3b8; padding-bottom: 1.6rem; }
.ppq-dim-msg { margin-top: 0.5rem; font-size: 0.88rem; color: #b45309; min-height: 0; }
.ppq-dim-msg:empty { display: none; }

/* ---- Photo tiles (option pictures rather than pictograms) --------------- */
.ppq-tile.ppq-tile-photo { padding: 0.5rem 0.5rem 0.8rem; width: 150px; }
.ppq-tile.ppq-tile-photo .ppq-tile-icon { width: 100%; height: 88px; object-fit: cover; border-radius: 8px; }
.ppq-tile.ppq-tile-photo.is-selected { background: #fff; color: var(--ppq-accent-strong, #0b5c55); border-width: 2px; border-color: var(--ppq-accent, #0f766e); }
.ppq-dl-icon-dark::before, .ppq-dl-icon-dark::after { border-color: #fff; background-color: #fff; }

/* ---- Date de livraison (choix) ------------------------------------------ */
.ppq-delivery-choice { margin-top: 0.5rem; }
.ppq-delivery-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--ppq-muted, #64748b); max-width: 420px; }
.ppq-delivery-select { font-size: 0.95rem; }

/* ---- Price impact per option ("+4,00 €") --------------------------------- */
.ppq-tile-price { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ppq-accent-strong, #0b5c55); min-height: 1em; }
.ppq-tile-price:empty { display: none; }
.ppq-tile.is-selected .ppq-tile-price { color: #fff; }

/* ---- Fichier client : bouton en français (l'input natif est masqué) ------ */
.ppq-file-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.35rem; }
.ppq-file-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  background: #fff; color: var(--ppq-accent-strong, #0b5c55) !important;
  border: 1px solid var(--ppq-accent, #0f766e); margin: 0;
  transition: background .18s ease, color .18s ease;
}
.ppq-file-btn:hover { background: var(--ppq-accent, #0f766e); color: #fff !important; }
.ppq-file-btn:focus-within { outline: 2px solid var(--ppq-accent-strong, #0b5c55); outline-offset: 2px; }
.ppq-file-btn .ppq-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.ppq-file-btn-icon { width: 14px; height: 14px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 4px 4px; position: relative; display: inline-block; }
.ppq-file-btn-icon::before { content: ''; position: absolute; left: 4px; top: -8px; width: 2px; height: 11px; background: currentColor; border-radius: 1px; }
.ppq-file-btn-icon::after { content: ''; position: absolute; left: 1px; top: -7px; width: 6px; height: 6px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.ppq-file-name { font-size: 0.9rem; color: var(--ppq-muted, #64748b); overflow-wrap: anywhere; }

/* ---- [proprint_themes] : navigation par thèmes (bannières Print.com) ----- */
.ppq-themes { margin: 1.5rem 0; }
.ppq-themes-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 1rem; color: var(--ppq-text, #0f172a); }
.ppq-themes-grid { display: grid; grid-template-columns: repeat(var(--ppq-themes-cols, 3), minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .ppq-themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ppq-themes-grid { grid-template-columns: 1fr; } }
.ppq-theme-card {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid #e2e8f0; text-decoration: none !important; color: inherit !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06); transition: transform .18s ease, box-shadow .18s ease;
}
.ppq-theme-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .12); }
.ppq-theme-card:focus-visible { outline: 3px solid var(--ppq-accent, #0f766e); outline-offset: 2px; }
.ppq-theme-img { display: block; width: 100%; aspect-ratio: 1250 / 640; object-fit: cover; background: #f1f5f9; }
.ppq-theme-img-empty { background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.ppq-theme-body { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem 1rem; }
.ppq-theme-name { font-weight: 700; font-size: 1.05rem; color: var(--ppq-text, #0f172a); }
.ppq-theme-count { font-size: 0.85rem; color: var(--ppq-muted, #64748b); }
.ppq-theme-cta { margin-top: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--ppq-accent-strong, #0b5c55); }
.ppq-theme-card:hover .ppq-theme-cta { text-decoration: underline; }

/* ---- Aperçu recto/verso ------------------------------------------------- */
.ppq-preview { margin-top: 0.8rem; padding: 0.8rem; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.ppq-preview[hidden] { display: none; }
.ppq-preview-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.ppq-preview-tab, .ppq-preview-single {
  border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 999px; padding: 0.3rem 0.9rem;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.ppq-preview-tab.is-active, .ppq-preview-single { background: var(--ppq-accent, #0f766e); color: #fff; border-color: var(--ppq-accent, #0f766e); }
.ppq-preview-tab:focus-visible { outline: 2px solid var(--ppq-accent-strong, #0b5c55); outline-offset: 2px; }
.ppq-preview-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ppq-preview-thumb { width: 150px; height: 112px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; background: #f4f5f7; }
.ppq-preview-thumb.is-active { border-color: var(--ppq-accent, #0f766e); }
.ppq-preview-loading { font-size: 0.85rem; color: var(--ppq-muted, #64748b); }
.ppq-preview-note { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--ppq-muted, #64748b); }

/* ---- Non disponible actuellement ----------------------------------------- */
.ppq-unavailable { margin-top: 0.4rem; padding: 0.85rem 1rem; border-radius: 12px; background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; }
.ppq-unavailable strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.ppq-unavailable p { margin: 0 0 0.5rem; font-size: 0.92rem; }
.ppq-alt-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ppq-alt-chip { border: 1px solid var(--ppq-accent, #0f766e); background: #fff; color: var(--ppq-accent-strong, #0b5c55); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ppq-alt-chip:hover { background: var(--ppq-accent, #0f766e); color: #fff; }
.ppq-alt-chip:focus-visible { outline: 2px solid var(--ppq-accent-strong, #0b5c55); outline-offset: 2px; }
.ppq-tile.is-unavailable { opacity: .55; border-style: dashed; }
.ppq-tile.is-unavailable .ppq-tile-price { color: #b45309; font-weight: 500; }

/* ---- Guide d'impression ------------------------------------------------- */
.ppq-kb { max-width: 820px; line-height: 1.65; }
.ppq-kb-body h3 { margin: 1.4rem 0 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--ppq-text, #0f172a); }
.ppq-kb-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.5rem 0; }
.ppq-kb-body ul, .ppq-kb-body ol { padding-left: 1.4rem; }
.ppq-kb-faq-title { margin: 2rem 0 0.8rem; font-size: 1.4rem; font-weight: 700; }
.ppq-kb-q { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 0.6rem; background: #fff; }
.ppq-kb-q summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 600; list-style: none; position: relative; }
.ppq-kb-q summary::-webkit-details-marker { display: none; }
.ppq-kb-q summary::after { content: '+'; position: absolute; right: 1rem; top: 0.7rem; font-size: 1.2rem; color: var(--ppq-accent, #0f766e); }
.ppq-kb-q[open] summary::after { content: '–'; }
.ppq-kb-a { padding: 0 1rem 1rem; color: #334155; }
.ppq-kb-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.ppq-kb-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.2rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-decoration: none !important; color: inherit !important; transition: transform .18s ease, box-shadow .18s ease; }
.ppq-kb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.ppq-kb-card-title { font-weight: 700; font-size: 1.05rem; }
.ppq-kb-card-excerpt { font-size: 0.88rem; color: var(--ppq-muted, #64748b); }

/* ---- Bannière thème à la une --------------------------------------------- */
.ppq-hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; background: #0f172a center / cover no-repeat; margin: 0 0 2rem; }
.ppq-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, .78) 100%); }
.ppq-hero-inner { position: relative; padding: 2rem 2.2rem; color: #fff; max-width: 640px; }
.ppq-hero-kicker { display: inline-block; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; background: var(--ppq-accent, #0f766e); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; }
.ppq-hero-title { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; margin: 0 0 0.5rem; line-height: 1.1; }
.ppq-hero-text { color: rgba(255, 255, 255, .9); margin: 0 0 1rem; font-size: 1rem; }
.ppq-hero-cta { display: inline-block; background: #fff; color: var(--ppq-accent-strong, #0b5c55) !important; font-weight: 700; padding: 0.7rem 1.3rem; border-radius: 999px; text-decoration: none !important; transition: transform .15s ease; }
.ppq-hero-cta:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .ppq-hero { min-height: 260px; } .ppq-hero-inner { padding: 1.3rem; } }

/* ---- Pastilles de couleur (options couleur Print.com) ------------------- */
.ppq-field-swatches .ppq-tiles { gap: 0.5rem; }
.ppq-tile.ppq-tile-swatch { width: 92px; padding: 0.55rem 0.4rem 0.6rem; }
.ppq-swatch { display: block; width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 0.35rem; border: 2px solid rgba(15, 23, 42, .12); box-shadow: inset 0 0 0 2px #fff; }
.ppq-tile.ppq-tile-swatch.is-selected { background: #fff; color: var(--ppq-accent-strong, #0b5c55); border-width: 2px; border-color: var(--ppq-accent, #0f766e); }
.ppq-tile.ppq-tile-swatch.is-selected .ppq-swatch { border-color: var(--ppq-accent, #0f766e); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ppq-accent, #0f766e); }
.ppq-tile.ppq-tile-swatch .ppq-tile-label { font-size: 0.78rem; }
/* white / very light colours: thin anthracite rim so the swatch stays visible */
.ppq-swatch.ppq-swatch--light { border-color: #1f2937; box-shadow: inset 0 0 0 2px #fff, 0 1px 3px rgba(15, 23, 42, .2); }
.ppq-tile.ppq-tile-swatch.is-selected .ppq-swatch.ppq-swatch--light { border-color: #1f2937; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ppq-accent, #0f766e); }
.ppq-swatch--mini { display: inline-block; flex: none; width: 16px; height: 16px; margin: 0 .45rem -3px 0; border-width: 1px; box-shadow: none; }
.ppq-swatch--mini.ppq-swatch--light { box-shadow: none; }

/* Size chips (XS S M L…): compact clickable tiles */
.ppq-field-chips .ppq-tiles { display: flex; flex-wrap: wrap; gap: .5rem; }
.ppq-tile.ppq-tile-chip { min-width: 3.25rem; width: auto; min-height: 0; padding: .55rem .9rem; flex-direction: row; justify-content: center; gap: .35rem; border-radius: 999px; }
.ppq-tile.ppq-tile-chip .ppq-tile-label { font-size: .85rem; font-weight: 600; }
.ppq-tile.ppq-tile-chip .ppq-tile-price { font-size: .72rem; }
.ppq-tile.ppq-tile-chip .ppq-tile-dot { top: 4px; right: 6px; }
.ppq-tile.ppq-tile-chip.ppq-tile--unavailable { opacity: .5; border-style: dashed; }

/* Textile: size guide + colour/size availability (only when Print.com provides it) */
.ppq-size-guide-btn { display: inline-flex; align-items: center; gap: .3rem; margin-left: .6rem; padding: .15rem .55rem; border: 1px solid var(--ppq-border, #e2e8f0); border-radius: 999px; background: #fff; color: var(--ppq-accent-strong, #0b5c55); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; vertical-align: middle; transition: background-color 150ms ease, border-color 150ms ease; }
.ppq-size-guide-btn:hover, .ppq-size-guide-btn:focus-visible { background: rgba(15, 118, 110, .08); border-color: var(--ppq-accent, #0f766e); outline: none; }
.ppq-size-guide-img { display: block; max-width: 100%; height: auto; margin: 0 auto 1rem; border-radius: 10px; border: 1px solid var(--ppq-border, #e2e8f0); }
.ppq-size-avail-title { margin: .5rem 0 .6rem; font-size: 1rem; }
.ppq-size-avail-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ppq-size-avail { border-collapse: collapse; table-layout: auto !important; width: auto !important; min-width: 100%; margin: 0; font-size: .85rem; }
.ppq-size-avail th, .ppq-size-avail td { padding: .35rem .55rem; border: 0; border-bottom: 1px solid var(--ppq-border, #e2e8f0); text-align: center; white-space: nowrap; overflow: visible; width: auto; vertical-align: middle; line-height: 1.3; }
.ppq-size-avail thead th { font-size: .8rem; letter-spacing: .01em; }
.ppq-size-avail tbody th span { display: inline-flex; align-items: center; gap: .4rem; }
.ppq-size-avail thead th { font-weight: 700; background: #f8fafc; }
.ppq-size-avail tbody th { text-align: left; font-weight: 500; }
.ppq-size-avail td.is-ok { color: var(--ppq-accent-strong, #0b5c55); font-weight: 700; }
.ppq-size-avail td.is-no { color: #94a3b8; }
.ppq-size-avail tr.is-current th, .ppq-size-avail tr.is-current td { background: rgba(15, 118, 110, .06); }
.ppq-size-avail-note { margin: .35rem 0 0; font-size: .8rem; color: #475569; }
.ppq-opt-unavailable { color: #94a3b8; }
.ppq-tile.ppq-tile--unavailable { opacity: .45; }
.ppq-tile.ppq-tile--unavailable .ppq-tile-label { text-decoration: line-through; }
