/* Configurateur porte de douche en niche (config-porte-niche.php) : styles limités au bloc .pn-cfg */
.pn-cfg { --fg: #1d2a30; --muted: #5f6d74; --line: #dfe6e9; --soft: #f3f6f7; --bg: #ffffff; --accent: #0e7c86; --accent-d: #0a636b; --accent-fg: #ffffff; --accent-soft: #e6f3f4; --warn: #9a5a00; --warn-bg: #fff5e2; --info-bg: #eef6f7; --star: #f5a623; --scene: #e9edee; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pn-cfg h2 { font-size: 24px; margin: 6px 0 16px; }
.pn-cfg .config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 60px; }
.pn-cfg .etapes { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pn-cfg .carte { border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 20px; background: var(--bg); }
.pn-cfg .carte h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin: 0 0 14px; }
.pn-cfg .carte h3 .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--fg); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.pn-cfg .sous-titre { font-size: 14px; color: var(--muted); margin: 14px 0 8px; }
.pn-cfg .apartir { margin: 6px 0 0; font-size: 15px; }
.pn-cfg .apartir b { color: var(--accent); font-size: 18px; }
.pn-cfg .tuiles.formes .ph { background-size: 92% auto; aspect-ratio: 4 / 3; }
.pn-cfg .cotes-forme { margin-top: 14px; }
.pn-cfg #pn-cPerc { margin-top: 12px; }
.pn-cfg .declinaisons { border-top: 1px solid var(--line); margin-top: 14px; }
.pn-cfg .declinaisons.ouvre { animation: pnOuvre .35s ease-out; }
@keyframes pnOuvre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.pn-cfg .declinaisons.ouvre { animation: none; }
}
.pn-cfg .pilules { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-cfg .pilules button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 15px; cursor: pointer; font-size: 15px; }
.pn-cfg .pilules button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.pn-cfg .pilules button:hover:not([aria-pressed="true"]) { border-color: var(--accent); }
.pn-cfg .tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pn-cfg .tuiles.larges { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pn-cfg #pn-tModele { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 901px) { .pn-cfg #pn-tModele .ph { aspect-ratio: 16 / 9; } .pn-cfg #pn-tModele .tuile { font-size: 14.5px; } }
.pn-cfg .tuile { position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 6px 6px 9px; cursor: pointer; text-align: center; font-size: 13.5px; line-height: 1.3; display: flex; flex-direction: column; gap: 7px; }
.pn-cfg .tuile .ph { aspect-ratio: 1 / 0.86; border-radius: 5px; background: #fff center / contain no-repeat; }
.pn-cfg .tuile .ph.couv { background-size: cover; }
.pn-cfg .tuile .ph { position: relative; }
.pn-cfg .tuile .pastilles { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.pn-cfg #pn-tModele .tuile .pastilles { left: auto; right: 6px; top: 6px; bottom: 6px; flex-direction: column; flex-wrap: nowrap; justify-content: flex-end; } /* charnières et profilés : pastilles en colonne sur le côté droit, hors de la photo du produit */
.pn-cfg .tuile .pastilles i { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .28); background-image: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .12)); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.pn-cfg .tuile small { display: block; color: var(--muted); font-size: 12px; }
.pn-cfg .tuile .px { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.pn-cfg .tuile[aria-pressed="true"] { border: 2px solid var(--accent); padding: 5px 5px 8px; }
.pn-cfg .tuile[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 12px; display: grid; place-items: center; }
.pn-cfg .tuile:focus-visible, .pn-cfg .pilules button:focus-visible, .pn-cfg .onglets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pn-cfg .cotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 12px; }
.pn-cfg .cotes label { font-size: 14px; color: var(--muted); display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 6px; }
.pn-cfg .cotes label span { align-self: end; }
.pn-cfg .ligne-joint .cotes { display: block; margin-top: 10px; }
.pn-cfg .ligne-joint .cotes label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pn-cfg .ligne-joint .cotes input { width: 90px; }
.pn-cfg .ligne-joint .cotes small { flex-basis: 100%; }
.pn-cfg .cotes label[hidden], .pn-cfg [hidden] { display: none !important; }
.pn-cfg .cotes input { font: 500 16px var(--font); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--fg); width: 100%; font-variant-numeric: tabular-nums; }
.pn-cfg .cotes small { font-size: 12.5px; }
.pn-cfg .sous-etape { font: 600 15px var(--font); margin: 18px 0 10px; }
.pn-cfg .cotes.c4 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); row-gap: 0; }
.pn-cfg .cotes.c4 label:nth-child(n+3) { margin-top: 12px; }
.pn-cfg .info { font-size: 14px; margin-top: 12px; color: var(--fg); }
.pn-cfg .info b { font-variant-numeric: tabular-nums; }
.pn-cfg .rouge { color: #c62828; font-weight: 600; font-size: 14px; }
.pn-cfg .ligne-joint { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pn-cfg .ligne-joint:first-of-type { border-top: 0; padding-top: 0; }
.pn-cfg .ligne-joint .ph { width: 210px; height: 180px; border-radius: 8px; background: #fff center / 125% no-repeat; border: 1px solid var(--line); }
.pn-cfg .ligne-joint .t { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.pn-cfg .ligne-joint .d { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pn-cfg .desc-panier { margin-top: 12px; font-size: 13px; }
.pn-cfg .desc-panier ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.pn-cfg .desc-panier li { margin: 2px 0; }
.pn-cfg .ligne-joint .d.alerte { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid #8A4B00; border-radius: 6px; background: #FFF3E0; color: #8A4B00; font-size: .88rem; line-height: 1.4; }
.pn-cfg .alerte { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; margin-top: 10px; }
.pn-cfg .jeu { background: var(--info-bg); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; margin-top: 10px; }
.pn-cfg .droite { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pn-cfg .apercu { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.pn-cfg .onglets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pn-cfg .onglets button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 15px; }
.pn-cfg .onglets button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.pn-cfg .vue { position: relative; height: 560px; border-radius: 8px; overflow: hidden; background: var(--scene); }
/* roue de chargement tant que la 3D n'est pas affichée (classe pn-pret posée par le script) */
.pn-cfg .vue:not(.pn-pret)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 4px solid rgba(14, 124, 134, .18); border-top-color: var(--accent); border-radius: 50%; animation: pn-tourne .9s linear infinite; z-index: 2; }
@keyframes pn-tourne { to { transform: rotate(360deg); } }
.pn-cfg #pn-scene { position: absolute; inset: 0; }
.pn-cfg #pn-scene canvas { display: block; touch-action: none; }
.pn-cfg .vue .aide { position: absolute; top: 10px; left: 10px; font-size: 12px; background: rgba(255,255,255,.85); color: #33434a; padding: 4px 9px; border-radius: 6px; }
.pn-cfg .vue .barre { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.pn-cfg .vue .barre button { border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.94); color: #1d2a30; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pn-cfg .vue .barre button.p { background: var(--accent); color: #fff; }
.pn-cfg #pn-plan { display: none; padding: 6px 0; }
.pn-cfg #pn-plan svg { width: 100%; height: auto; display: block; }
.pn-cfg .plan-note { margin: 10px 4px 0; font-size: 13px; color: var(--muted, #5b6770); line-height: 1.5; }
.pn-cfg .legende { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pn-cfg .ambiance { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: none; }
.pn-cfg .ambiance.ouverte { display: block; }
.pn-cfg .ambiance .rang { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.pn-cfg .mini { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-cfg .mini button { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; background-size: cover; padding: 0; }
.pn-cfg .mini button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.pn-cfg .prix { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.pn-cfg .prix .lib { font-size: 14px; color: var(--muted); }
.pn-cfg .prix .total { font-size: 34px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.pn-cfg .prix dl { margin: 0 0 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 14.5px; }
.pn-cfg .prix dt { color: var(--fg); }
.pn-cfg .prix dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pn-cfg .prix .panier { width: 100%; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 16px; padding: 13px; cursor: pointer; }
.pn-cfg .prix .sauv { width: 100%; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); font-weight: 600; font-size: 15px; padding: 11px; margin-top: 8px; cursor: pointer; }
.pn-cfg .prix .kit { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.pn-cfg .prix .avis { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
/* barre d'étapes (ordinateur), même présentation que les autres configurateurs du site */
.pn-cfg .pn-prog { display: block; position: sticky; top: 0; z-index: 30; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; box-shadow: 0 4px 12px rgba(29, 42, 45, .06); transition: top .3s; }
.pn-cfg .pn-prog-l { display: flex; align-items: center; gap: 8px; font-size: 14.5px; min-height: 20px; white-space: nowrap; }
.pn-cfg .pn-prog-pt { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.pn-cfg .pn-prog.fin .pn-prog-pt { display: none; }
.pn-cfg .pn-prog.fin #pn-progT { color: var(--accent); }
.pn-cfg #pn-progT { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pn-cfg #pn-progPct { flex: none; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.pn-cfg #pn-progP { display: none; }
.pn-cfg .pn-prog-seg { display: flex; gap: 4px; margin-top: 9px; }
.pn-cfg .pn-prog-seg button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pn-cfg .pn-prog-seg i { display: block; height: 8px; border-radius: 4px; background: #dce2e1; transition: background .25s; }
.pn-cfg .pn-prog-seg span { font-size: 11px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-cfg .pn-prog-seg .f i { background: var(--accent); }
.pn-cfg .pn-prog-seg .c span { color: var(--fg); font-weight: 600; }
.pn-cfg .pn-prog-seg .c i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.pn-cfg .pn-prog-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pn-cfg .carte { scroll-margin-top: 110px; }
@media (max-width: 900px) {
.pn-cfg .config { grid-template-columns: 1fr; gap: 14px; }
.pn-cfg .droite { display: contents; }
.pn-cfg .apercu { order: -1; padding: 12px; }
.pn-cfg .prix { order: 2; }
.pn-cfg .vue { height: 52vh; min-height: 340px; }
.pn-cfg .vue .aide { right: 10px; font-size: 11.5px; }
.pn-cfg .cotes { grid-template-columns: 1fr 1fr; }
.pn-cfg .tuiles.larges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.pn-pave-on .pn-cfg .pn-bas { display: none; }
html.pn-pave-on .pka { display: none !important; }
.pn-cfg h2 { font-size: 21px; margin-bottom: 12px; }
.pn-cfg .pn-prog { padding: 8px 12px 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.pn-cfg #pn-progPct { display: none; }
.pn-cfg #pn-progP { display: inline; }
.pn-cfg .pn-prog-seg { margin-top: 7px; }
.pn-cfg .pn-prog-seg span { display: none; }
.pn-cfg .pn-prog-seg i { height: 6px; border-radius: 3px; }
.pn-cfg .pn-prog-l { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-height: 26px; }
.pn-cfg .pn-prog-pt { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pn-cfg #pn-progT { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-cfg #pn-progP { flex: none; border: 0; background: none; padding: 0 0 0 6px; font: inherit; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; cursor: pointer; }
.pn-cfg .pn-prog-seg { display: flex; gap: 4px; margin-top: 7px; }
.pn-cfg .carte { scroll-margin-top: 70px; }
html.pn-bas-on .pkm-bottom { display: none !important; }
html.pn-bas-on .pn-cfg .pn-bas { display: flex; }
html.pn-bas-on [data-pk-avis] { display: none !important; }
html.pn-bas-on .pka:not(.pka-ouvert) { transform: translateY(-78px); }
.pn-cfg .pn-ph { order: -1; }
.pn-cfg .apercu.pn-pop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 94vw; max-width: 640px; max-height: 88vh; overflow: auto; z-index: 10060; background: var(--bg); padding: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.pn-cfg .apercu.pn-pop .vue { height: 58vh; min-height: 300px; }
html .pn-cfg .onglets button.pn-fermer { display: flex; }
.pn-cfg .apercu.pn-replie { display: none; }
.pn-cfg .apercu.pn-pop { display: block; }
.pn-cfg .onglets { flex-wrap: nowrap; gap: 6px; align-items: center; }
.pn-cfg .onglets button { flex: 0 1 auto; min-width: 0; padding: 7px 11px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html .pn-cfg .onglets .pn-lg { display: none; }
html .pn-cfg .onglets .pn-ct { display: inline; }
.pn-cfg .vue .barre { flex-wrap: nowrap; gap: 6px; left: 8px; right: 8px; bottom: 8px; }
.pn-cfg .vue .barre button { flex: 1 1 auto; min-width: 0; padding: 7px 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-cfg .apercu.pn-haut { display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 10045; margin: 0; padding: 6px; border: 0; border-radius: 0 0 14px 14px; background: var(--bg); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.pn-cfg .apercu.pn-haut .vue { height: 34vh; min-height: 190px; }
.pn-cfg .apercu.pn-haut .pn-haut-b { display: flex; }
.pn-cfg .apercu.pn-haut .onglets, .pn-cfg .apercu.pn-haut .ambiance, .pn-cfg .apercu.pn-haut .legende, .pn-cfg .apercu.pn-haut .vue .barre, .pn-cfg .apercu.pn-haut .vue .aide, .pn-cfg .apercu.pn-haut #pn-plan { display: none !important; }
html.pn-pop-on, html.pn-pop-on body { overflow: hidden; }
}
.pn-cfg .pn-bas { display: none; position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 10040; gap: 6px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .16); }
.pn-cfg .pn-bas button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 4px 6px; border: 0; border-radius: 11px; background: var(--soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.pn-cfg .pn-bas svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.pn-cfg .pn-bas .px { flex: 1.25 1 0; background: var(--accent); color: var(--accent-fg); }
.pn-cfg .pn-bas .px .l { font-size: 11.5px; font-weight: 500; opacity: .85; }
.pn-cfg .pn-bas .px .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-cfg .pn-voile { display: none; position: fixed; inset: 0; z-index: 10055; background: rgba(0, 0, 0, .55); }
.pn-cfg .pn-voile.on { display: block; }
.pn-cfg .onglets .pn-ct { display: none; }
.pn-cfg .onglets button.pn-fermer { display: none; flex: none; margin-left: auto; padding: 0; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 560px) {
.pn-cfg .ligne-joint { grid-template-columns: 130px minmax(0, 1fr); }
.pn-cfg .ligne-joint .ph { width: 130px; height: 112px; }
}
.pn-cfg .dec-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 2px; margin-bottom: 10px; }
.pn-cfg .dec-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.pn-cfg .dec-tag { font-weight: 700; color: var(--accent, #0e7c86); }
.pn-cfg .dec-type, .pn-cfg .dec-item select { font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft, #f3f5f5); color: var(--fg); width: 100%; }
.pn-cfg .dec-type { width: auto; flex: 1 1 180px; }
.pn-cfg .dec-prix { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pn-cfg .dec-attente { margin: 4px 0 8px; padding: 10px 12px; border-left: 3px solid #8A4B00; border-radius: 6px; background: #FFF3E0; color: #8A4B00; font-size: .88rem; line-height: 1.4; }
.pn-cfg .dec-valider { width: 100%; margin: 0 0 10px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 600 15px var(--font); cursor: pointer; }
.pn-cfg .dec-valider:disabled { opacity: .45; cursor: not-allowed; }
.pn-cfg .dec-ok { margin: 4px 0 10px; color: var(--accent); font-weight: 600; font-size: 14px; }
.pn-cfg .dec-suppr { background: none; border: 0; color: #c0392b; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.pn-cfg .dec-ajout { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--accent, #0e7c86); background: var(--bg); border: 1px dashed currentColor; border-radius: 8px; padding: 10px 14px; cursor: pointer; width: 100%; }
.pn-cfg { color: var(--fg); font-family: var(--font); }
.pn-cfg button { font: inherit; color: inherit; }
.pn-cfg img { max-width: 100%; display: block; }
.pn-cfg *, .pn-cfg *::before, .pn-cfg *::after { box-sizing: border-box; }
.pn-cfg .panier:disabled { opacity: .55; cursor: default; }
.pn-cfg .msg { color: #8A4B00; font-size: .88rem; margin-top: 8px; }
.pn-cfg .msg:empty { display: none; }
.pn-cfg .pn-pave { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10050; background: var(--bg); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, .18); padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
.pn-cfg .pn-pave.on { display: block; }
.pn-cfg .pn-pave-t { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; }
.pn-cfg .pn-pave-t .lib { flex: 1 1 auto; min-width: 0; }
.pn-cfg .pn-pave-t .lib b { display: block; font-size: 14.5px; }
.pn-cfg .pn-pave-t .lib small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-cfg .pn-pave-t .val { flex: none; font-size: 22px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.pn-cfg .pn-pave-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pn-cfg .pn-pave-g button { height: 42px; border: 0; border-radius: 10px; background: var(--soft); font-size: 20px; font-weight: 600; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.pn-cfg .pn-pave-g button:active { background: var(--accent-soft); }
.pn-cfg .pn-pave-g .x { font-size: 18px; }
.pn-cfg .pn-pave-g .ok { background: var(--accent); color: var(--accent-fg); font-size: 17px; }
.pn-cfg input.pn-saisie { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 380px) {
.pn-cfg .onglets { gap: 4px; }
.pn-cfg .onglets button { padding: 6px 8px; font-size: 12.5px; }
.pn-cfg .onglets button.pn-fermer { width: 30px; height: 30px; }
.pn-cfg .vue .barre { gap: 4px; }
.pn-cfg .vue .barre button { padding: 6px 5px; font-size: 11.5px; }
.pn-cfg .apercu.pn-pop { padding: 8px; }
.pn-cfg .onglets button { padding: 6px 7px; }
.pn-cfg .vue .aide { font-size: 10.5px; }
}
.pn-cfg .pn-haut-b { display: none; position: absolute; top: 12px; right: 12px; z-index: 3; gap: 6px; }
.pn-cfg .pn-haut-b button { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #1d2a30; font-size: 24px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer; }
.pn-cfg .pn-haut-b svg { width: 20px; height: 20px; fill: none; stroke: #1d2a30; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ordinateur : colonne de droite (3D + ambiance) figée à l'écran et défilable avec la souris dessus (Loic 27/11) */
@media (min-width: 901px) {
  .pn-cfg .droite { max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; }
}
/* bouton « Personnaliser l'ambiance » sous la 3D (Loic 27/11) */
.pn-cfg .pn-bamb { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 0; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--bg); color: var(--accent); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.pn-cfg .pn-bamb[hidden] { display: none; }
.pn-cfg .pn-bamb:hover, .pn-cfg .pn-bamb[aria-expanded="true"] { background: var(--accent); color: var(--accent-fg); }
.pn-cfg .pn-bamb svg { flex: none; width: 26px; height: 26px; fill: currentColor; }
.pn-cfg .pn-bamb svg circle { fill: var(--bg); }
.pn-cfg .pn-bamb:hover svg circle, .pn-cfg .pn-bamb[aria-expanded="true"] svg circle { fill: var(--accent); }
.pn-cfg .pn-bamb .t { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pn-cfg .pn-bamb small { font-size: 13px; font-weight: 400; opacity: .85; }
.pn-cfg .pn-bamb i { flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0; transition: transform .2s; }
.pn-cfg .pn-bamb[aria-expanded="true"] i { transform: rotate(-135deg); margin-top: 4px; }
.pn-cfg .pn-bamb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pn-cfg .apercu.pn-haut .pn-bamb { display: none; }
