/* TORVA — pierre noire, os, fer et braise */
:root {
  --night: #0d0d0c;   /* fond : pierre noire, sans bleu */
  --smoke: #161513;   /* surfaces : suie */
  --bone: #e6ded2;    /* texte */
  --iron: #7e8a8f;    /* texte secondaire, fer froid */
  --frost: #b9b2a6;   /* liens, détails : fer patiné */
  --ember: #d9762f;   /* braise : actions, extraits qui jouent */
  --glow: #f2a25c;
  --line: rgba(230, 222, 210, 0.13);
  --display: "Cormorant Unicase", "Cormorant Garamond", Georgia, serif;
  --body: "Spectral", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --rune: "Noto Sans Runic", "Segoe UI Historic", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 300 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  cursor: url("../assets/cursor/ring.svg") 12 12, auto;
}
a, button, .btn { cursor: url("../assets/cursor/ring-hover.svg") 16 16, pointer; }
/* grain de pierre, très léger */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: var(--frost); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: var(--night); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1; margin: 0; letter-spacing: 0.04em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.eyebrow {
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frost);
  margin: 0 0 18px;
}
.section-note { color: var(--iron); margin: 10px 0 0; font-style: italic; }
.fine { font-size: 0.85rem; color: var(--iron); }

/* En-tête */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
}
.mark { font: 500 1.25rem/1 var(--display); letter-spacing: 0.32em; color: var(--bone); text-decoration: none; }
.top nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.top nav a { color: var(--bone); text-decoration: none; font: 400 0.78rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; color: var(--glow); }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 14px 24px; text-decoration: none;
  font: 400 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent; transition: background 0.25s, color 0.25s, border-color 0.25s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); /* coins taillés comme une lame */
}
.btn-fire { background: var(--ember); color: var(--night); }
.btn-fire:hover { background: var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--frost); }

/* Héros : son visage en plein écran */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; top: 0; right: 0; width: 68%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--night) 32%, rgba(13,13,12,0.6) 44%, rgba(13,13,12,0) 62%),
    linear-gradient(180deg, rgba(13,13,12,0.55) 0%, rgba(13,13,12,0) 22%),
    linear-gradient(0deg, var(--night) 0%, rgba(13,13,12,0) 30%);
}
.hero-text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(48px, 12vh, 140px); max-width: 640px; }
.hero h1 {
  font-size: clamp(4.5rem, 11vw, 10rem);
  letter-spacing: 0.12em;
  margin-left: -0.06em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34ch; margin: 14px 0 0; }

