/* Top Mood Awards — édition. Charte : maquette TopMoodApp (Claude Design). Base : vitrine.css. */
@font-face { font-family: 'Amithen'; src: url('fonts/Amithen.ttf') format('truetype'); font-display: swap; }

.tm { --script: 'Amithen', cursive; --tm-pad: clamp(16px, 3cqi, 48px); }

/* ---------- En-tête ---------- */
.tm-header { justify-content: space-between; }
.tm-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.tm-brand img { height: 40px; width: auto; }
.tm-brand .vt-meta { font-size: 11px; line-height: 1.4; max-width: 9em; }

/* ---------- Accueil de l'édition ---------- */
.tm-hero { max-width: 1320px; margin: 0 auto; padding: clamp(20px, 4cqi, 64px) var(--tm-pad); display: flex; flex-wrap: wrap; gap: clamp(28px, 4cqi, 72px); align-items: center; }
.tm-cover { flex: 0 1 560px; width: 100%; container-type: inline-size; position: relative; aspect-ratio: 1 / 1; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.tm-cover__corner { position: absolute; top: 4.5cqi; font-family: var(--mono); font-size: 3cqi; letter-spacing: 0.14em; color: var(--gold); }
.tm-cover__corner--left { left: 5cqi; }
.tm-cover__corner--right { right: 5cqi; }
.tm-cover__year { position: absolute; left: 3.5cqi; top: 10cqi; font-family: var(--display); font-weight: 800; font-size: 41cqi; line-height: 0.8; letter-spacing: -0.07em; }
.tm-cover__tubes { position: absolute; left: 5cqi; right: 5cqi; bottom: 9cqi; height: 17cqi; display: flex; align-items: flex-end; justify-content: space-between; }
.tm-tube { position: relative; width: 8cqi; height: 100%; background: #1C1C1F; border-radius: 999px; overflow: hidden; }
.tm-tube__liquid { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lvl); background: var(--c); }
.tm-tube__wave { position: absolute; left: 0; width: 100%; bottom: var(--lvl); height: 6px; margin-bottom: -1px; overflow: hidden; }
.tm-tube__wave svg, .tm-cat__wave svg { display: block; width: 3000px; height: 100%; animation: tm-wave24 var(--beat) linear infinite; }
.tm-tube__wave path, .tm-cat__wave path { fill: var(--c); }
.tm-cover__band { position: absolute; left: 0; right: 0; bottom: 0; height: 5cqi; overflow: hidden; border-top: 1px solid var(--line); }
.tm-cover__band svg { display: block; margin-top: 0.6cqi; }
.tm-cover__band path { fill: none; stroke: var(--gold); stroke-width: 1.2; }

.tm-hero__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.tm-title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5cqi, 76px); line-height: 0.98; letter-spacing: -0.03em; margin: 16px 0 0; text-wrap: balance; }
.tm-script { font-family: var(--script); font-size: clamp(30px, 3.4cqi, 48px); line-height: 1.1; color: var(--gold); margin: 14px 0 0; }
.tm-online { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; color: var(--text); }
.tm-online__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); flex: none; }
.tm-countdown { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.tm-countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 0; }
.tm-countdown__grid div { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); padding-left: 10px; }
.tm-countdown__grid dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6cqi, 52px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tm-countdown__grid dt { font-size: 11px; letter-spacing: 0.14em; }
.tm-dates { line-height: 1.7; }
.tm-cta { align-self: flex-start; min-height: 52px; padding: 0 26px; font-size: 16px; }

