/* ===================================
   MAGNETIC RECORDS 
   =================================== */

/* ===================================
   FONTS
   =================================== */

/* --- Vela Sans (texte) --- */
@font-face {
  font-family: 'Vela Sans';
  src: url('./font/VelaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vela Sans';
  src: url('./font/VelaSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- Stratos (titres & impact) --- */
/* @font-face {
  font-family: 'Stratos';
  src: url('./font/Stratos-ExtraBold2.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
} */

/* ===================================
   THEME VARIABLES
   =================================== */
:root {
  --accent: #111111;                  /* Ink Blue - Couleur principale */
  --accent-light: #2A4D68;            /* Variante hover */
  --accent-dark: #0F2332;             /* Variante foncée */
  --accent-alpha-04: rgba(28,58,82,0.04);
  --accent-alpha-08: rgba(28,58,82,0.08);
  --accent-alpha-12: rgba(28,58,82,0.12);
  --accent-alpha-20: rgba(28,58,82,0.20);
  
  --text: #111;
  --text-muted: rgba(0,0,0,0.6);
 --text-light: rgba(0,0,0,0.75); 
  
  
  --bg: #F7F3E7;                      /* Beige papier */
  --bg-hover: rgba(0,0,0,0.03);
  --bg-active: rgba(0,0,0,0.05);
  
  --border: rgba(0,0,0,0.1);
  --border-dark: rgba(0,0,0,0.2);
  
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;

  
}

/* BASE - Ajout prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===================================
   RESET & BASE
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 1px solid green; */
}

html {
  font-size: 1rem;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vela Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

a:hover,
a:focus {
  opacity: 1;
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.release-row:focus-visible,
button:focus-visible {
  outline: none;
}

/* ===================================
   TYPOGRAPHIE
   =================================== */
h1, h2, h3, h4,
.nav-links, 
.releases-table thead, 
.logo {
  font-family: 'Vela Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.3;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

p {
  
  line-height: 1.8;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* ===================================
   NAVIGATION
   =================================== */
.main-nav {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
   background-color: var(--bg);
  padding: 3px 40px; 
  z-index: 1000;
}

.home-page .main-nav{background-color: transparent;}
.home-page .nav-links a::after {
  background: #000000;
}
.home-page .nav-links a.active::after {
  background: #ffffff;
}
/* Logo */
.logo a {
  display: inline-block;
}
/* .home-page .logo-img {filter: invert(1);} */
.home-page .nav-links li a {color: #000000;}
.home-page .nav-links a:hover{color: #000000;}
.logo-img {
  width: 140px;
  height: auto;
  display: block;
  transition: opacity var(--transition);
}

.logo-img:hover {
  opacity: 0.8;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
}

.nav-links li {margin: 0;}

.nav-links a {
  font-size: 1rem;
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

/* Underline animé */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; 
  bottom: 0;
  width: 100%; 
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

/* ===================================
   HOME PAGE (video background)
   =================================== */
.home-page {
  height: 100vh;
  position: relative;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.video-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.video-overlay {
 position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: -1;
}

/* ===================================
   INFO PAGE
   =================================== */
.info-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 100px; 
}

.info-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-md);
  padding-top: 0 !important;
}

.info-content {
  max-width: 680px;
  width: 100%;
  padding: inherit !important;
}

.info-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
}

.info-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: var(--spacing-sm);
}

.info-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--spacing-md);
}

/* ===================================
   SUBSCRIBE PAGE
   =================================== */
.subscribe-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
}

.subscribe-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.subscribe-content {
  max-width: 580px;
  width: 100%;
}

.subscribe-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.subscribe-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

/* Subscribe Form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 100%;
}

.subscribe-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-dark);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition);
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.subscribe-form button {
  width: 100%;
  padding: 16px 32px;
  background: var(--bg);
  color: var(--text-light);
  border: none;
  font-family: 'Vela Sans', sans-serif;
  
  font-size: 1rem;
  /* text-transform: uppercase; */
  cursor: pointer;
  transition: all var(--transition);
}

.subscribe-form button:hover {
  /* background: var(--accent); */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-alpha-20);
}

.subscribe-form button:active {
  transform: translateY(0);
}

/* ===================================
   RELEASES PAGE
   =================================== */
.releases-page {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.releases-container {
  padding: var(--spacing-lg) !important;
  padding-top: 0 !important;
  flex: 1;
}

/* ✅ Search bar  */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;

  display: none;
}
.releases-table th:nth-child(1), /* REF # */
.releases-table td:nth-child(1) {
  width: 10%;   /* Compact pour cat# court */
  min-width: 80px;
}
.releases-table th:nth-child(2), /* Artist */
.releases-table td:nth-child(2) {
  width: 22%;   /* Moyenne, gère noms longs */
  min-width: 120px;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis; /* ... si trop long */
}
/* Réduire largeur colonne Keywords  */
.releases-table th:nth-child(5),
.releases-table td:nth-child(5) {
  width: 12%;           
  min-width: 90px;
  vertical-align: top;  
  padding-right: 40px !important; /* Laisse de la place pour le chevron */
}
.releases-table th:nth-child(3), /* Title */
.releases-table td:nth-child(3) {
  width: 38%;  
}
.releases-table th:nth-child(4), /* Date */
.releases-table td:nth-child(4) {
  width: 12%;  
  min-width: 90px;
  text-align: center; 
}
.releases-table th:nth-child(5), /* Keywords */
.releases-table td:nth-child(5) {
  width: 18%;  
  min-width: 100px;
  text-align: right;
}

