/* ========================================
   NAT CORBEIL - CSS STYLESHEET
   Design system from visual spec + report PDF
   Mobile-first, responsive, no Bootstrap
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Color palette */
  --noir: #000;
  --magenta: #E43491;
  --mauve: #C77BA6;
  --ink: #222630;
  --muted: #6B7280;
  --gray: #D2D2DF;
  --bg: #F7F7FB;
  --body: #374151;
  --body-soft: #4B5563;
  --card-border: #ECECF3;
  --rule: #EEF0F4;

  /* Layout & spacing */
  --radius: 10px;
  --gutter: 1rem;
  --gap-card: 11px;
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-extra-bold: 800;
  
  /* Sidebar */
  --sidebar-width: 0.13in;
  
  /* Space & sizes */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Vertical pink gradient accent line (left edge, like the PDF) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--magenta) 0%, var(--mauve) 100%);
  z-index: 1000;
  pointer-events: none;
}

/* ========================================
   LAYOUT: Simple, no sidebar
   ======================================== */

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: var(--space-lg) var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  transition: padding 0.25s ease;
}

/* Shrink the header once the page is scrolled (kept legible) */
header.scrolled {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.logo {
  height: 165px;
  width: auto;
  display: flex;
  align-items: center;
  justify-self: start;
  transition: height 0.25s ease;
}

.logo.logo-large {
  height: 190px;
}

header.scrolled .logo,
header.scrolled .logo.logo-large {
  height: 115px;
}

.logo img {
  height: 100%;
  width: auto;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  justify-self: center;
}

/* Burger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 0;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}


nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
}

nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}

nav a.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}

/* Mobile nav */
@media (max-width: 768px) {
  header {
    padding: var(--space-md) var(--space-xl);
    grid-template-columns: 1fr auto;
    row-gap: 0;
  }

  .logo {
    height: 96px;
    grid-column: 1;
    grid-row: 1;
  }

  header.scrolled .logo,
  header.scrolled .logo.logo-large {
    height: 66px;
  }

  .nav-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  /* Collapsed by default, expands below the bar when open */
  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 16px;
    width: 100%;
    margin-top: var(--space-md);
  }

  header.nav-open nav {
    display: flex;
  }

  nav a {
    padding: 0.6rem 0;
  }


  .saison-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    margin-top: var(--space-md);
  }

  .saison-nav a {
    padding: 0;
  }

  /* Burger -> X animation */
  header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
  font-size: 36px;
  font-weight: var(--font-weight-extra-bold);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-lg);
  color: var(--ink);
  text-transform: uppercase;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 4px solid var(--magenta);
  padding-left: 12px;
  margin-bottom: var(--space-md);
  color: var(--ink);
  margin-top: var(--space-xl);
}

h3 {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  color: var(--ink);
  text-transform: uppercase;
}

p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: var(--space-md);
}

small, .small {
  font-size: 14px;
  color: var(--muted);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Contact details (email / phone) */
.contact-info {
  line-height: 1.7;
  text-transform: uppercase;
}

.contact-info a {
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.contact-info a[href^="mailto"] {
  text-transform: none;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  margin-bottom: var(--space-2xl);
}

.hero h1 {
  font-size: 34px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-md);
}

.hero-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 280px;
  max-width: 100%;
  margin: 0 0 var(--space-xl);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
}

section {
  margin-bottom: var(--space-2xl);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.content {
  margin-bottom: var(--space-xl);
}

.content p {
  margin-bottom: var(--space-md);
}

.content ul,
.content ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.content li {
  margin-bottom: var(--space-sm);
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: var(--space-2xl);
}

.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--card-border);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.project-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.project-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7fb;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-name {
  padding: 1rem;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* ========================================
   BLOG
   ======================================== */

.blog-list {
  margin-top: var(--space-2xl);
}

.blog-post {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.blog-post-image {
  display: block;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-date {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.blog-post-title {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.blog-post-more {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 16px;
  text-transform: uppercase;
}

/* Single article */
.article {
  max-width: 760px;
}

.article-back {
  margin-bottom: var(--space-lg);
}

.article-back a {
  color: var(--ink);
  font-size: 16px;
  text-transform: uppercase;
}

.article-date {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.article-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
}

.article-body p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.article-body ul {
  margin: 0 0 var(--space-md) var(--space-lg);
}

.article-body li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: var(--body);
}

.article-body h2 {
  font-size: 21px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border: 0;
  padding: 0;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .blog-post {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ========================================
   TEAM GRID
   ======================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap-card);
  margin-bottom: var(--space-xl);
}

.team-member {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 14px 18px;
  text-align: center;
}

.content li.winner {
  color: var(--magenta);
  font-weight: var(--font-weight-bold);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #fff;
  display: block;
  margin-bottom: var(--space-md);
}

.team-name {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--ink);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.team-role {
  font-size: 15px;
  color: var(--muted);
}

/* ========================================
   POSTE D'ÉCOUTE (privé)
   ======================================== */

.saisons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-card);
}

.saison-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: 22px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}

.saison-card:hover {
  border-color: var(--magenta);
  opacity: 1;
}

.saison-titre {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.saison-count {
  font-size: 14px;
  color: var(--muted);
}

/* Season switcher */
.saison-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
}

.saison-nav a {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}

.saison-nav a:hover {
  color: var(--ink);
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.saison-nav a.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Album cards */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.album-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}

.album-head {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.album-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.album-cover {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--bg);
}

.album-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.album-artiste {
  font-size: 15px;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.04em;
  color: var(--noir);
}

.album-title {
  font-size: 21px;
  font-weight: var(--font-weight-bold);
  color: var(--ink);
  margin: 0;
  text-transform: none;
}

.album-date {
  font-size: 14px;
  color: var(--muted);
}

.album-drive {
  align-self: flex-start;
  margin-top: var(--space-sm);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

.album-drive::before {
  content: "↓ ";
}

/* "Lire l'album" : joue toutes les pistes de la carte à la suite. */
.album-play {
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--noir);
  background: #f1f3f4;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.album-play:hover {
  opacity: 0.6;
}

.album-play svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.album-play .icon-pause {
  display: none;
}

.album-play.playing .icon-play {
  display: none;
}

.album-play.playing .icon-pause {
  display: inline-block;
}

.album-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.album-tracks li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: 5px 0 14px;
}