/* ---------- Catégories ---------- */
.tm-section { max-width: 1320px; margin: 0 auto; padding: clamp(32px, 4cqi, 64px) var(--tm-pad); scroll-margin-top: 72px; }
.tm-heading { position: relative; height: clamp(96px, 12cqi, 180px); }
.tm-heading__script { position: absolute; left: -0.04em; top: -0.18em; font-family: var(--script); font-size: clamp(80px, 12cqi, 190px); line-height: 1; color: #26262A; white-space: nowrap; pointer-events: none; }
.tm-h2 { position: absolute; left: 0; bottom: 14px; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.6cqi, 52px); letter-spacing: -0.02em; }
.tm-cats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 10px; }
.tm-cat { position: relative; display: block; height: 168px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; color: var(--text); --lv: 38%; }
.tm-cat:hover, .tm-cat:focus-visible { --lv: 58%; color: var(--text); }
.tm-cat__liquid { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lv); background: var(--c); overflow: hidden; transition: height 750ms cubic-bezier(0.22, 1, 0.36, 1); }
.tm-cat__script { position: absolute; right: -0.06em; bottom: -0.3em; font-family: var(--script); font-size: 118px; line-height: 1; white-space: nowrap; color: var(--deep); }
.tm-cat__wave { position: absolute; left: 0; width: 100%; bottom: var(--lv); height: 12px; margin-bottom: -1px; overflow: hidden; transition: bottom 750ms cubic-bezier(0.22, 1, 0.36, 1); }
.tm-cat__wave svg { animation-name: tm-wave64; }
.tm-cat__num { position: absolute; left: 16px; top: 14px; }
.tm-cat__bpm { position: absolute; right: 16px; top: 14px; font-size: 11px; }
.tm-cat__name { position: absolute; left: 16px; top: 38px; right: 16px; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }
.tm-empty { margin-top: 24px; color: var(--text-2); }