/* Musique */
.music { padding: clamp(72px, 12vh, 140px) var(--gutter); }
.release { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.release + .release { margin-top: 120px; }
.cover { position: sticky; top: 40px; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.release-title { font-size: clamp(3rem, 7vw, 5.4rem); }
.release-meaning { font-style: italic; color: var(--iron); margin: 10px 0 0; }

/* Signature : chaque extrait est une barre de fer qui chauffe pendant l'écoute */
.tracks { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 44px minmax(0, 11rem) minmax(0, 1fr) 4ch;
  align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.len { font: 400 0.75rem/1 var(--mono); color: var(--iron); }
.len { text-align: right; }
.play {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--bone); cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: inline; }
.play:hover, .playing .play { border-color: var(--ember); color: var(--glow); }
.names { display: flex; flex-direction: column; min-width: 0; }
.names .title { font: 500 1.35rem/1.1 var(--display); letter-spacing: 0.05em; }
.names .meaning { font-size: 0.85rem; font-style: italic; color: var(--iron); }
.wave { height: 34px; display: flex; align-items: center; gap: 2px; }
.wave i {
  flex: 1; min-width: 1px; border-radius: 1px; background: #3d3b37;
  transition: background 0.35s, box-shadow 0.35s;
}
.track:hover .wave i { background: #504d48; }
.wave i.hot { background: linear-gradient(180deg, var(--glow), var(--ember)); box-shadow: 0 0 6px rgba(242,162,92,0.55); }

/* Vidéos */
.videos { padding: clamp(64px, 10vh, 120px) var(--gutter); background: var(--smoke); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 40px; }
.video { position: relative; display: block; overflow: hidden; color: var(--bone); text-decoration: none; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease, filter 0.6s; filter: saturate(0.85); }
.video:hover img { transform: scale(1.04); filter: saturate(1); }
.video-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px;
  background: linear-gradient(0deg, rgba(13,13,12,0.9), rgba(13,13,12,0));
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
}
.video-cap .title { font: 500 1.4rem/1 var(--display); letter-spacing: 0.05em; }
.video-cap .meaning { font-size: 0.85rem; font-style: italic; color: var(--frost); }

/* Saga */
.saga { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.saga img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; object-position: 50% 35%; }
.saga-text { padding: clamp(48px, 8vw, 110px) var(--gutter); max-width: 640px; }
.saga-text h2 { margin-bottom: 26px; }

/* Shop */
.shop-teaser { padding: clamp(64px, 10vh, 110px) var(--gutter); text-align: center; border-top: 1px solid var(--line); }
.shop-teaser .btn { margin-top: 18px; }
.page-shop .top { position: static; }
.shop { min-height: 70vh; padding: 12vh var(--gutter); max-width: 760px; }
.shop h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 18px; }

/* Pied de page */
.foot { padding: 48px var(--gutter); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; }
.socials a { text-decoration: none; font: 400 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.socials a:hover { color: var(--glow); }

/* Mobile */
@media (max-width: 860px) {
  .hero-img { width: 100%; object-position: 50% 20%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(13,13,12,0.55) 0%, rgba(13,13,12,0) 22%),
      linear-gradient(0deg, var(--night) 0%, rgba(13,13,12,0.8) 32%, rgba(13,13,12,0) 60%);
  }
  .release, .saga { grid-template-columns: 1fr; }
  .cover { position: static; max-width: 420px; }
  .saga img { max-height: 70vh; }
}
@media (max-width: 560px) {
  .top nav { gap: 12px; }
  .top nav a { font-size: 0.68rem; letter-spacing: 0.1em; }
  .mark { letter-spacing: 0.22em; }
  .track { grid-template-columns: 44px minmax(0, 1fr) 4ch; gap: 12px; }
  .len { grid-row: 1; grid-column: 3; }
  .wave { grid-row: 2; grid-column: 1 / -1; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Logos des réseaux */
.socials { display: flex; gap: 18px; align-items: center; }
.social { color: var(--bone); opacity: 0.85; display: grid; place-items: center; padding: 4px; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { opacity: 1; color: var(--glow); }
.top { gap: 24px; }
.top nav { margin-left: auto; }

/* Séparateurs runiques entre les rubriques : un trait gravé, les runes au centre */
.rune-rule {
  display: flex; align-items: center; gap: 22px; padding: 26px var(--gutter);
  color: var(--iron); font: 400 1.05rem/1 var(--rune); letter-spacing: 0.5em;
}
.rune-rule::before, .rune-rule::after {
  content: ""; flex: 1; height: 1px; transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--frost));
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.rune-rule::before { transform-origin: right; }
.rune-rule::after { transform-origin: left; background: linear-gradient(270deg, transparent, var(--line) 30%, var(--frost)); }
.rune-rule span { opacity: 0; transition: opacity 1.2s 0.5s, color 1.2s 0.5s; white-space: nowrap; }
.rune-rule.carved::before, .rune-rule.carved::after { transform: scaleX(1); }
.rune-rule.carved span { opacity: 1; color: var(--frost); }

@media (max-width: 720px) {
  .socials-top { display: none; }
  .top nav { margin-left: 0; }
  .rune-rule { letter-spacing: 0.3em; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rune-rule::before, .rune-rule::after { transform: none; }
  .rune-rule span { opacity: 1; }
}

.contact { font: 400 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-decoration: none; }
.contact:hover { color: var(--glow); }

/* Paroles : norvégien à gauche, anglais à droite */
.lyrics-toggle {
  align-self: flex-start; margin-top: 6px; padding: 0; background: none; border: 0;
  color: var(--ember); font: 400 0.7rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--ember);
  text-shadow: 0 0 10px rgba(217, 118, 47, 0.45);
}
.lyrics-toggle:hover, .lyrics-toggle[aria-expanded="true"] { color: var(--glow); border-color: var(--glow); }
.lyrics { grid-column: 1 / -1; padding: 18px 0 8px 60px; }
.lyrics-head, .lyrics-line { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.lyrics-head { font: 400 0.68rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--iron); margin-bottom: 10px; }
.lyrics-part { margin-top: 16px; }
.lyrics-part h4 { margin: 0 0 6px; font: 400 0.68rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); }
.lyrics-line { margin: 0; line-height: 1.55; }
.lyrics-line .no { color: var(--bone); }
.lyrics-line .en { color: var(--iron); font-style: italic; }
@media (max-width: 560px) {
  .lyrics { padding-left: 0; grid-row: 3; }
  .lyrics-head { display: none; }
  .lyrics-line { grid-template-columns: 1fr; margin-bottom: 6px; }
}
.lyrics, .wave { min-width: 0; }
.wave { overflow: hidden; }
.lyrics-line span { overflow-wrap: anywhere; }

/* Vues et j'aime sous chaque clip */
.video-cap { flex-direction: column; align-items: flex-start; }
.video-cap .video-stats { display: flex; gap: 16px; margin-top: 6px; font: 400 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--iron); }
.video-stats span { display: inline-flex; align-items: center; gap: 6px; }
.video-stats svg { width: 14px; height: 14px; fill: var(--ember); }
.video-stats b { color: var(--glow); font-weight: 400; font-size: 0.82rem; }

/* Encadré « See more » : même taille qu'un clip, bordure gravée, braise au survol */
.video-more {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--night);
  transition: border-color 0.3s, background 0.3s;
}
.video-more .more-title { font: 500 1.6rem/1 var(--display); letter-spacing: 0.08em; color: var(--bone); }
.video-more .more-sub { font: 400 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.video-more:hover { border-color: var(--ember); background: #1a120c; }

/* Clips : grille pleine largeur, grandes cartes */
.video-grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 48px; }
.videos { padding-top: clamp(80px, 12vh, 150px); padding-bottom: clamp(80px, 12vh, 150px); }
.video-cap { padding: 60px 24px 20px; }
.video-cap .title { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.video-cap .meaning { font-size: 0.95rem; }
.video-cap .video-stats { font-size: 0.78rem; }
.video-stats b { font-size: 0.95rem; }
.video-more .more-title { font-size: clamp(2rem, 3vw, 2.8rem); }
.video-more .more-sub { font-size: 0.78rem; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* « See more » : bandeau pleine largeur sous les grandes vignettes */
.video-more { grid-column: 1 / -1; aspect-ratio: auto; flex-direction: row; gap: 20px; padding: 26px; }
.video-cap .title { font-size: clamp(1.7rem, 2.6vw, 2.6rem); }


/* Logo TORVA (T hache, O bouclier, V épées, A lance) à la place du titre */
.hero h1.wordmark { margin: 6px 0 0; line-height: 0; text-shadow: none; }
.wordmark img { width: min(640px, 82vw); height: auto; filter: drop-shadow(0 4px 30px rgba(0,0,0,.5)); animation: apparaitre 1.6s ease-out both; }
.hero-text { max-width: 720px; }
@keyframes apparaitre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wordmark img { animation: none; } }

/* Colonne des 5 runes de TORVA, centrée sur le logo, apparition en fondu une à une */
.rune-col { width: min(640px, 82vw); margin-bottom: clamp(44px, 9vh, 100px); }
.runes { display: block; margin: 0 auto; height: min(32vh, 300px); width: auto; overflow: visible;
  fill: none; stroke: var(--ember); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(217, 118, 47, 0.4)); }
.runes g { opacity: 0; animation: rune-in 1.1s ease-out forwards; }
.runes g:nth-child(2) { animation-delay: .35s; } .runes g:nth-child(3) { animation-delay: .7s; }
.runes g:nth-child(4) { animation-delay: 1.05s; } .runes g:nth-child(5) { animation-delay: 1.4s; }
@keyframes rune-in { to { opacity: .95; } }
@media (max-width: 860px), (max-height: 640px) { .rune-col { display: none; } }
@media (prefers-reduced-motion: reduce) { .runes g { animation: none; opacity: .95; } }
/* même largeur pour le logo et la colonne de runes, pour qu'elles soient centrées sur TORVA */
.wordmark img, .rune-col { width: min(640px, 100%); }

/* Héros : runes puis TORVA sans rien entre les deux ; la mention de sortie passe sous les boutons */
.hero-text { padding-bottom: clamp(70px, 16vh, 190px); }
.hero-text .eyebrow { margin: 26px 0 0; }

/* Mobile uniquement : textes du héros plus petits et plus bas, pour dégager le visage */
@media (max-width: 860px) {
  .hero-img { object-position: 50% 8%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(13,13,12,0.5) 0%, rgba(13,13,12,0) 18%),
      linear-gradient(0deg, var(--night) 0%, rgba(13,13,12,0.85) 22%, rgba(13,13,12,0) 42%);
  }
  .hero-text { padding-bottom: 26px; }
  .wordmark img, .rune-col { width: min(270px, 68vw); }
  .hero .lede { font-size: 0.95rem; margin-top: 8px; max-width: 30ch; }
  .hero .actions { margin-top: 16px; gap: 8px; }
  .hero .btn { padding: 11px 15px; font-size: 0.66rem; }
  .hero-text .eyebrow { margin-top: 14px; font-size: 0.6rem; }
}

/* Mobile : photo en haut, textes dessous (le visage n'est plus recouvert) */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-img { position: relative; display: block; width: 100%; height: 64svh; object-position: 50% 30%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(13,13,12,0.5) 0%, rgba(13,13,12,0) 12%),
      linear-gradient(0deg, var(--night) 0%, var(--night) 34%, rgba(13,13,12,0) 52%);
  }
  .hero-text { margin-top: -54px; padding-bottom: 34px; }
}
