/* Les 20 propositions de design (config/designs.php), par-dessus site.css. Chaque bloc redéfinit les jetons de couleur et
   de police sur body[data-design], plus quelques règles qui lui sont propres. « vinyle » est la base de site.css. */

/* Logo d'une seule couleur (masque) : les designs où le rouge du disque ne passe pas. */
body[data-design="platine"], body[data-design="jazz"], body[data-design="metal"], body[data-design="electro"],
body[data-design="journal"], body[data-design="soul"], body[data-design="etiquette"] {
  --logo-mask: url("../logo/embleme-mono.svg") center / contain no-repeat;
}

/* 2 — Microsillon */
body[data-design="microsillon"] {
  --bg: #0d0b0b; --surface: #171313; --ink: #f4ecea; --ink-2: #b4a7a4; --line: #2c2424; --accent: #ff4a3d; --accent-ink: #0d0b0b;
  --chip: #241d1d; --warn: #3a2a12; --font-title: "Space Grotesk", sans-serif; --font-text: "Work Sans", sans-serif;
  --title-weight: 700; --top-bg: #0d0b0b;
  background-image: repeating-radial-gradient(circle at 50% -20%, transparent 0 6px, rgba(255, 255, 255, .025) 6px 7px);
}
body[data-design="microsillon"] .btn--listen { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 3 — Pochette 12 pouces */
body[data-design="pochette"] {
  --bg: #efe9df; --surface: #ffffff; --ink: #1a1414; --ink-2: #5f5550; --line: #1a1414; --accent: #e03930; --accent-ink: #fff;
  --chip: #e2d8c9; --font-title: "Archivo Black", sans-serif; --font-text: "Work Sans", sans-serif; --title-weight: 400;
  --card-radius: 0; --card-border: 3px solid #1a1414; --card-shadow: 8px 8px 0 #1a1414; --btn-radius: 0; --radius: 0;
}
body[data-design="pochette"] .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px; }
body[data-design="pochette"] .card__name { font-family: var(--font-title); font-weight: 400; }

