/* rc31 — Thèmes. Le thème par défaut n'ajoute aucune règle. Public uniquement : l'administration garde son style. */
html[data-nrx-theme] body:not(.admin-mode):not(.app-mode)>header{border-bottom:3px solid var(--nrx-secondary)}
html[data-nrx-theme] body:not(.admin-mode):not(.app-mode) footer{border-top:4px solid var(--nrx-secondary)}
/* Océan */
html[data-nrx-theme=ocean] body:not(.admin-mode):not(.app-mode) :is(.button,button.button,.cta a){border-radius:999px}
html[data-nrx-theme=ocean] body:not(.admin-mode):not(.app-mode) :is(.service-card,.panel,.hero-visual,.hero-visual img){border-radius:18px}
/* Émeraude */
html[data-nrx-theme=emeraude] body:not(.admin-mode):not(.app-mode)>header{border-bottom-width:1px;border-bottom-color:color-mix(in srgb,var(--nrx-primary) 35%,transparent)}
html[data-nrx-theme=emeraude] body:not(.admin-mode):not(.app-mode) :is(.service-card,.panel){border-radius:14px}
html[data-nrx-theme=emeraude] body:not(.admin-mode):not(.app-mode) :is(.hero-visual,.hero-visual img){border-radius:26px}
/* Terracotta */
html[data-nrx-theme=terracotta] body:not(.admin-mode):not(.app-mode) :is(h1,h2,h3,.hero h1,.modern-copy h1){font-family:Georgia,"Times New Roman",serif!important}
html[data-nrx-theme=terracotta] body:not(.admin-mode):not(.app-mode) :is(.button,button.button){border-radius:8px}
html[data-nrx-theme=terracotta] body:not(.admin-mode):not(.app-mode) :is(.hero-visual,.hero-visual img){border-radius:28px}
/* Ardoise */
html[data-nrx-theme=ardoise] body:not(.admin-mode):not(.app-mode)>header{border-bottom-color:var(--nrx-heading);border-bottom-width:2px}
html[data-nrx-theme=ardoise] body:not(.admin-mode):not(.app-mode) :is(.button,button.button,.service-card,.panel,.hero-visual,.hero-visual img){border-radius:4px}
/* Prune */
html[data-nrx-theme=prune] body:not(.admin-mode):not(.app-mode) :is(h1,h2,h3,.hero h1,.modern-copy h1){font-family:Georgia,"Times New Roman",serif!important}
html[data-nrx-theme=prune] body:not(.admin-mode):not(.app-mode) :is(.button,button.button){border-radius:999px}
html[data-nrx-theme=prune] body:not(.admin-mode):not(.app-mode) :is(.service-card,.panel,.hero-visual,.hero-visual img){border-radius:20px}
/* Administration : galerie, images, aperçu */
.pt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-top:16px}
.pt-card{display:grid;gap:8px;align-content:start;padding:12px;border:1px solid var(--nrx-border,#dce3ed);border-radius:12px;background:var(--nrx-surface,#fff)}
.pt-card.active{border-color:var(--nrx-primary,#173b69);box-shadow:0 0 0 2px color-mix(in srgb,var(--nrx-primary,#173b69) 25%,transparent)}
.pt-card h3{margin:0;font-size:1rem}.pt-card p{margin:0;font-size:.88rem;opacity:.85}
.pt-badge{font-size:.7rem;padding:2px 8px;border-radius:999px;background:var(--nrx-primary,#173b69);color:#fff;vertical-align:middle}
.pt-mini{display:grid;grid-template-rows:14px 64px 10px;border:1px solid var(--nrx-border,#dce3ed);border-radius:8px;overflow:hidden;background:var(--pb)}
.pt-mini .pt-h{background:var(--ph);border-bottom:2px solid var(--ps);display:flex;align-items:center;padding:0 6px}.pt-mini .pt-h u{display:block;width:26px;height:4px;border-radius:2px;background:var(--pc)}
.pt-mini .pt-hero{background:linear-gradient(135deg,var(--pc),var(--ps)) center/cover;display:block;position:relative}.pt-mini .pt-hero span{position:absolute;left:8px;bottom:8px;width:44px;height:6px;border-radius:3px;background:rgba(255,255,255,.9)}
.pt-mini .pt-f{background:var(--pf)}
.pt-card .actions{display:flex;gap:8px;flex-wrap:wrap}
.pt-rows{display:grid;gap:12px;margin:12px 0}
.pt-row{display:grid;grid-template-columns:96px 1fr auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--nrx-border,#dce3ed);border-radius:10px}
.pt-row img{width:96px;height:64px;object-fit:cover;border-radius:8px}
.pt-row .actions{display:flex;gap:8px;flex-wrap:wrap}.pt-file{cursor:pointer}
@media(max-width:700px){.pt-row{grid-template-columns:72px 1fr}.pt-row img{width:72px;height:56px}.pt-row .actions{grid-column:1/-1}}
.pt-preview{display:grid;gap:12px;min-width:min(92vw,1100px)}
.pt-preview-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.pt-preview-bar h2{margin:0;flex:1 1 200px}
.pt-seg{display:inline-flex;border:1px solid var(--nrx-border,#dce3ed);border-radius:10px;overflow:hidden}
.pt-seg button{border:0;background:var(--nrx-surface,#fff);padding:8px 14px;min-height:40px;cursor:pointer;font:inherit;color:inherit}.pt-seg button.on{background:var(--nrx-primary,#173b69);color:#fff}
.pt-frame-wrap{overflow:auto;max-height:68vh;border:1px solid var(--nrx-border,#dce3ed);border-radius:10px;background:#e9edf3;display:flex;justify-content:center}
.pt-frame-wrap iframe{height:68vh;border:0;background:#fff;max-width:none;flex:none}
