:root { --bg: #f6f7f9; --fg: #1d2330; --muted: #5b6475; --accent: #2f5bd3; --danger: #b3261e;
        --ok: #1e7b34; --card: #fff; --border: #d9dde5; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       background: var(--bg); color: var(--fg); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem;
          background: var(--card); border-bottom: 1px solid var(--border); }
.topbar nav { display: flex; gap: 1rem; align-items: center; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
main, footer { max-width: 960px; margin: 1.5rem auto; padding: 0 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.card.narrow { max-width: 460px; margin: 0 auto; }
label { display: block; margin: .5rem 0; }
label.choice { display: inline-block; margin-right: 1rem; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: 4px; font: inherit; }
label.choice input { width: auto; }
fieldset { border: 1px solid var(--border); border-radius: 6px; margin: 1rem 0; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: .5rem 1rem;
         font: inherit; cursor: pointer; }
button[disabled] { background: #9aa3b5; cursor: not-allowed; }
button.link { background: none; color: var(--accent); padding: 0; }
form.inline { display: inline; }
.notice, .hint { color: var(--muted); font-size: .9rem; }
.error { color: var(--danger); font-weight: 600; }
.banner { background: #fff4e5; border: 1px solid #f0b35b; padding: .5rem .75rem; border-radius: 4px; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; }
.dot.on { background: var(--ok); }
.dot.off { background: var(--danger); }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.variant img { width: 100%; height: auto; border-radius: 6px; background: var(--bg); }
.exports { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.exports form { display: flex; gap: .25rem; }
.exports select { width: auto; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.qr { display: block; margin: 1rem auto; background: #fff; }
code { background: var(--bg); padding: .1rem .3rem; border-radius: 3px; }
.password { font-size: 1.25rem; }
.gallery-job { margin-bottom: 1.5rem; }
/* htmx : styles d'indicateur fournis ici (includeIndicatorStyles désactivé : la CSP interdit le style inline). */
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; transition: opacity 200ms ease-in; }
