/*
Theme Name: 18heure48
Theme URI: https://18heures48.fr
Author: 18heure48
Description: Thème sur mesure pour le label indépendant 18heure48.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: 18heure48
*/

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --surface: #f3f4f6;
}

/* ─── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Typography ────────────────────────────────────────── */
.font-display { font-family: 'Syne', sans-serif; }

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  line-height: 1.1;
}

/* ─── Helpers ───────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.uppercase    { text-transform: uppercase; }
.tracking     { letter-spacing: .1em; }
.tracking-wide{ letter-spacing: .15em; }
.text-muted   { color: var(--muted); }
.text-xs      { font-size: .75rem; }
.text-sm      { font-size: .875rem; }

/* ─── HEADER ────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

#site-header .site-logo img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  transition: opacity .2s;
}
#site-header .site-logo:hover img { opacity: .6; }

/* Desktop nav */
#primary-nav {
  display: flex;
  gap: 2rem;
}
#primary-nav a {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  transition: color .2s;
}
#primary-nav a:hover,
#primary-nav a.active { color: var(--black); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--black);
  transition: opacity .2s;
}

/* Mobile nav */
#mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
}
#mobile-nav.open { display: block; }
#mobile-nav a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  transition: color .2s;
}
#mobile-nav a:hover { color: var(--black); }

@media (max-width: 767px) {
  #primary-nav { display: none; }
  .burger { display: flex; }
}

/* ─── MAIN ──────────────────────────────────────────────── */
#main-content { padding-top: 4rem; }

/* ─── CAROUSEL ──────────────────────────────────────────── */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--black);
}
.banner-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.banner-carousel .slide.active { opacity: 1; }
.banner-carousel .slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.banner-carousel .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.6), transparent);
  pointer-events: none;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4);
  color: white;
  border: none; cursor: pointer;
  z-index: 10;
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(0,0,0,.7); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-dots {
  position: absolute;
  bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 10;
}
.carousel-dots button {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.4);
  transition: background .2s;
}
.carousel-dots button.active { background: white; }

/* ─── HOME LOGO ─────────────────────────────────────────── */
.home-logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding-bottom: .5rem;
}
.home-logo-wrap img {
  width: 10rem; height: 10rem;
  object-fit: contain;
}

/* ─── SECTIONS ──────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.section-link {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  transition: color .2s;
}
.section-link:hover { color: var(--black); }

.divider { border-top: 1px solid var(--border); }

/* ─── GRID ──────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2,1fr); } }

/* ─── RELEASE CARD ──────────────────────────────────────── */
.release-card { display: block; }
.release-card .cover {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface);
}
.release-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.release-card:hover .cover img { transform: scale(1.05); }
.release-card .cover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
}
.release-card:hover .cover-overlay { background: rgba(0,0,0,.4); }
.release-card .cover-badge {
  position: absolute;
  top: .75rem; left: .75rem;
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.7);
  padding: .25rem .5rem;
  backdrop-filter: blur(4px);
}
.release-card .card-body { margin-top: .75rem; }
.release-card .card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--black);
  transition: opacity .2s;
}
.release-card:hover .card-title { opacity: .7; }
.release-card .card-artist {
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: .25rem;
}
.release-card .card-date {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .25rem;
}

/* ─── ARTIST CARD ───────────────────────────────────────── */
.artist-card { display: block; }
.artist-card .photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}
.artist-card .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .5s, transform .5s;
}
.artist-card:hover .photo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.artist-card .photo-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent 60%);
}
.artist-card .photo-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  line-height: 1.2;
}
.artist-card .contrat-badge {
  position: absolute;
  top: .75rem; left: .75rem;
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.7);
  padding: .25rem .5rem;
  backdrop-filter: blur(4px);
}

/* ─── PAGE HEADER ───────────────────────────────────────── */
.page-hero {
  padding: 5rem 0 3.5rem;
}
.page-hero .eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: .75rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: 1;
}

/* ─── ARTIST DETAIL ─────────────────────────────────────── */
.artist-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}
.artist-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.artist-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.4) 50%, transparent 100%);
}
.artist-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.artist-hero-content .back-link {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
  transition: color .2s;
}
.artist-hero-content .back-link:hover { color: white; }
.artist-hero-content h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  color: white;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

.artist-detail-body {
  padding: 4rem 0;
}
.artist-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .artist-detail-grid {
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
  }
}
.detail-label {
  font-family: 'Syne', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.artist-bio {
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ─── STREAMING LINKS ───────────────────────────────────── */
.streaming-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.streaming-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  transition: color .2s, border-color .2s;
}
.streaming-link:hover { color: var(--black); border-color: var(--black); }
.streaming-link svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ─── RELEASE DETAIL ────────────────────────────────────── */
.release-detail {
  padding: 5rem 0;
}
.release-detail .back-link {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 3rem;
  transition: color .2s;
}
.release-detail .back-link:hover { color: var(--black); }
.release-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .release-detail-grid { grid-template-columns: 1fr 1fr; }
}
.release-cover {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface);
}
.release-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.release-info { display: flex; flex-direction: column; justify-content: center; }
.release-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.release-type-badge {
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .25rem .75rem;
}
.release-date-text {
  font-size: .75rem;
  color: var(--muted);
}
.release-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 1rem;
}
.release-artists {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}
.release-artists a {
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .2s;
}
.release-artists a:hover { color: var(--black); }
.release-description {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ─── À PROPOS ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-text p { color: #4b5563; line-height: 1.75; margin-bottom: 1.25rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--black);
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2,1fr); } }
.contact-type {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: .5rem;
}
.contact-email {
  font-size: .875rem;
  color: var(--black);
  transition: color .2s;
}
.contact-email:hover { color: var(--muted); }

/* ─── CTA LABEL ─────────────────────────────────────────── */
.cta-label {
  border-top: 1px solid var(--border);
}
.cta-label .inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .cta-label .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cta-label h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.cta-label p { color: var(--muted); max-width: 32rem; line-height: 1.6; }
.btn-outline {
  flex-shrink: 0;
  display: inline-block;
  padding: .75rem 2rem;
  border: 1px solid var(--black);
  color: var(--black);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--black); color: white; }

/* ─── FOOTER ────────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
}
.footer-inner { padding: 4rem 0; }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.footer-brand img {
  width: 3rem; height: 3rem;
  object-fit: contain;
  margin-bottom: .75rem;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--muted);
  max-width: 18rem;
  line-height: 1.6;
}
.footer-col-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a,
.footer-nav a {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover,
.footer-nav a:hover { color: var(--black); }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom p, .footer-bottom a {
  font-size: .75rem;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--black); }

/* ─── RELEASES CAROUSEL ─────────────────────────────────── */
.releases-carousel-wrap { position: relative; }

.releases-carousel-outer { overflow: hidden; }

.releases-carousel {
  display: flex;
  gap: 2rem;
  transition: transform .4s ease;
  will-change: transform;
}

.releases-slide {
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 0;
}

.releases-nav {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.releases-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: none;
  color: var(--black);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.releases-btn:hover { background: var(--black); color: white; }
.releases-btn:disabled { opacity: .25; cursor: default; pointer-events: none; }

@media (max-width: 767px) {
  .releases-slide { flex: 0 0 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .releases-slide { flex: 0 0 calc((100% - 2rem) / 2); }
}

/* ─── CATALOGUE FILTER ──────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .4rem 1rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active { border-color: var(--black); color: var(--black); }

/* ─── 404 ───────────────────────────────────────────────── */
.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1.5rem;
}
.error-404 h1 { font-size: 6rem; color: var(--muted); }
.error-404 p  { color: var(--muted); }