.release-artist{
  width: 2px;
}

/* Css Searchbar - not used */
/* .search-input {
  width: 100%;
  padding: 16px 48px 16px 20px;
  border: 2px solid var(--border);
  background: white;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-alpha-12);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}


.search-container::after {
  content: '🔍';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
} */

/* Table */
.releases-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
}

.releases-table thead {
 position: sticky;
  top: 92px; 
  background: var(--bg);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  width: 100%;                  
  left: 0;   
  border-bottom: 1px solid var(--border);
}

.releases-table th {
  text-align: left;
  padding: 18px var(--spacing-md) !important; 
  font-size: 1rem;
    font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.release-row {
  cursor: pointer;
  border-bottom: 1px solid var(--border);
   transition: background var(--transition), transform var(--transition-fast);
  position: relative;
}

.release-row::before {
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 3px solid transparent;
  background: var(--accent);
  opacity: 0.6;
  transform: scaleY(0);
  transition: transform var(--transition);
}

.release-row:hover::before {
  transform: scaleY(1);
}

.release-row:hover {
  background-color: var(--bg-hover);
}

.release-row.active {
  background-color: var(--accent-alpha-12);
}

.release-row.active::before {
  transform: scaleY(1);
}

.release-row td {
 padding: 18px var(--spacing-md);
  font-size: 1rem;
  font-weight: 400;
  position: relative;
}

.release-row td:last-child {
  padding-right: 48px;
}

/* .release-row td:last-child::after {
  content: "▼";
  position: absolute;
  right: 24px;              
  font-size: 12px;
  opacity: 0.7;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
} */

.release-row:hover td:last-child::after {
  color: var(--accent);
}

.release-row.active td:last-child::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent);
}

/* Hidden state pour recherche */
.release-row.hidden {
  display: none;
}

.release-detail {
  display: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
/* transition: max-height 0.4s ease; */
transition: opacity 0.3s ease, visibility 0.3s;
  max-height: 0;
  overflow: hidden;
}

.release-detail.open td {
  border-bottom: 1px solid var(--border-dark);
}

.release-detail.open {
  display: table-row;
  animation: fadeIn 0.4s ease;
  max-height: 2000px;
  visibility: visible;
  opacity: 1;
  height: auto;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) var(--spacing-md);
}

.detail-content img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.detail-content::after {
  content: '↑ Fermer';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: none; 
}

.detail-text {
  font-size: 1rem;
  font-weight: 400; 
  line-height: 1.8;
}

.release-description {
  margin-bottom: var(--spacing-md);
  font-size: 1rem; 
  line-height: 1.9;
  max-width: 70ch;
}

/* Tags */
.release-tags {
  flex-wrap: wrap !important;
  gap: 6px 10px;
  justify-content: flex-end; 
}

.tag {
  display: inline-block;
  font-family: 'Vela Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.05em;
  padding-right: 0 !important;
  white-space: nowrap;
  font-size: 12px !important;
  color: var(--text-light);
  background: transparent;          
  opacity: 0.8;
  padding: 3px 9px;
  border-radius: 3px;
  padding: 3px 8px;
 
  transition: all var(--transition-fast);
  cursor: default;
}

.tag:hover,
.tag:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
  background: var(--accent-alpha-04);
}

.tag.active,
.tag.is-active {
  color: var(--accent);
  background: var(--accent-alpha-12);
  border-color: var(--accent);
}

.smart-link {
/* display: inline-flex;
  align-items: baseline;
  justify-content: center; */
  gap: 12px;
  /* padding: 6px 15px; */
 /* background: #111;   */
  color: var(--text-light); 
  font-family: 'Vela Sans', sans-serif;

  font-size: 1rem;
  
}

.smart-link:hover {
  /* background: var(--accent); */
  transform: translateY(-3px) scale(1.02);
  /* box-shadow: 0 12px 28px rgba(0,0,0,0.2); */
}

.prev-btn, .next-btn {
  display: none;
}
/* No Results */
/* .no-results {
  padding: var(--spacing-xl);
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
} */
.main-nav {
  /* Ajouter */
  transition: box-shadow var(--transition);
}

/* Ajouter cette classe via JS au scroll */
.main-nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ===================================
   FOOTER
   =================================== */
