/* Éditeur de personnalisation — fiche produit */
.pp-bloc { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #dcdcde; border-radius: 8px; background: #fafafa; }
.pp-bloc .pp-resume { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: .95em; }
.pp-bloc .pp-vignette { width: 96px; height: auto; border-radius: 6px; border: 1px solid #ddd; }
.pp-bloc .pp-ouvrir { margin: 0; border-radius: 8px; }
.pp-bloc .pp-champs { display: grid; gap: 8px; margin-bottom: 10px; }
.pp-bloc .pp-champ { display: block; margin: 0; }
.pp-bloc .pp-champ span { display: block; font-size: .9em; margin-bottom: 2px; }
.pp-bloc .pp-champ input { width: 100%; max-width: 360px; }
.pp-bloc .pp-apercu-inline { width: 100%; max-width: 360px; height: auto; display: block; margin-bottom: 8px; border-radius: 6px; }
.pp-bloc .pp-etat.pp-erreur { color: #b32d2e; font-weight: 600; }
.pp-bloc .pp-etat.pp-ok { color: #1e7a2c; }

/* boutons de l'éditeur : arrondis, indépendants du thème */
.pp-overlay .pp-btn { margin: 0; border: 0; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; background: #2c3e8c; color: #fff; text-transform: none; letter-spacing: 0; box-shadow: none; }
.pp-overlay .pp-btn:hover { background: #1f2d6b; }
.pp-overlay .pp-btn-suppr { background: #e9e9ee; color: #333; }
.pp-overlay .pp-btn-suppr:hover { background: #d8d8e0; }
.pp-overlay .pp-btn-principal { padding: 11px 22px; font-size: 15px; }

/* fenêtre */
.pp-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.pp-overlay[hidden] { display: none; }
.pp-fenetre { background: #fff; border-radius: 12px; width: 100%; max-width: 1240px; max-height: 96vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.pp-entete { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid #e5e5e5; font-size: 1.1em; }
.pp-fermer { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 6px; color: #333; margin: 0; box-shadow: none; }
.pp-corps { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; padding: 14px 18px; overflow: auto; }
@media (max-width: 900px) { .pp-corps { grid-template-columns: 1fr; } }
.pp-barre { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.pp-barre select { margin: 0; font-size: 14px; padding: 5px 10px; line-height: 1.3; height: auto; min-height: 0; border-radius: 8px; }
.pp-barre input[type=color] { margin: 0; width: 44px; height: 34px; padding: 2px; border: 1px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer; }
.pp-barre label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: normal; }
/* palette fermée */
.pp-couleur-bloc { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.pp-overlay .pp-couleur-btn { display: inline-flex !important; align-items: center; gap: 8px; margin: 0; padding: 4px 10px 4px 4px; min-height: 0; border: 1px solid #c8c8d0; border-radius: 8px; background: #fff; color: #333; font-size: 13px; font-weight: normal !important; cursor: pointer; box-shadow: none; text-transform: none !important; letter-spacing: 0; line-height: 1.2; }
.pp-overlay .pp-couleur-pastille { width: 24px; height: 24px; min-width: 24px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.pp-overlay .pp-vue, .pp-overlay .pp-btn { text-transform: none !important; letter-spacing: 0 !important; }
.pp-palette { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; display: grid; grid-template-columns: repeat(12, 26px); gap: 4px; padding: 8px; background: #fff; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.pp-palette[hidden] { display: none; }
.pp-nuance { width: 26px; height: 26px; margin: 0; padding: 0; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; cursor: pointer; box-shadow: none; }
.pp-nuance:hover { transform: scale(1.15); }
.pp-nuance.pp-nuance-active { outline: 2px solid #2c3e8c; outline-offset: 1px; }
@media (max-width: 600px) { .pp-palette { grid-template-columns: repeat(8, 26px); } }
.pp-zone { border: 1px solid #bbb; border-radius: 6px; overflow: hidden; line-height: 0; width: 100%; }
.pp-zone .canvas-container { max-width: 100%; }
.pp-info { font-size: 12px; color: #555; margin: 6px 0 0; min-height: 1.2em; }
.pp-qualite { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: #333; }
.pp-qualite[hidden] { display: none; }
.pp-qualite-fond { flex: 0 0 160px; height: 10px; background: #e5e5e5; border-radius: 5px; overflow: hidden; }
.pp-qualite-barre { height: 100%; width: 0; border-radius: 5px; transition: width .15s; }
.pp-col-apercu .pp-apercu { width: 100%; height: auto; display: block; background: #eee; border-radius: 8px; }
.pp-vues { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pp-vue { margin: 0; border: 1px solid #c8c8d0; background: #fff; color: #333; border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pp-vue.pp-vue-active { background: #2c3e8c; border-color: #2c3e8c; color: #fff; }
.pp-aide { font-size: 12px; color: #666; margin: 6px 0 0; }
.pp-avertissement { margin: 10px 0 0; padding: 8px 10px 8px 34px; font-size: 13px; line-height: 1.4; color: #6b4e00; background: #fff8e1; border: 1px solid #f0d78c; border-radius: 8px; position: relative; }
.pp-avertissement::before { content: "!"; position: absolute; left: 10px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: #e0a800; color: #fff; font-weight: 700; text-align: center; line-height: 18px; font-size: 13px; }
.pp-pied { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 18px; border-top: 1px solid #e5e5e5; flex-wrap: wrap; }
.pp-message { font-size: 14px; color: #b32d2e; flex: 1; }
body.pp-ouvert { overflow: hidden; }
