@font-face { font-family: "Bowlby One"; src: url("../fonts/bowlby-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --velours: #2a0a33;
  --rideau: #3d1148;
  --rideau-2: #521a5e;
  --trait: #6b2f78;
  --flash: #fff6e3;
  --lilas: #e6cde4;
  --brume: #b893b8;
  --accent: #ffc531;
  --sur-accent: #2a0a33;
  --rose: #ff7a9c;
  --vert: #7ee0a8;
  --r-lg: 22px;
  --r-md: 14px;
  --display: "Bowlby One", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--velours); }
body {
  margin: 0;
  background: var(--velours);
  color: var(--flash);
  font: 400 1rem/1.55 var(--body);
  min-height: 100vh;
}
/* Plis du rideau, très discrets */
body.public {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, transparent 2px 46px, rgba(255,255,255,.025) 46px 48px, transparent 48px 92px),
    radial-gradient(120% 60% at 50% 0%, #4a1457 0%, var(--velours) 70%) var(--velours);
  background-attachment: fixed;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1rem/1 var(--body);
  padding: .95em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background .15s;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--sur-accent); }
.btn-ghost { background: transparent; color: var(--flash); box-shadow: inset 0 0 0 2px var(--trait); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--lilas); }
.btn-danger { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 2px rgba(255,122,156,.5); }
.btn-sm { padding: .6em 1em; min-height: 38px; font-size: .9rem; }
.btn svg { width: 1.15em; height: 1.15em; }

/* ------------------------------------------------------------- page client */
.client { max-width: 560px; margin: 0 auto; padding: 40px 18px 56px; }
.client-head { text-align: center; margin-bottom: 30px; }
.client-head h1 {
  font: 400 clamp(2.1rem, 9vw, 3.1rem)/1 var(--display);
  margin: 0 0 12px; letter-spacing: .01em; text-wrap: balance;
}
.client-head p { margin: 0; color: var(--lilas); }

.marquee {
  --bulb: var(--accent);
  height: 12px; margin: 0 auto 28px; max-width: 280px;
  background: radial-gradient(circle at 6px 6px, var(--bulb) 0 3.5px, transparent 4.5px) 0 0 / 22px 12px repeat-x;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .marquee { animation: chase 1.2s steps(2) infinite; }
  @keyframes chase { to { background-position: 22px 0; } }
}

/* La bande photo : le cœur de la page */
.strip {
  background: var(--flash);
  padding: 14px 14px 10px;
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.4) inset;
  transform: rotate(-1.2deg);
  margin: 0 6px 34px;
}
.strip-item + .strip-item { margin-top: 14px; }
.strip-item img, .strip-slot { width: 100%; height: auto; border-radius: 2px; background: #e9dccb; }
.strip-item .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 2px 2px; color: var(--velours);
}
.strip-item .row span { font: 400 .95rem/1 var(--display); }
.strip-item .row a {
  color: var(--velours); font-weight: 800; font-size: .92rem; text-decoration: none;
  display: inline-flex; gap: .35em; align-items: center; padding: 8px 4px;
}
.strip-item .row a svg { width: 18px; height: 18px; }
.strip-foot { text-align: center; color: #8a6a7f; font: 400 .8rem/1 var(--display); padding: 10px 0 2px; letter-spacing: .04em; }
.strip-slot { aspect-ratio: 3 / 2; position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .strip-slot::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
    animation: develop 1.8s ease-in-out infinite;
  }
  @keyframes develop { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
}

.actions { display: grid; gap: 12px; margin-bottom: 38px; }
.actions .btn { width: 100%; }
.hint { color: var(--brume); font-size: .9rem; text-align: center; margin: 0; }

.card {
  background: var(--rideau); border-radius: var(--r-lg); padding: 24px 22px;
  margin-bottom: 18px;
}
.card h2 { font: 400 1.35rem/1.15 var(--display); margin: 0 0 6px; }
.card p { margin: 0 0 16px; color: var(--lilas); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .92rem; }
.field small { color: var(--brume); }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--flash);
  background: var(--velours); border: 2px solid var(--trait); border-radius: var(--r-md);
  padding: 13px 14px; min-height: 50px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

.notice { border-radius: var(--r-md); padding: 13px 16px; margin-bottom: 16px; font-weight: 600; }
.notice.ok { background: rgba(126,224,168,.14); color: var(--vert); }
.notice.err { background: rgba(255,122,156,.14); color: var(--rose); }

