/* Nene Royal Song Archive — feuille unique.
   Polices hébergées chez nous (SIL OFL, voir fonts/OFL-*.txt) : Kanit pour les
   titres, Sarabun pour le texte thaï. Le texte latin courant reste en police
   système. Aucun appel à un service de polices tiers. */
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap;
  src: url(fonts/kanit-600-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap;
  src: url(fonts/kanit-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sarabun"; font-weight: 400; font-display: swap;
  src: url(fonts/sarabun-400-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Sarabun"; font-weight: 600 700; font-display: swap;
  src: url(fonts/sarabun-600-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
:root {
  /* gris très foncé, légèrement chaud (pas un noir pur) ; accent ambre/or */
  --bg: #1b1916; --bg2: #25221e; --line: #3a352e;
  color-scheme: dark;
  --text: #f0ece4; --muted: #aaa397; --accent: #f5a524; --warn: #e5534b;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Sarabun", "Noto Sans Thai",
          "Leelawadee UI", "Thonburi", sans-serif;
  --titre: "Kanit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font);
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
main { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }
h1 { font: 600 2rem/1.25 var(--titre); margin: 24px 0 4px; }
h2 { font: 600 1.2rem/1.35 var(--titre); margin: 32px 0 8px; }
/* Le thaï empile voyelles et tons au-dessus et au-dessous de la ligne :
   il lui faut plus d'interligne que le latin. */
:lang(th) { line-height: 1.75; }
html[lang=th] body { font-family: "Sarabun", var(--font); }
html[lang=th] h1, html[lang=th] h2 { line-height: 1.5; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Le masquage par le filtre (attribut hidden) doit gagner sur les display: block du mobile. */
[hidden] { display: none !important; }

/* En-tête */
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  max-width: 960px; margin: 0 auto; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font: 600 1.05rem/1.4 var(--titre); letter-spacing: .01em; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .95rem; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav .lang { color: var(--accent); }

/* Accueil */
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-top: 36px; }
.sub { color: var(--muted); margin: 0; }
.tagline { color: var(--accent); font: 600 1.3rem/1.4 var(--titre); margin: 4px 0 12px; }
.intro { color: var(--muted); max-width: 40em; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.stats div {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; color: var(--muted);
}
.stats b { color: var(--text); font: 600 1.25rem var(--titre); }
.top-artists { color: var(--muted); margin: 8px 0 16px; }
.top-artists summary { cursor: pointer; }
.top-artists ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.top-artists span { color: var(--muted); }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.filtres .q { flex: 1 1 100%; }
.filtres input[type=search], .filtres select {
  width: 100%; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font: inherit;
}
.filtres input[type=search] { font-size: 1.1rem; padding: 14px 16px; }
.filtres input:focus, .filtres select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filtres label { flex: 1 1 180px; }
.filtres .chk { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.compte { color: var(--muted); font-size: .9rem; margin: 8px 0; }

/* Tableau */
.catalogue { width: 100%; border-collapse: collapse; }
.catalogue th {
  text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line);
}
.catalogue td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalogue tr:hover td { background: var(--bg2); }
.catalogue .song a { color: var(--text); font-weight: 600; }
.catalogue .song a:hover { color: var(--accent); }
/* Artistes : tous cliquables, même couleur que le texte (Denis, 09.10.2026). */
.catalogue .artist a { color: inherit; }
.catalogue .artist a:hover { color: var(--accent); }
.catalogue .song .note { margin-left: 8px; }
/* « Santana version » sous l'auteur d'origine (Denis, 10.10.2026). */
.version { display: block; font-size: .85rem; color: var(--muted); }
.version a { color: inherit; text-decoration: underline; }
p.version { margin: 0 0 .5em; font-size: .95rem; }
.catalogue .videos { text-align: center; color: var(--muted); width: 5em; }
.catalogue th button {
  all: unset; cursor: pointer; text-transform: inherit; letter-spacing: inherit;
}
.catalogue th button:hover, .catalogue th button:focus-visible { color: var(--text); }
.catalogue th[aria-sort=ascending] button::after { content: " ▲"; color: var(--accent); }
.alt { display: block; color: var(--muted); font-size: .92rem; }
.note {
  display: inline-block; margin-top: 2px; font-size: .8rem; color: var(--accent);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 6px;
}
p.alt { margin: 0; font-size: 1.15rem; }
p.note { font-size: .9rem; }
.vide { color: var(--muted); }

@media (max-width: 640px) {
  .catalogue thead { display: none; }
  .catalogue tr { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .catalogue td { display: block; border: 0; padding: 0; }
  .catalogue .artist { color: var(--muted); }
  .catalogue .videos { text-align: left; width: auto; font-size: .85rem; }
  .catalogue .videos::before { content: attr(data-label) ": "; }
}

/* Page morceau */
.retour { margin: 20px 0 0; font-size: .9rem; }
.artiste { color: var(--muted); }
.sources { list-style: none; padding: 0; }
.source {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 8px; overflow-wrap: anywhere;
}
.source a { font-weight: 600; }
/* « Must-watch » : vidéos choisies par Denis, en tête de liste. */
.source.a-voir { border-left: 3px solid var(--accent); }
.source p.tampon {
  margin: 0 0 4px; color: var(--accent); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.source.avec-image { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: start; }
.miniature { display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 6px; overflow: hidden; background: var(--line); }
.miniature img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .source.avec-image { grid-template-columns: 1fr; } }
.source p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.meta { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.badge {
  display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 4px;
  font-size: .75rem; background: var(--accent); color: var(--bg); font-weight: 700;
}
.badge.warn { background: var(--warn); color: #fff; }
.bouton {
  display: inline-block; padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 600; margin: 4px 0;
}
.bouton:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.boutons { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contrib { margin-top: 24px; color: var(--muted); }
.plus ul { padding-left: 1.2em; }

/* Pied de page, racine */
footer {
  max-width: 960px; margin: 0 auto; padding: 24px 16px 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.disclaimer { color: var(--muted); font-size: .9rem; }
.racine main { text-align: center; padding-top: 12vh; }
.racine .boutons { justify-content: center; }
.fan { font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.brand .fan { font-size: .75em; }

/* Photo d'accueil (CC BY 4.0, crédit obligatoire sous l'image) */
.photo { margin: 24px 0 0; }
.photo img {
  display: block; width: 100%; max-width: 100%; height: clamp(170px, 32vw, 300px);
  object-fit: cover; object-position: 50% 45%; border-radius: 10px;
}
.photo figcaption { color: var(--muted); font-size: .75rem; margin-top: 4px; text-align: right; }
.photo figcaption a { color: var(--muted); text-decoration: underline; }
.hero .photo + h1 { margin-top: 20px; }

/* Accueil : encadré « Must-watch ». */
.encadre-mw {
  background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 14px 18px; margin: 28px 0; max-width: 40em;
}
.encadre-mw h2 { margin: 0 0 6px; color: var(--accent); }
.encadre-mw p { margin: 0 0 6px; color: var(--muted); }
.encadre-mw p:last-child { margin: 0; }
.encadre-mw a { font-weight: 600; }
/* Accueil : section des chansons. */
.chansons { border-top: 1px solid var(--line); margin-top: 28px; }
.chansons > h2 { margin-top: 24px; }
.catalogue .etoile { color: var(--accent); margin-left: 4px; }
