/* Publications : liste des visuels | grand aperçu | réglages (ordinateur) ; empilé sur téléphone. */
.pb { max-width: 1500px; margin: 0 auto; padding: 4px 22px 40px; display: grid; grid-template-columns: 200px minmax(0, 1fr) 320px; gap: 22px; align-items: start; }

/* ── Liste des visuels ── */
.pb-liste { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 24px); overflow: auto; }
.pb-vign { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; border-radius: var(--wc-r-m); border: 1px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pb-vign:hover { background: rgba(255,255,255,.05); }
.pb-vign.on { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.pb-vign-img { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--wc-r-s); background: rgba(255,255,255,.04); overflow: hidden; font-size: 24px; color: var(--wc-text-secondary); }
.pb-vign-img canvas { max-width: 100%; max-height: 100%; display: block; }
.pb-vign-txt { min-width: 0; display: flex; flex-direction: column; }
.pb-vign-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-vign-txt small { font-size: 11.5px; color: var(--wc-text-secondary); }
.pb-ajout .pb-vign-img { border: 1px dashed rgba(255,255,255,.22); background: none; }

/* ── Aperçu ── */
.pb-scene { min-width: 0; }
.pb-barre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pb-titre { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pb-titre b { font-size: 18px; }
.pb-format { font: inherit; font-size: 13px; color: var(--wc-text-secondary); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--wc-r-pilule); padding: 4px 11px; cursor: pointer; }
.pb-format::after { content: ' ▾'; }
.pb-boutons { display: flex; gap: 6px; }
.pb-carre { width: 40px; padding-left: 0; padding-right: 0; }
.pb-toile { height: calc(100vh - 260px); min-height: 320px; display: grid; place-items: center; background: rgba(255,255,255,.025); border-radius: var(--wc-r-l); padding: 14px; }
.pb-toile canvas { max-width: 100%; max-height: 100%; border-radius: var(--wc-r-xs); cursor: grab; touch-action: none; display: block; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.pb-toile canvas:active { cursor: grabbing; }
.pb-outils { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.pb-segment { display: inline-flex; padding: 3px; border-radius: var(--wc-r-m); background: rgba(255,255,255,.05); }
.pb-segment button { font: inherit; font-size: 13px; padding: 6px 11px; border: 0; border-radius: var(--wc-r-s); background: none; color: var(--wc-text-secondary); cursor: pointer; }
.pb-segment button.on { background: rgba(255,255,255,.12); color: var(--wc-text); }
.pb-zoom { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wc-text-secondary); }
.pb-zoom input { width: 130px; accent-color: var(--wc-accent); }
.pb-options { display: flex; gap: 6px; margin-left: auto; }
.pb-puce { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: var(--wc-r-pilule); border: 1px solid rgba(255,255,255,.14); background: none; color: var(--wc-text-secondary); cursor: pointer; }
.pb-puce.on { background: var(--wc-accent); border-color: var(--wc-accent); color: #fff; }
.pb-aide { font-size: 12.5px; color: var(--wc-text-secondary); margin: 10px 0 0; }

/* ── Réglages ── */
.pb-reglages { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.pb-onglets { display: none; }
.pb-bloc + .pb-bloc { margin-top: 24px; }
.pb-reglages .wc-surtitre { margin: 2px 0 10px; }
.pb-champ { display: block; margin-bottom: 10px; }
.pb-champ .wc-champ { width: 100%; }
.pb-autres { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 10px; }
.pb-autres summary { cursor: pointer; font-size: 13px; color: var(--wc-text-secondary); margin-bottom: 10px; }
.pb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pb-photo { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font-size: 12px; color: var(--wc-text-secondary); cursor: pointer; }
.pb-vignette { width: 100%; aspect-ratio: 1; border-radius: var(--wc-r-m); border: 1px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.03) center/cover no-repeat; display: grid; place-items: center; }
.pb-vignette::after { content: '+'; font-size: 26px; color: rgba(255,255,255,.4); }
.pb-photo.ok .pb-vignette { border-style: solid; border-color: rgba(255,255,255,.12); }
.pb-photo.ok .pb-vignette::after { content: none; }
.pb-note { font-size: 12.5px; color: var(--wc-text-secondary); margin: 10px 0 0; line-height: 1.45; }
.pb-alerte { padding: 10px 14px; border-radius: var(--wc-r-m); background: rgba(255,159,10,.1); border: 1px solid rgba(255,159,10,.35); color: #ffbe5c; font-size: 13.5px; margin-bottom: 14px; }

/* ── Fenêtre format ── */
#pb-dlg, #pb-sel, #pb-gal, #pb-leg { border: 1px solid rgba(255,255,255,.12); border-radius: var(--wc-r-l); background: var(--wc-fond-plateforme); color: var(--wc-text); padding: 22px; width: min(420px, 92vw); }
#pb-dlg::backdrop, #pb-sel::backdrop, #pb-gal::backdrop, #pb-leg::backdrop { background: rgba(0,0,0,.6); }
#pb-dlg h3, #pb-sel h3, #pb-gal h3, #pb-leg h3 { margin: 0 0 14px; font-size: 18px; }
#pb-dlg .wc-champ { width: 100%; margin-bottom: 12px; }
#pb-libre { display: flex; gap: 10px; } #pb-libre[hidden] { display: none; } #pb-libre > div { flex: 1; }
.pb-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ── Tablette : réglages sous l'aperçu ── */
@media (max-width: 1100px) {
  .pb { grid-template-columns: 180px minmax(0, 1fr); }
  .pb-reglages { grid-column: 2; position: static; max-height: none; }
}

/* ── Téléphone : visuels en bandeau, grand aperçu, onglets, actions en bas ── */
@media (max-width: 760px) {
  .pb { display: block; padding: 0 0 calc(110px + var(--wc-barre, 0px) + env(safe-area-inset-bottom)); }
  .pb-liste { position: static; flex-direction: row; max-height: none; overflow-x: auto; gap: 8px; padding: 2px 16px 10px; scroll-snap-type: x proximity; }
  .pb-vign { flex: none; width: auto; flex-direction: column; gap: 5px; padding: 5px; scroll-snap-align: start; }
  .pb-vign-img { width: 64px; height: 64px; }
  .pb-vign-txt { width: 72px; text-align: center; }
  .pb-vign-txt b { font-size: 11.5px; } .pb-vign-txt small { display: none; }
  .pb-scene { padding: 0 16px; }
  .pb-barre { margin-bottom: 8px; }
  .pb-titre b { font-size: 16px; }
  /* barre d'actions flottante, détachée des bords (coins arrondis de l'iPhone) et au-dessus de la barre d'onglets de l'appli */
  .pb-boutons { position: fixed; z-index: 50; left: 14px; right: 14px; bottom: calc(var(--wc-barre, 0px) + max(env(safe-area-inset-bottom), 14px) + var(--wc-vv-bas, 0px));
    padding: 8px; border-radius: var(--wc-r-xl); background: rgba(22,25,32,.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
  .pb-boutons .wc-btn { flex: 1; min-height: 46px; padding-left: 6px; padding-right: 6px; font-size: 14px; white-space: nowrap; border-radius: var(--wc-r-l); }
  .pb-boutons .pb-carre { flex: none; width: 46px; }
  .pb-boutons #pb-zip { display: none; }
  .pb-toile { height: auto; min-height: 0; max-height: 38vh; padding: 6px; }
  .pb-toile canvas { max-height: calc(38vh - 12px); }
  .pb-outils { gap: 10px; }
  .pb-zoom { flex: 1; } .pb-zoom input { flex: 1; width: auto; }
  .pb-options { margin-left: 0; width: 100%; }
  .pb-options .pb-puce { flex: 1; padding: 8px 0; }
  .pb-segment { width: 100%; } .pb-segment button { flex: 1; padding: 8px 4px; }
  .pb-aide { display: none; }
  .pb-reglages { padding: 18px 16px 0; }
  .pb-onglets { display: flex; padding: 3px; border-radius: var(--wc-r-m); background: rgba(255,255,255,.05); margin-bottom: 16px; }
  .pb-onglets button { flex: 1; font: inherit; font-size: 14px; font-weight: 600; padding: 9px; border: 0; border-radius: var(--wc-r-s); background: none; color: var(--wc-text-secondary); }
  .pb-onglets button.on { background: rgba(255,255,255,.12); color: var(--wc-text); }
  .pb-reglages[data-onglet="textes"] .pb-b-photos, .pb-reglages[data-onglet="photos"] .pb-b-textes { display: none; }
  .pb-bloc + .pb-bloc { margin-top: 0; }
  .pb-reglages .wc-surtitre { display: none; }
}

/* ── Chargement : rien d'inerte à l'écran tant que polices et images ne sont pas prêtes ── */
.pb.pb-charge .pb-scene, .pb.pb-charge .pb-reglages, .pb.pb-charge .pb-liste { visibility: hidden; }
.pb-attente { display: none; }
.pb.pb-charge .pb-attente { display: flex; position: fixed; inset: 0; align-items: center; justify-content: center; gap: 12px; color: var(--wc-text-secondary); font-size: 15px; pointer-events: none; }
.pb-attente i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--wc-text); animation: pb-tourne .8s linear infinite; }
@keyframes pb-tourne { to { transform: rotate(360deg); } }
.pb-boutons [hidden] { display: none !important; }

/* ── Photos : taille, alerte de résolution, amélioration IA ── */
.pb-photo-bloc { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pb-ph-info { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--wc-text-secondary); text-align: center; font-variant-numeric: tabular-nums; }
.pb-ph-info.faible { color: #ffbe5c; }
.pb-ameliorer { font: inherit; font-size: 12px; padding: 6px 4px; border-radius: var(--wc-r-s); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--wc-text); cursor: pointer; }
.pb-ameliorer.conseil { border-color: rgba(255,159,10,.5); background: rgba(255,159,10,.12); }
.pb-rond { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--wc-text); animation: pb-tourne .8s linear infinite; }

/* ── Avant / après (traitements IA) ── */
.pb-comparer { display: flex; gap: 4px; }
.pb-comparer .pb-ameliorer:first-child { flex: 1; }
.pb-ameliorer.on { background: var(--wc-accent); border-color: var(--wc-accent); color: #fff; }
.pb-toile { position: relative; }
.pb-badge { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: var(--wc-r-pilule); background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; pointer-events: none; }
.pb-badge[hidden] { display: none; }

html.wc-clavier .pb-boutons { display: none !important; }

/* ── Rendus vidéo sur le serveur ── */
.pb-rendus[hidden] { display: none; }
.pb-rendus { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pb-rendu { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--wc-r-m); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.pb-rendu span { flex: 1; display: flex; align-items: center; gap: 8px; line-height: 1.35; }
.pb-rendu .wc-btn { flex: none; }
.pb-couleur { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pb-couleur input { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.pb-couleur input::-webkit-color-swatch-wrapper { padding: 0; } .pb-couleur input::-webkit-color-swatch { border: 0; border-radius: 50%; }

/* ── Sélection à télécharger ── */
.pb-sel-liste { display: flex; flex-direction: column; gap: 4px; max-height: 55vh; overflow: auto; margin-bottom: 12px; }
.pb-sel-ligne { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--wc-r-s); cursor: pointer; }
.pb-sel-ligne:hover { background: rgba(255,255,255,.05); }
.pb-sel-ligne input { width: 20px; height: 20px; accent-color: var(--wc-accent); flex: none; }
.pb-sel-ligne span { display: flex; flex-direction: column; } .pb-sel-ligne small { color: var(--wc-text-secondary); font-size: 12px; }

/* ── Publication ouverte (menu : changer, créer, dupliquer, renommer, supprimer) ── */
.pb-pub { font: inherit; font-size: 13px; font-weight: 600; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 5px 12px 5px 30px; border-radius: var(--wc-r-pilule); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06) no-repeat 11px center / 13px; color: var(--wc-text); cursor: pointer; position: relative; }
.pb-pub::before { content: '▤'; position: absolute; left: 11px; top: 50%; transform: translateY(-52%); font-size: 13px; opacity: .7; }
.pb-pub::after { content: ' ▾'; opacity: .6; }
.pb-titre { row-gap: 6px; }
@media (max-width: 760px) { .pb-titre { flex-direction: column; align-items: flex-start; gap: 6px; } .pb-pub { max-width: 100%; } }

/* ── Musique importée ── */
.pb-son { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.pb-son-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-son-debut { display: inline-flex; align-items: center; gap: 6px; color: var(--wc-text-secondary); }
.pb-son-debut input { width: 64px; font: inherit; padding: 5px 7px; border-radius: var(--wc-r-s); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--wc-text); }
.pb-son-ajout { display: inline-flex; align-items: center; }

/* ════ Allègement de l'interface (23/10) ════════════════════════════════════════════════
   Panneau de droite en 3 onglets partout (Textes · Photos · Style), réglages en interrupteurs,
   un seul menu « Modifier » par photo, zones Instagram en bouton sur l'aperçu, en-tête sur une ligne. */
.pb-onglets { display: flex !important; padding: 3px; border-radius: var(--wc-r-m); background: rgba(255,255,255,.05); margin-bottom: 16px; }
.pb-onglets button { flex: 1; font: inherit; font-size: 14px; font-weight: 600; padding: 8px; border: 0; border-radius: var(--wc-r-s); background: none; color: var(--wc-text-secondary); cursor: pointer; }
.pb-onglets button.on { background: rgba(255,255,255,.12); color: var(--wc-text); }
.pb-reglages[data-onglet="textes"] .pb-b-photos, .pb-reglages[data-onglet="textes"] .pb-b-style,
.pb-reglages[data-onglet="photos"] .pb-b-textes, .pb-reglages[data-onglet="photos"] .pb-b-style,
.pb-reglages[data-onglet="style"] .pb-b-textes, .pb-reglages[data-onglet="style"] .pb-b-photos { display: none !important; }
.pb-reglages .wc-surtitre { display: none; }
.pb-bloc + .pb-bloc { margin-top: 0; }

/* en-tête : publication · visuel · format sur une ligne, actions à droite */
.pb-barre { flex-wrap: nowrap; }
.pb-titre { flex-wrap: nowrap !important; align-items: center !important; gap: 8px; overflow: hidden; }
.pb-titre b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pb-pub { flex: 0 1 auto; max-width: 200px; }
.pb-format { flex: none; }

/* sous l'aperçu : photo + zoom seulement */
.pb-outils { flex-wrap: nowrap; }
.pb-zoom { flex: 1; } .pb-zoom input { flex: 1; width: auto; min-width: 80px; }
.pb-aide { display: none; }

/* zones Instagram : bouton œil sur l'aperçu */
.pb-oeil { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: var(--wc-r-pilule); border: 1px solid rgba(255,255,255,.18); background: rgba(10,12,16,.6); color: var(--wc-text-secondary);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
.pb-oeil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pb-oeil.on { color: #fff; border-color: var(--wc-accent); background: var(--wc-accent); }

/* onglet Style : une ligne par réglage */
.pb-options { display: flex !important; flex-direction: column; gap: 2px; margin: 0 !important; width: auto !important; }
.pb-reglage { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pb-reglage span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-reglage b { font-size: 14.5px; font-weight: 600; }
.pb-reglage small { font-size: 12.5px; color: var(--wc-text-secondary); }
.pb-inter { flex: none; position: relative; width: 44px; height: 26px; border-radius: var(--wc-r-m); background: rgba(255,255,255,.16); transition: background .15s; }
.pb-inter::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.pb-inter.on { background: var(--wc-accent); } .pb-inter.on::after { transform: translateX(18px); }
.pb-reglage input[type=color] { flex: none; width: 34px; height: 34px; padding: 0; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; background: none; cursor: pointer; }
.pb-reglage input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .pb-reglage input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }

/* onglet Photos : vignette + taille en surimpression + « Modifier » */
.pb-photos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
.pb-photo-bloc { gap: 6px; }
.pb-vignette { position: relative; aspect-ratio: 4 / 3; }
.pb-taille { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: var(--wc-r-pilule); background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-taille.faible { background: rgba(255,159,10,.92); color: #1a1000; }
.pb-ph-nom { font-size: 12.5px; color: var(--wc-text-secondary); }
.pb-ph-actions { display: flex; gap: 5px; }
.pb-modifier, .pb-avap { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 8px; border-radius: var(--wc-r-s); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--wc-text); cursor: pointer; }
.pb-modifier { flex: 1; } .pb-modifier.conseil { border-color: rgba(255,159,10,.55); }
.pb-avap.on { background: var(--wc-accent); border-color: var(--wc-accent); color: #fff; }
.pb-ph-info { justify-content: flex-start; }

@media (max-width: 760px) {
  .pb-barre { flex-wrap: wrap; }
  .pb-titre { width: 100%; flex-direction: row !important; }
  .pb-pub { max-width: 46%; }
  .pb-outils { flex-wrap: wrap; }
  .pb-segment { width: 100%; }
}

/* ════ Version épurée (23/10) : l'image au centre, presque rien autour ═══════════════════
   En-tête de page compact, aperçu sans cadre, visuels en bande sous l'aperçu, cadrage (photo,
   zoom, recentrer) dans l'onglet Style. */
.pb { grid-template-columns: minmax(0, 1fr) 340px !important; gap: 28px !important; max-width: 1440px; padding-top: 18px; }
.pb-titre b { display: none; }
.pb-toile { background: none !important; padding: 0 !important; height: calc(100vh - 270px) !important; min-height: 300px; }
.pb-toile canvas { border-radius: var(--wc-r-s); box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.pb-oeil { top: 8px; right: 8px; }
/* bande de visuels */
.pb-liste { position: static !important; flex-direction: row !important; max-height: none !important; overflow-x: auto; overflow-y: hidden;
  gap: 6px !important; padding: 14px 2px 6px !important; scrollbar-width: none; }
.pb-liste::-webkit-scrollbar { display: none; }
.pb-vign { flex: none !important; width: auto !important; flex-direction: column !important; gap: 6px !important; padding: 4px !important; border: 0 !important; background: none !important; }
.pb-vign-img { width: 68px !important; height: 68px !important; border-radius: var(--wc-r-s); transition: box-shadow .15s, opacity .15s; opacity: .7; }
.pb-vign:hover .pb-vign-img { opacity: 1; }
.pb-vign.on .pb-vign-img { opacity: 1; box-shadow: 0 0 0 2px var(--wc-accent); }
.pb-vign-txt { width: 76px !important; text-align: center; }
.pb-vign-txt b { font-size: 11px !important; font-weight: 500 !important; color: var(--wc-text-secondary); }
.pb-vign.on .pb-vign-txt b { color: var(--wc-text); font-weight: 600 !important; }
.pb-vign-txt small { display: none !important; }
.pb-ajout .pb-vign-img { opacity: .55; }
/* panneau : rubriques discrètes */
.pb-reglages { top: 18px; }
.pb-rubrique { margin: 6px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wc-text-secondary); }
.pb-rubrique + .pb-options { margin-top: 0 !important; }
.pb-b-style .pb-outils { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0 0 22px; }
.pb-b-style .pb-segment { width: 100%; } .pb-b-style .pb-segment button { flex: 1; }
.pb-b-style .pb-zoom { width: 100%; }
.pb-recentrer { align-self: flex-start; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: var(--wc-r-s); border: 1px solid rgba(255,255,255,.14); background: none; color: var(--wc-text-secondary); cursor: pointer; }
@media (max-width: 1100px) { .pb { grid-template-columns: minmax(0, 1fr) 300px !important; } .pb-reglages { grid-column: auto !important; } }
@media (max-width: 760px) {
  .pb { padding-top: 10px; }
  .pb-scene { padding: 0 16px; }
  .pb-toile { height: auto !important; max-height: 46vh; }
  .pb-toile canvas { max-height: 46vh; }
  .pb-liste { padding: 12px 0 4px !important; }
}
.pb-liste { justify-content: safe center; }
/* en-tête standard de la plateforme (titre + description) : l'aperçu garde la place restante */
.pb { padding-top: 4px !important; }
.pb-toile { height: calc(100vh - 380px) !important; }
@media (max-width: 760px) { .pb-toile { height: auto !important; } }

/* Photos d'une galerie, légendes */
#pb-gal, #pb-leg { width: min(720px, 94vw); }
.pb-gal-aide { margin: -6px 0 12px; font-size: 13px; color: var(--wc-text-secondary); line-height: 1.45; }
.pb-gal-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; max-height: 58vh; overflow: auto; margin-bottom: 12px; }
.pb-gal-grille button { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--wc-r-s); overflow: hidden; background: rgba(255,255,255,.05); cursor: pointer; }
.pb-gal-grille img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-gal-grille button.on { border-color: var(--wc-accent); }
.pb-gal-grille b { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; border-radius: var(--wc-r-pilule); background: var(--wc-accent); color: #fff; font-size: 13px; display: grid; place-items: center; }
.pb-leg-bloc { margin-bottom: 14px; }
.pb-leg-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pb-leg-bloc textarea { width: 100%; min-height: 130px; resize: vertical; font-size: 14px; line-height: 1.45; }