.main-footer {
  background: var(--bg-hover);
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-section {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-left,
.footer-right {
  flex: 1;
}

.footer-left {justify-content: flex-start;}
.footer-center {justify-content: center;}
.footer-right {justify-content: flex-end;}

.footer-section p,
.footer-section a {
  font-family: 'Vela Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer-section a:hover,
.footer-section a:focus-visible {
  color: var(--accent);
}
.contact-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-label {
    font-size: 1rem;
    letter-spacing: 0.15em;
    /* text-transform: uppercase; */
    opacity: 0.5;
}

.contact-sep {
    opacity: 0.4;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
}
.contact-list{
  display: flex;
  justify-content: space-between;
}

.contact{
  display: flex;

}

.footer-credit {
    text-align: center;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.footer-credit:hover {
    opacity: 1;
}

.footer-credit a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover {
    text-decoration: underline;
}
/* ===================================
   RESPONSIVE
   =================================== */

/* Tablettes */
@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .releases-table th:nth-child(1), .releases-table td:nth-child(1) { width: 12%; }
  .releases-table th:nth-child(2), .releases-table td:nth-child(2) { width: 25%; }
  .releases-table th:nth-child(3), .releases-table td:nth-child(3) { width: 35%; }
  .releases-table th:nth-child(4), .releases-table td:nth-child(4) { width: 13%; }
  .releases-table th:nth-child(5), .releases-table td:nth-child(5) { width: 15%; }
  .slider-container {
    height: 380px;
  }
}
@media (max-width: 600px) {
  .release-row.active {
    border-radius: 6px 6px 0 0;
  }

   .release-row td:last-child::after {
    opacity: 0.8;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .contact-list{
    flex-direction: column;
  }
  /* Navigation */
  .main-nav {
    padding: 16px 20px; 
  }
  .releases-table th, .releases-table td { width: auto !important; }
  .releases-table th:nth-child(2),
  .releases-table td:nth-child(2) { 
    width: 20%;
     white-space: normal;
    overflow: visible;
    text-overflow: unset;
    min-width: 20px !important;
    max-width: 41vw !important; }

  .releases-table th:nth-child(5),
  .releases-table td:nth-child(5) { width: 16%; }
  .release-ref{padding-left: 24px !important;}
  .release-tags { gap: 3px; }
  .tag { font-size: 9px; padding: 2px 6px; }
  .logo-img {
    width: 120px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 13px;
  }

  /* Typographie */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
  }
  .releases-container {padding: 0 !important;}
  .releases-table th,
  .release-row td {
    padding: 16px 12px;
    font-size: 14px;
  }

  .releases-table th:nth-child(4),
  .release-row td:nth-child(4) {
    display: table-cell; 
  }
  .detail-content {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }

  .release-row:active{
    background-color: var(--accent-alpha-12) !important;
    border-left-color: var(--accent) !important;
    transform: scale(0.995);
  }
  .release-row::before {
    display: none;
  }

   .detail-content {
    position: relative;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: unset;
    justify-content: center;
  }
   .release-row td:last-child::after {
    font-size: 14px; 
    font-weight: bold;
    color: var(--accent); 
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 1s;
  }
   .release-row.active td:last-child::after {
    animation: none;
    opacity: 1;
  }

  .slider-container {
    height: auto;
    aspect-ratio: auto;
    padding-bottom: 0;
  }
  .slider-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }


  /* Footer */
  .main-footer {
    padding: var(--spacing-md);
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .footer-section {
    flex-wrap: wrap;
    justify-content: center;
  }
  .search-container {
    margin-bottom: 24px;
  }

  .search-input {
    padding: 14px 40px 14px 16px;
    font-size: 14px;
  }

   @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }
}

/* ✅ Petit mobile - date cachée ICI */
@media (max-width: 600px) {
  /* Cacher colonne Date sur très petit écran */
  .releases-table th:nth-child(4),
  .release-row td:nth-child(4) {
    display: none;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  /* ✅ Cacher tags sur très petit écran */
  .releases-table th:nth-child(5),
  .release-row td:nth-child(5) {
    display: none;
  }
  .logo-img {width: 110px;}
  .nav-links {gap: 16px;}
  .nav-links a {font-size: 12px;}
  h1 {font-size: 1.75rem;}
   .release-row {position: relative;}
  .release-row::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-alpha-08);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .release-row:active::after {
    opacity: 1;
  }

  .release-row td {
    padding: 14px 10px;
    font-size: 13px;
  }

  .releases-table th {
    padding: 12px 10px;
    font-size: 12px;
  }

  .smart-link {
    padding: 10px 18px;
    font-size: 12px;
  }

  

  .detail-content {
    padding: var(--spacing-sm);
  }

  .release-description {
    font-size: 14px;
  }
  .release-detail .release-tags {
    display: flex !important; 
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
}

/* ===================================
   PRINT
   =================================== */
@media print {
  .main-nav,
  .main-footer,
  .video-container,
  .slider-nav,
  .search-container {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .release-detail {
    display: table-row !important;
  }
}