@font-face{font-family:ParcSans;src:url('theme-assets/DejaVuSans.ttf') format('truetype');font-display:swap}
@font-face{font-family:ParcMono;src:url('theme-assets/DejaVuSansMono.ttf') format('truetype');font-display:swap}
@font-face{font-family:ParcSerif;src:url('theme-assets/DejaVuSerif.ttf') format('truetype');font-display:swap}
@media screen{
 html[data-appearance]:not([data-appearance="classic"]) body :is(h1,h2,h3,h4,.brand strong){font-family:var(--heading-font)!important}
 html[data-appearance]:not([data-appearance="classic"]) .server-auth{background:var(--auth-background) center/cover no-repeat fixed;display:flex;justify-content:flex-end;align-items:center;padding:36px clamp(24px,8vw,180px);min-height:100dvh;box-sizing:border-box;font-family:var(--app-font)}
 html[data-appearance="aurora"] .server-auth{justify-content:center!important}
 html[data-appearance]:not([data-appearance="classic"]) .server-auth .auth-card{background:rgba(255,255,255,.97);color:#192d41;box-shadow:0 18px 70px #0006;border:1px solid #ffffff80;width:min(440px,100%);box-sizing:border-box;max-height:none}
 html[data-appearance]:not([data-appearance="classic"]) .server-auth .auth-card input{color:#192d41;background:white;border:1px solid #8898aa;min-height:42px}
 html[data-appearance]:not([data-appearance="classic"]) .server-auth .auth-card .primary{background:var(--blue);color:#fff}
 html[data-appearance]:not([data-appearance="classic"]) .server-auth .auth-card :is(h1,h2,label){color:#192d41}
 html body #appearancePreview :is(span,b,p,strong){font-family:var(--preview-font)!important}
 html body #appearancePreview h3{font-family:var(--preview-heading)!important}
 .appearance-preview[data-preview-theme="aurora"]{justify-content:center}
 .appearance-panel{padding:24px}.appearance-panel fieldset{border:0;padding:0;margin:18px 0}.appearance-panel legend{font-weight:700;margin-bottom:12px}
 .appearance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
 .appearance-choice{display:flex!important;flex-direction:column;gap:8px;padding:12px;border:2px solid #cbd5e1;border-radius:12px;cursor:pointer;min-width:0}.appearance-choice:has(input:checked){border-color:var(--blue);box-shadow:0 0 0 2px var(--blue)}.appearance-choice input{width:20px;height:20px}.appearance-choice>span:last-child{font-size:12px;color:#475569}
 .appearance-thumbnail{aspect-ratio:16/9;background:linear-gradient(135deg,#17365d,#0f6b78);background-size:cover;background-position:center;display:flex;align-items:center;justify-content:flex-end;padding:10px;border-radius:7px}.appearance-mini-card{background:#fff;color:#192d41;font-size:10px;padding:12px;border-radius:6px;line-height:1.8}
 .appearance-preview{min-height:340px;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:flex-end;padding:24px;border-radius:12px}.appearance-preview-card{background:#fffffff5;color:#192d41;padding:24px;border-radius:12px;display:grid;gap:12px;width:min(320px,100%);box-sizing:border-box}.appearance-preview-card :is(h3,p){margin:0}.appearance-preview-card span{border:1px solid #94a3b8;padding:10px;border-radius:8px;background:white}.appearance-preview-card b{color:white;padding:12px;text-align:center;border-radius:8px}.appearance-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}
 @media(max-width:640px){html[data-appearance]:not([data-appearance="classic"]) .server-auth{padding:20px;justify-content:center;background-attachment:scroll}.appearance-panel{padding:12px}.appearance-preview{padding:16px;justify-content:center}.appearance-grid{grid-template-columns:1fr}}
}

/* Images réelles : ne pas dépendre des fonds CSS des champs de formulaire. */
html body .appearance-choice .appearance-thumbnail{display:block!important;position:relative;width:100%;padding:0!important;aspect-ratio:1672/941;overflow:hidden;flex:none;min-height:120px;background:#102b3b!important}
html body .appearance-choice .appearance-thumbnail img{display:block!important;width:100%!important;height:100%!important;max-width:none;object-fit:contain;border:0;border-radius:0}
