:root {
  --bg: #f3f0e8;
  --surface: #fffdf8;
  --surface-2: #ece7dc;
  --text: #1d1d1b;
  --muted: #6c695f;
  --line: #d8d2c5;
  --accent: #e54b2a;
  --accent-2: #232323;
  --positive: #2f7d4b;
  --negative: #a33b34;
  --shadow: 0 12px 30px rgb(40 35 25 / 8%);
  --radius: 0px;
  --radius-sm: 0px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;

  background-color: var(--bg);
  background-image: url("TandD.png");
  background-repeat: repeat;
  background-size: 1254px 1254px;
  background-position: top left;

  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.site-header {
/*  border-bottom: 1px solid var(--line);
  background: rgb(243 240 232 / 88%);
  backdrop-filter: blur(12px);*/
 /* position: sticky;*/
  top: 0;
  z-index: 30;
}
.header-inner {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  margin-top: 20px;
}

.site-nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 7px 9px;
  border-top: 1px solid rgb(29 29 27 / 22%);
  border-bottom: 1px solid rgb(29 29 27 / 12%);
  font-size: .74rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 253, 248, 0.37);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.site-nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  opacity: .72;
  transition: opacity .15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--accent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.03em;
  font-size: 5.15rem;
  font-family: "Inknut Antiqua", serif;
  font-style: normal;

}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  background: var(--text);
  color: var(--surface);
  border-radius: 50%;
}
.tagline { margin: 0; color: var(--muted); font-size: .92rem; }

main { padding-block: 40px 80px; }
.panel {
  background: #f3f0e8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.leaders-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  margin-bottom: 64px;

  position: relative;
  z-index: 0;
  isolation: isolate;
}
#global-leader{background: #1d1d1b !important; border: none !important;}
.leader-content h1{
  color: #ece7dc;
}

.leader-content h2{
    font-size: 40px;
}
.rank-actions{margin: 12px 0;}
#global-leader .big-score, #global-leader h2{
  color: #ebe8dc;
}

.leaders-grid::before {
  content: "";
  position: absolute;

  /* Même hauteur que leaders-grid */
  top: 0;
  bottom: 0;

  /* Pleine largeur de l'écran */
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);