@keyframes tm-wave24 { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@keyframes tm-wave64 { from { transform: translateX(0); } to { transform: translateX(-64px); } }

/* ---------- Bande motif (partagée) ---------- */
.tm-band { height: 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.tm-band svg { display: block; }
.tm-band path { fill: none; stroke: var(--band-color); stroke-width: 1.5; }
.tm-portrait .tm-band { height: 28px; background: var(--bg); }
.tm-portrait .tm-band path { stroke-width: 1.2; }
.tm-swatch { display: inline-block; width: 10px; height: 10px; background: var(--c); flex: none; }
.tm-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; }
.tm-chip { display: flex; align-items: center; gap: 10px; color: var(--text); }
.tm-note { margin-top: 24px; color: var(--gold); }

/* ---------- Révélation ---------- */
.tm-reveal { position: relative; overflow: hidden; min-height: 70vh; }
.tm-reveal__script { position: absolute; left: -0.05em; top: 10%; font-family: var(--script); font-size: clamp(200px, 44cqi, 600px); line-height: 1; white-space: nowrap; color: color-mix(in oklch, var(--c) 22%, #0A0A0B); pointer-events: none; }
.tm-reveal__body { position: relative; max-width: 1320px; margin: 0 auto; padding: clamp(20px, 3cqi, 48px) var(--tm-pad) 48px; display: flex; flex-wrap: wrap; gap: clamp(24px, 4cqi, 72px); }
.tm-reveal__head { flex: 1 1 360px; min-width: 0; }
.tm-reveal__title { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 11cqi, 180px); line-height: 0.88; letter-spacing: -0.05em; margin: 20px 0 16px; color: var(--c); overflow-wrap: anywhere; hyphens: auto; }
.tm-reveal__list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.tm-reveal__list > h2 { margin: 0 0 8px; }
.tm-nominees { list-style: none; margin: 0; padding: 0; }
.tm-nominee { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); }
.tm-nominees li { animation: tm-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i) * 260ms + 300ms); }
.tm-nominee__name { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2cqi, 28px); line-height: 1.1; letter-spacing: -0.01em; }
.tm-nominee__work { display: block; font-size: 14px; color: var(--text-2); margin-top: 4px; }
.tm-nominee__action { color: var(--c); }
.tm-nominee:hover .tm-nominee__name { color: var(--c); }
@keyframes tm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Vote ---------- */
.tm-ballot { max-width: 1320px; margin: 0 auto; padding: clamp(12px, 2.4cqi, 40px) var(--tm-pad) 40px; }
.tm-ballot__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.tm-stepper { display: flex; align-items: center; gap: 6px; }
.tm-stepper .vt-meta { min-width: 44px; text-align: center; color: var(--text); }
.tm-icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; }
.tm-icon-btn polygon { fill: var(--text); }
.tm-icon-btn:hover { border-color: var(--text); }
.tm-ballot__grid { display: flex; flex-wrap: wrap; gap: clamp(16px, 3.4cqi, 56px); margin-top: 12px; align-items: stretch; }
.tm-portrait { flex: 1 1 340px; min-width: 0; max-width: 640px; margin: 0; }
.tm-portrait__frame { aspect-ratio: 1 / 1; background: #26262A; position: relative; overflow: hidden; }
.tm-portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.tm-portrait__script { position: absolute; right: -0.06em; bottom: -0.12em; font-family: var(--script); font-size: clamp(90px, 12cqi, 180px); line-height: 1; color: var(--c); white-space: nowrap; }
.tm-ballot__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.tm-ballot__name { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4cqi, 72px); line-height: 0.95; letter-spacing: -0.03em; margin: 10px 0 0; overflow-wrap: anywhere; }
.tm-ballot__work { font-size: 16px; color: var(--text-2); margin-top: 8px; }
.tm-listen { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px 8px 8px; color: var(--text); }
.tm-listen:hover { border-color: var(--text); color: var(--text); }
.tm-listen > span:nth-child(2) { flex: 1; font-weight: 500; }
.tm-listen__play { width: 44px; height: 44px; flex: none; background: var(--text); border-radius: 2px; display: flex; align-items: center; justify-content: center; }
.tm-listen__play polygon { fill: var(--bg); }
.tm-vote { display: flex; flex-direction: column; gap: 10px; }
.tm-vote__btn { width: 100%; height: 76px; background: var(--gold); color: var(--bg); border: 0; border-radius: 2px; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 0.02em; cursor: pointer; transition: background-color 160ms cubic-bezier(0.4, 0, 0.2, 1); }
.tm-vote__btn:hover { background: var(--gold-hover); }
.tm-vote__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.tm-vote__btn[disabled] { opacity: .7; cursor: progress; }
.tm-vote__status { min-height: 1.5em; font-size: 15px; text-align: center; }
.tm-vote__status[data-state="error"] { color: #FF8A8A; }
.tm-vote__rule { text-align: center; font-size: 11px; }
.tm-vote__closed { padding: 18px; border: 1px solid var(--line); border-radius: 2px; color: var(--text-2); text-align: center; }

/* ---------- Confirmation ---------- */
.tm-thanks { max-width: 1320px; margin: 0 auto; padding: clamp(20px, 3cqi, 56px) var(--tm-pad) 40px; display: flex; flex-wrap: wrap; gap: clamp(24px, 5cqi, 80px); align-items: center; justify-content: center; }
.tm-story { width: min(100%, 360px); container-type: inline-size; aspect-ratio: 9 / 16; position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line); flex: none; }
.tm-story > * { position: absolute; }
.tm-story__band { left: 0; right: 0; top: 0; height: 10cqi; }
.tm-story__logo { right: 6cqi; top: 15cqi; width: 16cqi; height: auto; }
.tm-story__edition { left: 6cqi; top: 16cqi; font-family: var(--mono); font-size: 3.6cqi; letter-spacing: 0.14em; color: var(--gold); }
.tm-story__lead { left: 6cqi; top: 24cqi; font-family: var(--display); font-weight: 700; font-size: 9cqi; line-height: 1; letter-spacing: -0.02em; }
.tm-story__photo { left: 6cqi; right: 6cqi; top: 48cqi; aspect-ratio: 1 / 1; background: #26262A; overflow: hidden; }
.tm-story__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.tm-story__script { left: 5cqi; right: 5cqi; top: 118cqi; font-family: var(--script); font-size: 20cqi; line-height: 1; color: var(--c); white-space: nowrap; text-align: right; }
.tm-story__rule { left: 6cqi; right: 6cqi; top: 136cqi; height: 2.4cqi; background: var(--c); }
.tm-story__name { left: 6cqi; right: 6cqi; top: 142cqi; font-family: var(--display); font-weight: 800; font-size: 11cqi; line-height: 0.92; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.tm-story__foot { left: 6cqi; right: 6cqi; bottom: 6cqi; font-family: var(--mono); font-size: 3.2cqi; letter-spacing: 0.12em; color: var(--text-2); }
.tm-thanks__side { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.tm-thanks__kicker { color: var(--c); }
.tm-thanks__title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4cqi, 48px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.tm-share { min-height: 52px; justify-content: center; font-size: 16px; }
.tm-share[hidden] { display: none; }

/* ---------- Palmarès ---------- */
.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tm-seq { position: relative; border-bottom: 1px solid var(--line); }
.tm-seq__bar { position: absolute; z-index: 3; left: var(--tm-pad); right: var(--tm-pad); top: 14px; display: flex; align-items: center; gap: 16px; }
.tm-seq__progress { flex: 1; list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tm-seq__progress li { flex: 1; height: 3px; background: var(--line); overflow: hidden; border-radius: 2px; }
.tm-seq__progress span { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.tm-seq__controls { display: flex; gap: 6px; }
.tm-seq__controls .tm-icon-btn { background: var(--bg); }
.tm-seq__controls svg rect, .tm-seq__controls svg polygon { fill: var(--text); }
.tm-ico-play { display: none; }
.tm-seq[data-paused] .tm-ico-play { display: block; }
.tm-seq[data-paused] .tm-ico-pause { display: none; }
.tm-slide { position: relative; min-height: clamp(560px, calc(100vh - 72px), 860px); overflow: hidden; }
.tm-slide[hidden] { display: none; }
.tm-slide__band { position: absolute; left: 0; right: 0; top: 70px; }
.tm-slide__script { position: absolute; left: -0.04em; top: 22%; font-family: var(--script); font-size: clamp(160px, 30cqi, 440px); line-height: 1; white-space: nowrap; color: color-mix(in oklch, var(--c) 20%, #0A0A0B); pointer-events: none; }
.tm-slide__body { position: absolute; left: var(--tm-pad); right: var(--tm-pad); bottom: clamp(28px, 4cqi, 64px); display: flex; flex-direction: row-reverse; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4cqi, 64px); }
.tm-slide__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1; }
.tm-slide__photo { flex: none; width: clamp(200px, 28cqi, 420px); aspect-ratio: 4 / 5; margin: 0; position: relative; background: #26262A; border-bottom: 6px solid var(--c); overflow: hidden; }
.tm-slide__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.tm-slide__category { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 1.8cqi, 24px); }
.tm-slide__category .tm-swatch { width: 12px; height: 12px; }
.tm-slide__name { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 9cqi, 150px); line-height: 0.9; letter-spacing: -0.04em; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.tm-slide__work { margin: 0; font-size: clamp(16px, 1.6cqi, 22px); }
.tm-slide__votes { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.tm-slide__votes span { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3cqi, 44px); letter-spacing: -0.02em; color: var(--c); margin-right: 6px; font-variant-numeric: tabular-nums; }

.tm-h2--static { position: static; margin: 0; }
.tm-intro { margin-top: 12px; color: var(--text-2); }
.tm-winners { list-style: none; margin: 32px 0 0; padding: 0; }
.tm-winner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 12px 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.tm-winner__category { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.tm-winner__category .tm-swatch { width: 8px; height: 8px; }
.tm-winner__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tm-winner__thumb { width: 48px; height: 48px; flex: none; background: #26262A; border-radius: 2px; overflow: hidden; box-shadow: inset 0 -3px 0 var(--c); }
.tm-winner__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.tm-winner__name { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; }
.tm-winner__work { display: block; font-size: 14px; color: var(--text-2); margin-top: 3px; }
.tm-winner__votes { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tm-winner__votes .vt-meta { font-size: 11px; }
.tm-editions { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.tm-edition { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); transition: border-color 160ms cubic-bezier(0.4, 0, 0.2, 1); }
.tm-edition:hover { border-color: var(--text); color: var(--text); }
.tm-edition.is-current { background: var(--surface); }
.tm-edition__year { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 0.9; letter-spacing: -0.04em; }
.tm-edition__stats { font-size: 14px; color: var(--text-2); }
@media (max-width: 760px) {
  .tm-winner { grid-template-columns: minmax(0, 1fr) auto; }
  .tm-winner__category { grid-column: 1 / -1; }
  .tm-slide { min-height: 640px; }
  .tm-slide__body { flex-direction: column; align-items: stretch; gap: 18px; }
  .tm-slide__photo { width: min(56%, 220px); }
}

/* ---------- Pied de page ---------- */
.tm-footer { max-width: 1320px; margin: 0 auto; padding: 28px var(--tm-pad) 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .tm-brand img { height: 34px; }
  .tm-cat { height: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-tube__wave svg, .tm-cat__wave svg { animation: none; }
  .tm-cat__liquid, .tm-cat__wave, .tm-vote__btn { transition: none; }
  .tm-nominees li { animation: none; }
  .tm-edition { transition: none; }
}
