/* Palette personnalisée, isolée du reste de l'administration. */
html[data-theme="custom"],.theme-sample[data-theme="custom"]{--paper:var(--custom-background);--white:var(--custom-surface);--ink:var(--custom-text);--muted:var(--custom-text);--red:var(--custom-accent);--line:var(--custom-accent)}
html[data-theme="custom"] body{background:var(--custom-background);color:var(--custom-text)}
html[data-theme="custom"] body .brand,html[data-theme="custom"] body .section-heading,html[data-theme="custom"] body .dish-card,html[data-theme="custom"] body .carte-item,html[data-theme="custom"] body .detail-paper,html[data-theme="custom"] body .empty{background:var(--custom-surface);color:var(--custom-text);background-image:none}
html[data-theme="custom"] body .brand-label,html[data-theme="custom"] body .date,html[data-theme="custom"] body .intro,html[data-theme="custom"] body footer{color:var(--custom-text)}
html[data-theme="custom"] body .tricolore{background:var(--custom-accent)}
html[data-theme="custom"] body .menu-tabs button,html[data-theme="custom"] body .category-button,html[data-theme="custom"] body .language-switch select{background:var(--custom-surface);color:var(--custom-text);border-color:var(--custom-accent)}
html[data-theme="custom"] body button[aria-pressed="true"],html[data-theme="custom"] body .primary{background:var(--custom-accent);color:var(--custom-button-text);border-color:var(--custom-accent)}
html[data-theme="custom"] body .brand img{mix-blend-mode:normal}
.theme-sample[data-theme="custom"]{background:var(--custom-background);color:var(--custom-text)}
.theme-sample[data-theme="custom"] article,.theme-sample[data-theme="custom"] .sample-brand{background:var(--custom-surface);color:var(--custom-text)}
.theme-sample[data-theme="custom"] .sample-heading{color:var(--custom-text)}
.theme-sample[data-theme="custom"] .primary{background:var(--custom-accent);color:var(--custom-button-text)}
.swatch-custom{background:linear-gradient(125deg,#f7f5f2 33%,#a8323b 33% 66%,#303830 66%)}
.custom-colors{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}.custom-colors label{display:flex;flex-direction:column;gap:8px}.custom-colors input{width:100%;height:48px;padding:3px;cursor:pointer}

html[data-theme="custom"] body{background-image:var(--custom-image,none);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed}
.theme-sample[data-theme="custom"]{background-image:var(--custom-image,none);background-size:cover;background-position:center}
html[data-theme="custom"] body footer{background:var(--custom-surface);padding:18px;border-radius:10px}
.background-preview{max-width:100%;width:320px;height:160px;object-fit:cover;border-radius:8px;display:block;margin:12px 0}