.pending-text { text-align: center; margin: -8px 0 28px; }
.pending-text strong { display: block; font: 400 1.25rem/1.2 var(--display); margin-bottom: 6px; }
.pending-text span { color: var(--lilas); }

.foot { text-align: center; color: var(--brume); font-size: .82rem; margin-top: 34px; }

/* ------------------------------------------------------------- administration */
body.admin { background: var(--velours); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: #220829; padding: 26px 16px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
}
.side .brand { font: 400 1.3rem/1 var(--display); padding: 0 12px 22px; color: var(--flash); text-decoration: none; }
.side .brand small { display: block; font: 600 .78rem/1.3 var(--body); color: var(--brume); margin-top: 6px; }
.side nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: var(--lilas); text-decoration: none; font-weight: 600;
}
.side nav a svg { width: 20px; height: 20px; opacity: .8; }
.side nav a:hover { background: var(--rideau); color: var(--flash); }
.side nav a[aria-current=page] { background: var(--rideau-2); color: var(--flash); }
.side nav a[aria-current=page] svg { color: var(--accent); opacity: 1; }
.side form { margin-top: auto; }
.side form button { background: none; border: 0; color: var(--brume); font: 600 .9rem var(--body); cursor: pointer; padding: 10px 12px; }

.main { padding: 34px clamp(18px, 4vw, 48px) 60px; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--display); margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--lilas); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.panel { background: var(--rideau); border-radius: var(--r-lg); padding: 22px; }
.panel h2 { font: 800 1.08rem/1.2 var(--body); margin: 0 0 14px; }
.panel > p.lead { margin: -6px 0 16px; color: var(--lilas); font-size: .95rem; }

.status { display: flex; gap: 16px; align-items: center; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--brume); }
.status-dot.on { background: var(--vert); box-shadow: 0 0 0 6px rgba(126,224,168,.16); }
.status-dot.off { background: var(--rose); box-shadow: 0 0 0 6px rgba(255,122,156,.14); }
.status strong { font-size: 1.15rem; display: block; }
.status span { color: var(--lilas); font-size: .92rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 18px 0 0; }
.facts div { background: var(--velours); border-radius: 12px; padding: 12px 14px; }
.facts dt { color: var(--brume); font-size: .8rem; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 1.05rem; }
.facts dd.warn { color: var(--rose); }

.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.count { background: var(--velours); border-radius: 14px; padding: 16px; }
.count b { font: 400 2rem/1 var(--display); display: block; }
.count span { color: var(--lilas); font-size: .88rem; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-row form { margin: 0; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { background: var(--velours); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--flash); display: block; }
.thumb .img { aspect-ratio: 3 / 2; background: #1b0620 center / cover no-repeat; position: relative; }
.thumb .img em { position: absolute; right: 8px; bottom: 8px; background: rgba(42,10,51,.85); border-radius: 999px; padding: 2px 9px; font-style: normal; font-weight: 800; font-size: .8rem; }
.thumb .meta { padding: 9px 12px 11px; font-size: .86rem; }
.thumb .meta b { display: block; }
.thumb .meta span { color: var(--brume); }
.thumb .meta .late { color: var(--accent); }

.empty { text-align: center; padding: 40px 20px; color: var(--lilas); }
.empty b { display: block; font: 400 1.2rem var(--display); color: var(--flash); margin-bottom: 6px; }

.flash { background: rgba(126,224,168,.14); color: var(--vert); border-radius: 14px; padding: 13px 16px; font-weight: 600; margin-bottom: 20px; }

/* Aperçu de l'habillage */
.preview-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #7a4a5e, #d79c7a 55%, #f4d29b);
}
.preview-stage .person {
  position: absolute; left: 50%; bottom: 0; width: 34%; aspect-ratio: 1 / 1.2; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 28%, rgba(42,10,51,.55) 0 18%, transparent 18.5%),
              radial-gradient(ellipse at 50% 100%, rgba(42,10,51,.55) 0 48%, transparent 48.5%);
}
.preview-stage .ov-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.preview-stage .ov-logo { position: absolute; height: auto; }
.pos-top-left { top: 4%; left: 3%; } .pos-top-right { top: 4%; right: 3%; }
.pos-bottom-left { bottom: 4%; left: 3%; } .pos-bottom-right { bottom: 4%; right: 3%; }
.pos-bottom-center { bottom: 4%; left: 50%; transform: translateX(-50%); }