background: rgba(255, 253, 248, 0.37);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  z-index: -1;
}
.leader-card { padding: 22px; min-height: 190px; }
.leader-card-week { background: var(--surface-2); }
.eyebrow {
  color: var(--accent);
  font-weight: 900;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 9px;
  position: relative;
  display: table;
  background-color: #f5ebda;
  padding: 5px 10px;
}
.leader-content {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}
.leader-card-week .leader-content { grid-template-columns: 82px minmax(0, 1fr); }
.album-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  align-self: start;
}
.song-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.song-album { margin: 7px 0 12px; color: var(--muted); }
.stat-line { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.big-score { font-size: 19px; font-weight: 950; letter-spacing: -.04em; margin-bottom: -11px;}

.muted { color: var(--muted); }

.vote-section, .ranking-section, .history-section { margin-bottom: 68px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: .98;
  letter-spacing: -.055em;
  position: relative;
  display: inline-block;
  color: #f3f0e8;
  background-color: #1d1d1b;
  padding: 5px 10px;
  font-weight: 700;
}
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.section-heading p { max-width: 430px; color: var(--muted); margin: 0; text-align: right; position: relative;
  display: inline-block;
  background-color: #f3f0e8;
  padding: 5px 10px;}

.duel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
.versus {
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}
.duel-card {
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.duel-head {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.duel-card .song-title { font-size: clamp(1.35rem, 2.4vw, 2.2rem); }
.bandcamp-frame {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
  margin-top: auto;
}
.player-fallback {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 16px;
  color: var(--muted);
  margin-top: auto;
}
.vote-button {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 15px 18px;
  background: var(--text);
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.vote-button:hover { transform: translateY(-2px); background: #8c80b3 }
.vote-button:disabled { opacity: .45; cursor: wait; transform: none; }
.vote-message {min-height: 26px;
  margin: 10px 0 0;
  text-align: center;
color: #1d1d1b;
  padding: 5px;
  font-weight: 600;}
.vote-message.is-error { color: var(--negative); }

.vote-message {
  background: transparent;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    padding 0.2s ease;
}

.vote-message:not(:empty) {
  background: #b6d14c;
  padding: 10px 14px;
}

.ranking-panel { overflow: hidden; }
.ranking-list { display: grid; }
.ranking-row {
  display: grid;
  grid-template-columns: 54px 56px minmax(180px, 1fr) auto 230px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.ranking-row:last-child { border-bottom: 0; }
.rank-number { font-size: 1.2rem; font-weight: 950; color: var(--muted); text-align: center; }
.rank-cover { width: 56px; aspect-ratio: 1; object-fit: cover; border-radius: 0px; border: 1px solid var(--line); }
.rank-song { min-width: 0; }
.rank-song strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-song span { display: block; color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-actions { display: flex; gap: 8px; align-items: center; }
.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;font-size: 14px;
}
.icon-button:hover { border-color: var(--text); }
.stats { display: grid; gap: 5px; }
.stats-top { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.bar { height: 7px; background: #e3ded3; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--positive); border-radius: inherit; }
.ranking-player {
  grid-column: 3 / -1;
  padding: 4px 0 8px;
}
.ranking-player iframe { width: 100%; height: 120px; border: 0; border-radius: 0px; }

.history-list { display: grid; }
.history-row {
  display: grid;
  grid-template-columns: 180px 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.history-row:last-child { border-bottom: 0; }
.history-date { font-weight: 800; }
.history-row .rank-cover { width: 52px; }
.empty-state { padding: 28px; color: var(--muted); text-align: center; }

.site-footer { border-top: O solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0;position: relative;
  display: inline-block;
  background-color: #e54b2a;
  padding: 5px 10px; 
color: #f3f0e8;}
.noscript { padding: 20px; background: #fff1d7; text-align: center; }

.skeleton {
  border-radius: 0px;
  background: linear-gradient(90deg, #e5e0d5 20%, #f0ece3 38%, #e5e0d5 56%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-large { height: 125px; }
.skeleton-medium { height: 100px; }
.skeleton-card { height: 360px; }
.skeleton-list { height: 310px; margin: 16px; }
@keyframes shimmer { to { background-position: -100% 0; } }


#fight,
#monthly-winners,
#global-rank,
#album-rank {
  scroll-margin-top: 18px;
}

@media (max-width: 820px) {
  .leaders-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { text-align: left; margin-top: 10px; }
  .duel-grid { grid-template-columns: 1fr; gap: 12px; }
  .versus { min-height: 34px; }
  .ranking-row { grid-template-columns: 38px 48px minmax(0, 1fr) auto; }
  .rank-cover { width: 48px; }
  .stats { grid-column: 3 / -1; }
  .ranking-player { grid-column: 1 / -1; }
  .history-row { grid-template-columns: 1fr 48px minmax(0, 1fr); }
  .history-row .stats { grid-column: 2 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 20px), var(--max)); }
  .brand { font-size: clamp(2.45rem, 12vw, 4rem); }
  .site-nav {
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .tagline { display: none; }
  main { padding-top: 24px; }
  .leaders-grid { margin-bottom: 48px; }
  .leader-content, .leader-card-week .leader-content { grid-template-columns: 78px minmax(0, 1fr); }
  .duel-head { grid-template-columns: 74px minmax(0, 1fr); }
  .ranking-row { padding-inline: 10px; gap: 9px; }
  .rank-actions .bandcamp-link { display: none; }
  .history-row { grid-template-columns: 1fr; gap: 7px; }
  .history-row .rank-cover { display: none; }
  .history-row .stats { grid-column: auto; }
}


@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@100..700&family=Big+Shoulders:opsz,wght@10..72,100..900&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Caacupe+One&family=Inknut+Antiqua:wght@300;400;500;600;700;800;900&family=Truculenta:opsz,wght@12..72,100..900&display=swap');

.honeypot {
  position: absolute;
  left: -9999px;
}



.contact-page {
  max-width: 700px;
  margin: 60px auto;
  padding: 30px;
}

.contact-page form {
  display: grid;
  gap: 20px;
}

.contact-page label {
  display: grid;
  gap: 8px;
}

.contact-page input,
.contact-page textarea {
  width: 100%;
}

.site-vote-total {
  align-self: flex-end;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #ece7dc;
  padding: 3px;
}