/* 4 — Étiquette centrale */
body[data-design="etiquette"] {
  --bg: #fbf6f3; --surface: #ffffff; --ink: #321d1c; --ink-2: #7a5d5a; --line: #ecdcd7; --accent: #e03930; --accent-ink: #fff;
  --chip: #fbe3df; --font-title: "Outfit", sans-serif; --font-text: "Outfit", sans-serif; --title-weight: 800;
  --top-bg: #e03930; --top-ink: #fff; --logo-bg: #fff; --card-radius: 50%; --radius: 18px;
}
body[data-design="etiquette"] .top .input { background: #fff; border-color: #fff; }
body[data-design="etiquette"] .brand__bands { color: #fff; }
body[data-design="etiquette"] .hero { background: radial-gradient(circle, #e03930 0 38%, transparent 38.2%) center / 1200px 1200px no-repeat; color: #fff; padding-bottom: 80px; }
body[data-design="etiquette"] .hero__count { color: #fff; }

/* 5 — Platine */
body[data-design="platine"] {
  --bg: #e6e7e8; --surface: #f5f5f6; --ink: #161617; --ink-2: #5d5f63; --line: #c9cbce; --accent: #e03930; --accent-ink: #fff;
  --chip: #d6d8db; --font-title: "Manrope", sans-serif; --font-text: "Manrope", sans-serif; --title-weight: 800;
  --top-bg: #161617; --top-ink: #f5f5f6; --logo-bg: #e03930; --radius: 6px;
  background-image: linear-gradient(180deg, #eceded, #dcdee0);
}
body[data-design="platine"] .brand__bands { color: #e03930; }

/* 6 — Affiche de concert */
body[data-design="affiche"] {
  --bg: #f3dd8e; --surface: #f8e8ad; --ink: #111; --ink-2: #4b4128; --line: #111; --accent: #d72d22; --accent-ink: #fff;
  --chip: #ebcd6c; --font-title: "Oswald", sans-serif; --font-text: "Barlow", sans-serif; --title-weight: 700;
  --title-transform: uppercase; --title-spacing: 0; --btn-radius: 0; --card-radius: 0; --radius: 0; --top-bg: #111; --top-ink: #f3dd8e;
}
body[data-design="affiche"] h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: .95; }
body[data-design="affiche"] .tag { border-radius: 0; background: #111; color: #f3dd8e; }

/* 7 — Billet */
body[data-design="billet"] {
  --bg: #f1ece4; --surface: #fffaf2; --ink: #241615; --ink-2: #6f5f5c; --line: #d7c9bb; --accent: #e03930; --accent-ink: #fff;
  --chip: #f4d9d4; --font-title: "Archivo Black", sans-serif; --font-text: "Space Mono", monospace; --title-weight: 400; --radius: 4px;
}
body[data-design="billet"] .block, body[data-design="billet"] .card a {
  background: var(--surface); padding: 16px; border: 1px dashed var(--ink-2);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
}
body[data-design="billet"] { font-size: 15px; }

/* 8 — Fanzine */
body[data-design="fanzine"] {
  --bg: #f4f4f1; --surface: #fff; --ink: #0c0c0c; --ink-2: #4a4a4a; --line: #0c0c0c; --accent: #e8261c; --accent-ink: #fff;
  --chip: #e4e4e0; --font-title: "Archivo Black", sans-serif; --font-text: "Courier Prime", monospace; --title-weight: 400;
  --img-filter: grayscale(1) contrast(1.4); --btn-radius: 0; --card-radius: 0; --radius: 0;
  background-image: radial-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px); background-size: 4px 4px;
}
body[data-design="fanzine"] h1, body[data-design="fanzine"] h2 { text-decoration: underline 4px var(--accent); text-underline-offset: 6px; }
body[data-design="fanzine"] .card { transform: rotate(-1.2deg); }
body[data-design="fanzine"] .card:nth-child(2n) { transform: rotate(1.4deg); }

/* 9 — Club la nuit */
body[data-design="nuit"] {
  --bg: #0b1022; --surface: #121a35; --ink: #eef0ff; --ink-2: #9aa3c7; --line: #222c52; --accent: #ff3b5c; --accent-ink: #0b1022;
  --chip: #1b2547; --warn: #3a2a12; --font-title: "Unbounded", sans-serif; --font-text: "Work Sans", sans-serif; --title-weight: 700;
  --top-bg: #0b1022; --title-spacing: 0;
}
body[data-design="nuit"] h1, body[data-design="nuit"] .brand__bands { text-shadow: 0 0 18px rgba(255, 59, 92, .7); }
body[data-design="nuit"] .btn--primary, body[data-design="nuit"] .btn--listen { box-shadow: 0 0 16px rgba(255, 59, 92, .55); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 10 — Pochette de jazz */
body[data-design="jazz"] {
  --bg: #f3efe6; --surface: #fff; --ink: #0f2142; --ink-2: #4a5a78; --line: #c9cfdb; --accent: #e03930; --accent-ink: #fff;
  --chip: #dfe6f2; --font-title: "Oswald", sans-serif; --font-text: "Barlow", sans-serif; --title-weight: 700;
  --title-transform: uppercase; --title-spacing: .01em; --top-bg: #1d4f91; --top-ink: #fff; --logo-bg: #fff; --btn-radius: 0; --card-radius: 0;
  --img-filter: grayscale(1) sepia(1) hue-rotate(180deg) saturate(2.4) brightness(.9);
}
body[data-design="jazz"] .brand__bands { color: #ffd2cc; }
body[data-design="jazz"] .hero { background: #1d4f91; color: #fff; max-width: none; }
body[data-design="jazz"] .hero__count { color: #d9e4f5; }

/* 11 — Soul */
body[data-design="soul"] {
  --bg: #f6e6cf; --surface: #fff4e2; --ink: #3b1d0e; --ink-2: #7d5638; --line: #e2c49d; --accent: #e2551b; --accent-ink: #fff;
  --chip: #f2d3a8; --font-title: "Shrikhand", serif; --font-text: "DM Sans", sans-serif; --title-weight: 400; --title-spacing: 0;
  --top-bg: #3b1d0e; --top-ink: #f6e6cf; --logo-bg: #f39a2d; --radius: 22px;
}
body[data-design="soul"] .brand__bands { color: #f39a2d; }
body[data-design="soul"] .hero { background: linear-gradient(180deg, #e2551b 0 33%, #f39a2d 33% 66%, #f6c35a 66%); color: #3b1d0e; max-width: none; }

/* 12 — Salle de concert */
body[data-design="salle"] {
  --bg: #f7f1e6; --surface: #fffaf1; --ink: #2a1414; --ink-2: #6e5550; --line: #e2d3bd; --accent: #8e2825; --accent-ink: #fff;
  --chip: #efe2cd; --font-title: "Bodoni Moda", serif; --font-text: "Source Serif 4", serif; --title-weight: 700; --title-spacing: 0;
  --btn-radius: 2px; --radius: 2px;
}
body[data-design="salle"] h1 { font-style: italic; }
body[data-design="salle"] .mini, body[data-design="salle"] .kicker { letter-spacing: .2em; }

/* 13 — Indie */
body[data-design="indie"] {
  --bg: #fbe9ea; --surface: #fff5f5; --ink: #2b1414; --ink-2: #7b5556; --line: #f1c9cb; --accent: #e03930; --accent-ink: #fff;
  --chip: #f7d3d5; --font-title: "Syne", sans-serif; --font-text: "Work Sans", sans-serif; --title-weight: 800; --radius: 14px;
}
body[data-design="indie"] .card img, body[data-design="indie"] .artist__photo img { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }

/* 14 — Métal */
body[data-design="metal"] {
  --bg: #050505; --surface: #0f0f0f; --ink: #f2f2f2; --ink-2: #9a9a9a; --line: #2a2a2a; --accent: #e3241b; --accent-ink: #fff;
  --chip: #1a1a1a; --warn: #3a1612; --font-title: "Archivo Black", sans-serif; --font-text: "Barlow", sans-serif; --title-weight: 400;
  --title-transform: uppercase; --title-spacing: .12em; --btn-radius: 0; --card-radius: 0; --radius: 0; --top-bg: #050505; --logo-bg: #e3241b;
  --img-filter: grayscale(1) contrast(1.3);
}
body[data-design="metal"] .btn--listen { background: transparent; color: #f2f2f2; border-color: #f2f2f2; }

/* 15 — Folk */
body[data-design="folk"] {
  --bg: #dcc7a2; --surface: #e8d8ba; --ink: #33210f; --ink-2: #6a5034; --line: #bfa47a; --accent: #b23a26; --accent-ink: #fff;
  --chip: #cfb68b; --font-title: "Young Serif", serif; --font-text: "Alegreya Sans", sans-serif; --title-weight: 400; --title-spacing: 0;
  --img-filter: sepia(.35); --radius: 6px;
  background-image: radial-gradient(rgba(60, 40, 10, .07) 1px, transparent 1.5px); background-size: 6px 6px;
}

/* 16 — Électro */
body[data-design="electro"] {
  --bg: #070707; --surface: #0e0e0e; --ink: #e9ffe9; --ink-2: #8fb08f; --line: #1e2a1e; --accent: #ff3b30; --accent-ink: #000;
  --chip: #121a12; --warn: #2e2a10; --font-title: "Space Mono", monospace; --font-text: "Space Mono", monospace; --title-weight: 700;
  --title-spacing: -.02em; --top-bg: #070707; --logo-bg: #7dff8b; --btn-radius: 0; --card-radius: 0; --radius: 0;
  background-image: linear-gradient(rgba(125, 255, 139, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 255, 139, .06) 1px, transparent 1px);
  background-size: 24px 24px; font-size: 15px;
}
body[data-design="electro"] .brand__bands { color: #7dff8b; }

/* 17 — Festival */
body[data-design="festival"] {
  --bg: #ffffff; --surface: #fff8e0; --ink: #1d1a17; --ink-2: #6b6359; --line: #f0e3b5; --accent: #e03930; --accent-ink: #fff;
  --chip: #ffe27a; --font-title: "Jost", sans-serif; --font-text: "Jost", sans-serif; --title-weight: 700; --radius: 16px;
}
body[data-design="festival"] .hero { background: linear-gradient(120deg, #ffe27a, #ffb347 50%, #ff7a6b); max-width: none; }
body[data-design="festival"] .tag:nth-child(3n+1) { background: #ffe27a; }
body[data-design="festival"] .tag:nth-child(3n+2) { background: #ffd0c9; }
body[data-design="festival"] .tag:nth-child(3n) { background: #cdeffd; }

/* 18 — Cassette */
body[data-design="cassette"] {
  --bg: #efe6d4; --surface: #f8f1e3; --ink: #2a1f17; --ink-2: #6e5f50; --line: #d8c8aa; --accent: #e03930; --accent-ink: #fff;
  --chip: #e6d6b6; --font-title: "Barlow Condensed", sans-serif; --font-text: "Barlow", sans-serif; --title-weight: 700;
  --title-transform: uppercase; --title-spacing: .02em; --radius: 4px;
}
body[data-design="cassette"] .top { border-bottom: 0; box-shadow: 0 6px 0 #e03930, 0 12px 0 #f08a24, 0 18px 0 #f6c445; margin-bottom: 18px; }
body[data-design="cassette"] h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); }

/* 19 — Journal */
body[data-design="journal"] {
  --bg: #f7f5f0; --surface: #fff; --ink: #111; --ink-2: #555; --line: #111; --accent: #c8281f; --accent-ink: #fff;
  --chip: #ebe8e1; --font-title: "Libre Baskerville", serif; --font-text: "Hanken Grotesk", sans-serif; --title-weight: 700;
  --title-spacing: -.01em; --logo-bg: #111; --btn-radius: 0; --card-radius: 0; --radius: 0; --img-filter: grayscale(1);
}
body[data-design="journal"] .top { border-bottom: 3px double #111; }
body[data-design="journal"] .block > h2 { border-top: 2px solid #111; padding-top: 8px; }
body[data-design="journal"] .show time { color: var(--accent); }

/* 20 — Épuré */
body[data-design="epure"] {
  --bg: #ffffff; --surface: #ffffff; --ink: #0a0a0a; --ink-2: #6b6b6b; --line: #ececec; --accent: #0a0a0a; --accent-ink: #fff;
  --chip: #f3f3f3; --font-title: "Plus Jakarta Sans", sans-serif; --font-text: "Plus Jakarta Sans", sans-serif; --title-weight: 800;
}
body[data-design="epure"] .brand__bands { color: #e03930; }
body[data-design="epure"] .btn--listen { background: #fff; color: #0a0a0a; border-color: #0a0a0a; }

/* Les designs explicitement sombres n'ont pas de variante claire : on les garde tels quels en mode clair comme en sombre. */
body[data-design]:not([data-design="vinyle"]) { color-scheme: normal; }
body[data-design="microsillon"], body[data-design="nuit"], body[data-design="metal"], body[data-design="electro"] { color-scheme: dark; }
body[data-design]:not([data-design="vinyle"]) { background-color: var(--bg); color: var(--ink); }

/* — Curseur des designs (règles du 2026-10-10) : la barre ne change jamais de largeur, flèches toujours au même endroit,
     zone du nom large comme le nom le plus long ; par-dessus tout, enfant direct de body. — */
.sdesign {
  position: fixed; z-index: 2147483647; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: grid; grid-template-columns: auto 11rem auto auto; align-items: center; gap: 6px; padding: 6px;
  border: 1px solid #888; border-radius: 999px; background: #fff; color: #111; font: 14px/1.2 system-ui, sans-serif;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3); color-scheme: light;
}
.sdesign button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #eee; color: #111; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.sdesign button:hover { background: #ddd; }
.sdesign input[type="range"] { width: 100%; height: 36px; margin: 0; accent-color: #111; cursor: pointer; }
/* Tous les noms empilés dans la même case : la case prend la largeur du plus long, seul le courant se voit. */
.sdesign__names { display: grid; padding: 0 12px 0 4px; white-space: nowrap; }
.sdesign__names span { grid-area: 1 / 1; visibility: hidden; }
.sdesign__names span[aria-current="true"] { visibility: visible; font-weight: 600; }
.sdesign__names small { font-weight: 400; color: #666; margin-right: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .sdesign { grid-template-columns: auto 1fr auto; width: 94vw; border-radius: 22px; }
  .sdesign__names { grid-column: 1 / -1; grid-row: 1; justify-items: center; padding: 4px 0 0; }
}
body:has(.sdesign) .foot { padding-bottom: 7rem; }