.ov-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.ov-item { background: var(--velours); border-radius: 14px; padding: 10px; border: 2px solid transparent; }
.ov-item.active { border-color: var(--accent); }
.ov-item .pic { aspect-ratio: 16 / 10; border-radius: 8px; background: repeating-conic-gradient(#3a1a42 0 25%, #2c1033 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.ov-item .pic { position: relative; }
.ov-item .pic img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.ov-item .acts { align-items: center; }
.ov-item b { display: block; font-size: .86rem; margin: 8px 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-item .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ov-item form { margin: 0; }
.tag { display: inline-block; background: var(--accent); color: var(--sur-accent); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 800; }

.checks { display: flex; gap: 10px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 8px; align-items: center; background: var(--velours); border: 2px solid var(--trait); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 700; }
.checks input { accent-color: var(--accent); width: 18px; height: 18px; }
.switch { display: flex; gap: 12px; align-items: center; font-weight: 700; cursor: pointer; }
.switch input { accent-color: var(--accent); width: 22px; height: 22px; }
input[type=color] { width: 64px; height: 50px; border: 2px solid var(--trait); border-radius: 12px; background: var(--velours); padding: 4px; }
input[type=file] { color: var(--lilas); font: inherit; }
input[type=file]::file-selector-button { font: 700 .9rem var(--body); background: var(--rideau-2); color: var(--flash); border: 0; border-radius: 999px; padding: 10px 16px; margin-right: 12px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--brume); font-weight: 600; padding: 8px 10px; }
.table td { padding: 10px; border-top: 1px solid var(--trait); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 400px; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 12px; gap: 2px; }
  .side .brand { padding: 6px 10px; width: 100%; }
  .side .brand small { display: none; }
  .side nav { display: flex; gap: 2px; flex-wrap: wrap; }
  .side nav a { padding: 9px 10px; font-size: .9rem; }
  .side nav a svg { display: none; }
  .side form { margin: 0 0 0 auto; }
}

/* =================================================================
   Thème « Pop » (page client) : bleu cobalt, Unbounded, stickers
   ================================================================= */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

body.public[data-theme="pop"] {
  --velours: #0b1a8c;
  --rideau: #1230d6;
  --trait: #6f86ff;
  --flash: #ffffff;
  --lilas: #d4dcff;
  --brume: #aab8ff;
  --sur-accent: #0b1a8c;
  --display: "Unbounded", "Arial Black", sans-serif;
  background: #1736ff;
}
html:has(body[data-theme="pop"]) { background: #1736ff; }
[data-theme="pop"] .marquee {
  height: 18px; max-width: 160px; filter: none; animation: none;
  background:
    radial-gradient(circle, var(--accent) 0 7px, transparent 7.5px) 0 50% / 40px 18px no-repeat,
    linear-gradient(#d7ff3a, #d7ff3a) 58px 50% / 40px 10px no-repeat,
    radial-gradient(circle, #fff 0 6px, transparent 6.5px) 116px 50% / 40px 18px no-repeat;
}
[data-theme="pop"] .client-head h1 { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(1.9rem, 8.4vw, 2.8rem); text-shadow: 4px 4px 0 var(--velours); }
[data-theme="pop"] .strip { border-radius: 22px; transform: rotate(-1.5deg); box-shadow: 0 0 0 3px var(--velours), 9px 9px 0 var(--velours); }
[data-theme="pop"] .strip-item img, [data-theme="pop"] .strip-slot { border-radius: 12px; }
[data-theme="pop"] .strip-item .row span { font-family: var(--display); font-weight: 900; color: var(--velours); }
[data-theme="pop"] .strip-foot { font-family: var(--display); font-weight: 800; color: #6f86ff; }
[data-theme="pop"] .btn-accent { box-shadow: 0 0 0 3px var(--velours), 5px 5px 0 var(--velours); }
[data-theme="pop"] .btn-accent:active { transform: translate(3px, 3px); box-shadow: 0 0 0 3px var(--velours), 2px 2px 0 var(--velours); }
[data-theme="pop"] .card { background: #fff; color: var(--velours); box-shadow: 0 0 0 3px var(--velours), 8px 8px 0 var(--velours); }
[data-theme="pop"] .card h2 { font-weight: 900; letter-spacing: -0.02em; font-size: 1.2rem; }
[data-theme="pop"] .card p { color: #3b4aa8; }
[data-theme="pop"] .card input { background: #eef1ff; color: var(--velours); border-color: #c4ccff; }
[data-theme="pop"] .card input:focus { border-color: var(--velours); }
[data-theme="pop"] .notice.ok { background: #e3ffe9; color: #0a6b33; }
[data-theme="pop"] .notice.err { background: #ffe6ef; color: #b0124f; }
[data-theme="pop"] .pending-text strong { font-weight: 900; }

/* Choix du style dans les réglages */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-opt { background: var(--velours); border: 2px solid var(--trait); border-radius: 14px; padding: 12px; cursor: pointer; display: grid; gap: 4px; }
.theme-opt:has(input:checked) { border-color: var(--accent); }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt .sw { height: 46px; border-radius: 10px; display: flex; gap: 6px; align-items: center; padding: 0 10px; margin-bottom: 4px; }
.theme-opt .sw i { width: 18px; height: 18px; border-radius: 50%; }
.theme-opt small { color: var(--brume); font-size: .82rem; line-height: 1.3; }
.theme-opt:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* =================================================================
   Thème « Gala » (page client) : émeraude, filets dorés, Bodoni
   ================================================================= */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-500i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
body.public[data-theme="gala"] {
  --velours: #0b2e24; --rideau: #14513f; --trait: #2f6b57;
  --flash: #f6efe0; --lilas: #c6d8cd; --brume: #9fbcae; --sur-accent: #0b2e24;
  --display: "Bodoni Moda", Georgia, serif;
  background: radial-gradient(120% 60% at 50% 0%, #14513f 0%, #0b2e24 70%) #0b2e24; background-attachment: fixed;
}
html:has(body[data-theme="gala"]) { background: #0b2e24; }
[data-theme="gala"] .marquee { height: 14px; max-width: 200px; filter: none; animation: none;
  background: linear-gradient(#c9a55a, #c9a55a) 0 50% / 80px 1px no-repeat, linear-gradient(#c9a55a, #c9a55a) 100% 50% / 80px 1px no-repeat,
              radial-gradient(circle, #c9a55a 0 3.5px, transparent 4px) 50% 50% / 14px 14px no-repeat; }
[data-theme="gala"] .client-head h1 { font-weight: 600; letter-spacing: .01em; }
[data-theme="gala"] .client-head p { font-family: var(--display); font-style: italic; color: #c9a55a; }
[data-theme="gala"] .strip { transform: none; border-radius: 2px; box-shadow: inset 0 0 0 8px var(--flash), inset 0 0 0 9px #c9a55a, 0 30px 60px -20px rgba(0,0,0,.6); padding: 22px 22px 14px; }
[data-theme="gala"] .strip-item .row span { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.1rem; }
[data-theme="gala"] .strip-foot { font-family: var(--display); font-style: italic; color: #8a7a55; font-size: .95rem; }
[data-theme="gala"] .card { box-shadow: inset 0 0 0 1px rgba(201,165,90,.5); }
[data-theme="gala"] .card h2 { font-weight: 600; }

/* =================================================================
   Thème « Graffiti » (page client) : mur jaune, traits noirs, couleurs primaires
   ================================================================= */
@font-face { font-family: "Permanent Marker"; src: url("../fonts/marker.woff2") format("woff2"); font-display: swap; }
body.public[data-theme="graffiti"] {
  --velours: #000; --rideau: #fff; --trait: #000; --flash: #000; --lilas: #000; --brume: #222; --sur-accent: #000;
  --display: "Permanent Marker", "Arial Black", sans-serif;
  background: #ffe11a; color: #000;
}
html:has(body[data-theme="graffiti"]) { background: #ffe11a; }
[data-theme="graffiti"] .marquee { height: 16px; max-width: 220px; filter: none; animation: none;
  background: linear-gradient(135deg, #000 25%, transparent 25%) -8px 0 / 16px 16px repeat-x, linear-gradient(225deg, #000 25%, transparent 25%) -8px 0 / 16px 16px repeat-x; }
[data-theme="graffiti"] .client-head h1 { display: inline-block; background: #fff; padding: 8px 18px; transform: rotate(-2deg); box-shadow: 0 0 0 4px #000, 7px 7px 0 #000; }
[data-theme="graffiti"] .client-head p { display: inline-block; margin-top: 16px; background: #ff2e2e; color: #fff; font-weight: 800; padding: 3px 12px; transform: rotate(1.5deg); box-shadow: 0 0 0 3px #000; }
[data-theme="graffiti"] .strip { background: #fff; border-radius: 0; transform: rotate(-1.5deg); box-shadow: 0 0 0 4px #000, 9px 9px 0 #1f5bff, 9px 9px 0 4px #000; }
[data-theme="graffiti"] .strip-item img { box-shadow: 0 0 0 3px #000; }
[data-theme="graffiti"] .strip-item .row span { font-family: var(--display); font-size: 1.3rem; color: #ff2e2e; }
[data-theme="graffiti"] .strip-item .row a { color: #000; }
[data-theme="graffiti"] .strip-foot { font-family: var(--display); color: #000; font-size: 1rem; }
[data-theme="graffiti"] .btn-accent { font-family: var(--display); font-weight: 400; font-size: 1.1rem; background: #ff2e2e; color: #fff; box-shadow: 0 0 0 4px #000, 6px 6px 0 #000; transform: rotate(-1deg); }
[data-theme="graffiti"] .hint { color: #000; }
[data-theme="graffiti"] .card { background: #fff; box-shadow: 0 0 0 4px #000, 8px 8px 0 #000; border-radius: 0; }
[data-theme="graffiti"] .card h2 { color: #000; }
[data-theme="graffiti"] .card p { color: #222; }
[data-theme="graffiti"] .card input { background: #fff; color: #000; border: 3px solid #000; border-radius: 0; }
[data-theme="graffiti"] .notice.ok { background: #19c26b; color: #000; border: 3px solid #000; border-radius: 0; }
[data-theme="graffiti"] .notice.err { background: #ff4fb8; color: #000; border: 3px solid #000; border-radius: 0; }
[data-theme="graffiti"] .foot, [data-theme="graffiti"] .pending-text span { color: #000; }

/* =================================================================
   Thème « Rétro » (page client)
   ================================================================= */
@font-face { font-family: "Titan One"; src: url("../fonts/titan.woff2") format("woff2"); font-display: swap; }
body.public[data-theme="retro"] {
  --velours: #3a2a4a; --rideau: #fff5e6; --trait: #3a2a4a; --flash: #3a2a4a; --lilas: #3a2a4a; --brume: #5b4a6a; --sur-accent: #fff5e6;
  --accent: #7b5cf0;
  --display: "Titan One", "Arial Rounded MT Bold", sans-serif;
  background: repeating-conic-gradient(#f7b6cf 0 25%, #fff5e6 0 50%) 0 0 / 56px 56px fixed #fff5e6; color: #3a2a4a;
}
html:has(body[data-theme="retro"]) { background: #fff5e6; }
[data-theme="retro"] .marquee { display: none; }
[data-theme="retro"] .client-head h1 { display: inline-block; background: #ff8a3d; color: #fff5e6; padding: 10px 22px; border-radius: 16px; transform: rotate(-2deg);
  -webkit-text-stroke: 3px #3a2a4a; paint-order: stroke fill; text-shadow: 3px 4px 0 #3a2a4a; box-shadow: 0 0 0 3px #3a2a4a, 5px 6px 0 #3a2a4a; }
[data-theme="retro"] .client-head p { display: inline-block; margin-top: 16px; background: #fff5e6; padding: 4px 14px; border-radius: 999px; box-shadow: 0 0 0 3px #3a2a4a; color: #3a2a4a; font-weight: 700; }
[data-theme="retro"] .strip { background: #fff5e6; border-radius: 22px; transform: rotate(-1deg); box-shadow: 0 0 0 3px #3a2a4a, inset 0 0 0 8px #fff5e6, inset 0 0 0 10px #ff6f91, 7px 8px 0 #3a2a4a; padding: 20px 20px 12px; }
[data-theme="retro"] .strip-item img { border-radius: 12px; box-shadow: 0 0 0 3px #3a2a4a; }
[data-theme="retro"] .strip-item .row span { font-family: var(--display); color: #ff6f91; font-size: 1.2rem; }
[data-theme="retro"] .strip-foot { font-family: var(--display); color: #7b5cf0; }
[data-theme="retro"] .btn-accent { font-family: var(--display); font-weight: 400; color: #fff5e6; box-shadow: 0 0 0 3px #3a2a4a, 0 5px 0 #3a2a4a; }
[data-theme="retro"] .hint { background: #fff5e6; border-radius: 12px; padding: 8px 12px; box-shadow: 0 0 0 2px #3a2a4a; }
[data-theme="retro"] .card { background: #fff5e6; box-shadow: 0 0 0 3px #3a2a4a, 6px 7px 0 #3a2a4a; }
[data-theme="retro"] .card h2 { font-weight: 400; color: #3a2a4a; }
[data-theme="retro"] .card p { color: #5b4a6a; }
[data-theme="retro"] .card input { background: #fff; color: #3a2a4a; border-color: #3a2a4a; }
[data-theme="retro"] .notice.ok { background: #d6f5e4; color: #1d6b43; }
[data-theme="retro"] .notice.err { background: #ffe0ea; color: #b0124f; }
[data-theme="retro"] .foot, [data-theme="retro"] .pending-text { background: #fff5e6; border-radius: 14px; padding: 10px 14px; box-shadow: 0 0 0 2px #3a2a4a; color: #3a2a4a; }
[data-theme="retro"] .pending-text span { color: #3a2a4a; }

/* =================================================================
   Thème « Y2K » (page client)
   ================================================================= */
@font-face { font-family: "Syne"; src: url("../fonts/syne-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
body.public[data-theme="y2k"] {
  --velours: #1d1a4d; --rideau: #fff; --trait: #1d1a4d; --flash: #1d1a4d; --lilas: #1d1a4d; --brume: #3d3a6d; --sur-accent: #fff;
  --accent: #5b4bff;
  --display: "Syne", "Arial Black", sans-serif;
  background:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 40px 40px, #b9b2ff;
  color: #1d1a4d;
}
html:has(body[data-theme="y2k"]) { background: #b9b2ff; }
[data-theme="y2k"] .marquee { height: 22px; max-width: 240px; filter: none; animation: none; border-radius: 6px; box-shadow: 0 0 0 2px #1d1a4d;
  background: repeating-conic-gradient(#5b4bff 0 25%, #d7ff3d 0 50%) 0 0 / 22px 22px; }
[data-theme="y2k"] .client-head h1 { display: inline-block; font-weight: 800; letter-spacing: -0.02em; background: #5b4bff; color: #fff; padding: 8px 22px; border-radius: 999px; box-shadow: 0 0 0 2px #1d1a4d, 0 5px 0 #1d1a4d; }
[data-theme="y2k"] .client-head p { display: inline-block; margin-top: 16px; background: #d7ff3d; color: #1d1a4d; padding: 4px 14px; border-radius: 999px; box-shadow: 0 0 0 2px #1d1a4d; font-weight: 700; }
[data-theme="y2k"] .strip { background: #fff; border-radius: 22px; transform: none; box-shadow: 0 0 0 2px #1d1a4d, 0 0 0 10px #d7ff3d, 0 0 0 12px #1d1a4d; margin: 12px 12px 40px; }
[data-theme="y2k"] .strip-item img { border-radius: 14px; }
[data-theme="y2k"] .strip-item .row span { font-family: var(--display); font-weight: 800; color: #5b4bff; }
[data-theme="y2k"] .strip-foot { font-family: var(--display); font-weight: 800; color: #1d1a4d; }
[data-theme="y2k"] .btn-accent { color: #fff; box-shadow: 0 0 0 2px #1d1a4d, 0 5px 0 #1d1a4d; }
[data-theme="y2k"] .hint { color: #1d1a4d; }
[data-theme="y2k"] .card { background: #fff; box-shadow: 0 0 0 2px #1d1a4d, 0 6px 0 #1d1a4d; }
[data-theme="y2k"] .card h2 { font-weight: 800; color: #1d1a4d; letter-spacing: -0.02em; font-size: 1.15rem; }
[data-theme="y2k"] .card p { color: #3d3a6d; }
[data-theme="y2k"] .card input { background: #f3f1ff; color: #1d1a4d; border-color: #1d1a4d; }
[data-theme="y2k"] .notice.ok { background: #ecffb0; color: #2d4a00; }
[data-theme="y2k"] .notice.err { background: #ffe1d6; color: #9c2b05; }
[data-theme="y2k"] .foot, [data-theme="y2k"] .pending-text span { color: #1d1a4d; }