.track-title {
  font-size: 15px;
  color: var(--body);
  flex: 0 1 auto;
  min-width: 0;
}

.track-audio {
  width: 300px;
  max-width: 100%;
  height: 38px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .albums {
    grid-template-columns: 1fr;
  }

  .album-head {
    gap: var(--space-md);
  }

  .album-cover {
    width: 96px;
    height: 96px;
  }

  .track-audio {
    width: 100%;
  }
}

/* ========================================
   PISTAGE RADIO — NOUVEAUTÉS (privé)
   ======================================== */

/* The mp3 player sits on its own line inside a release card. */
.album-card > .track-audio {
  width: 100%;
  margin: var(--space-sm) 0 var(--space-md);
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: 4px;
}

.release-tag {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2px 8px;
}

.explicit {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  vertical-align: middle;
  color: #fff;
  background: var(--muted);
  border-radius: 3px;
  padding: 2px 4px;
}

/* Credits as a compact two-column definition list. */
.release-credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px var(--space-md);
  margin: 0 0 var(--space-md);
  font-size: 14px;
}

.release-credits dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12px;
  padding-top: 2px;
}

.release-credits dd {
  margin: 0;
  color: var(--body);
}

.release-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-md);
}

.dl-btn {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

.dl-btn::before {
  content: "↓ ";
}

@media (max-width: 600px) {
  .release-credits {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .release-credits dt {
    padding-top: var(--space-xs);
  }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: #fff;
  border-top: 1px solid var(--rule);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer p {
  font-size: 14px;
  margin-bottom: var(--space-sm);
}


/* ========================================
   UTILITIES
   ======================================== */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

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

.text-magenta {
  color: var(--magenta);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  main {
    padding: var(--space-lg);
  }

  h1,
  .hero h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 18px;
  }

  p, .lead {
    font-size: 18px;
  }

  .article-body p,
  .article-body li {
    font-size: 18px;
  }

  .blog-post-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  main {
    padding: var(--space-lg);
  }

  header {
    padding: var(--space-md) var(--space-lg);
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    font-size: 15px;
  }
}

/* ── Pistage radio ──────────────────────────────── */


.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.release-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
}

.release-head {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.release-cover {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--bg);
}

.release-titre {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: var(--ink);
  text-transform: none;
}

.release-audio {
  width: 300px;
  max-width: 100%;
  height: 38px;
  flex-shrink: 0;
}

.release-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}

.release-link {
  display: inline-block;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

.release-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  font-size: 14px;
  color: var(--body);
}

.release-meta dt {
  font-weight: var(--font-weight-medium);
  color: var(--ink);
  white-space: nowrap;
}

.release-meta dd a {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}

.release-meta dd a + a {
  margin-left: var(--space-sm);
}


@media (max-width: 480px) {
  .releases-grid {
    grid-template-columns: 1fr;
  }

  .release-cover {
    width: 96px;
    height: 96px;
  }
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--noir);
  border: 2.5px solid var(--noir);
  border-radius: var(--radius);
  padding: 0.45rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 100;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
/* Survol seulement sur appareils à pointeur (évite le hover collant sur tactile) */
@media (hover: hover) {
  #back-to-top.visible:hover {
    opacity: 0.7;
  }
}

/* Print styles */
@media print {
  .sidebar,
  nav,
  footer {
    display: none;
  }
  
  body {
    background: #fff;
  }
}
