/* --- 1. TYPOGRAPHIES --- */
@font-face {
  font-family: 'VT323';
  src: url('fonts/VT323-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Space Mono';
  src: url('fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* --- 2. VARIABLES ET BASES --- */
:root {
  --jaune-fluo: #FFEA00;
  --noir: #000000;
  --blanc: #FFFFFF;
  --gris-clair: #AAAAAA;
  --gris-fonce: #333333;
  --font-titre: 'VT323', monospace;
  --font-corps: 'Space Mono', monospace;
}

body {
  margin: 0;
  background-color: #111;
  color: var(--blanc);
  font-family: var(--font-corps); 
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.no-scroll {
  overflow: hidden; 
}

h1, h2, h3, .logo {
  font-family: var(--font-titre);
  text-transform: uppercase;
}


/* --- 3. SPLASH SCREEN --- */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: var(--noir);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.8s ease;
}

.logo-splash {
  font-size: 4rem;
  color: var(--jaune-fluo); 
  letter-spacing: 5px;
}

/* --- 4. MISE EN PAGE PRINCIPALE --- */
#app-container {
  opacity: 0; 
  transition: opacity 0.8s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#glcanvas {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1; 
}

.logo-img {
    height: 28px; 
    display: block;
}

/* --- 5. EN-TÊTE FIXE --- */
.header-fluo {
  background-color: var(--jaune-fluo);
  color: var(--noir);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  z-index: 110; 
  position: sticky;
  top: 0;
}

.logo {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.annonces {
  font-weight: bold;
  text-transform: uppercase;
}

/* --- 6. LECTEUR AUDIO OPTIMISÉ --- */
#audio-player {
  position: sticky;
  top: 60px; 
  background-color: var(--noir);
  border-bottom: 1px solid var(--gris-fonce);
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100; 
  min-height: 55px;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1; 
}

.player-cover {
  width: 44px; 
  height: 44px;
  background-color: var(--jaune-fluo); 
  border-radius: 4px;
  display: flex;
  justify-content: flex-end;
  padding: 4px;
  box-sizing: border-box;
}

.cover-typo {
  color: var(--noir); 
  font-size: 0.6rem;
  font-weight: bold;
  line-height: 1;
}

.track-title {
  color: var(--blanc);
  font-weight: bold;
  text-transform: uppercase;
  font-family: var(--font-titre);
  font-size: 1.4rem; 
  line-height: 1.1;
}

.track-artist {
  color: var(--gris-clair);
  font-size: 0.8rem;
  margin-top: 0px;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 2; 
  gap: 4px; 
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px; 
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0; 
}

.ctrl-btn:hover {
  color: var(--jaune-fluo); 
}

.play-btn {
  font-size: 1.3rem; 
}

.player-progress-container {
  display: flex;
  align-items: center;
  gap: 10px; 
  width: 100%;
  max-width: 450px;
}

.player-progress-container span {
  color: var(--gris-clair);
  font-size: 0.7rem;
  min-width: 35px; 
  text-align: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
  margin: 0; 
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; 
  background: linear-gradient(to right, var(--jaune-fluo) var(--progress, 0%), var(--gris-fonce) var(--progress, 0%)); 
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 0px; 
  width: 0px;
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
}

#volume-bar {
  width: 80px; 
}

/* --- 7. BURGER MENU ANIMÉ --- */
.burger-menu {
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.burger-menu .line {
  width: 100%;
  height: 3px;
  background-color: var(--noir);
  display: block;
  transition: transform 0.3s ease-in-out; 
}

.burger-menu.active .line-1 {
  transform: translateY(5.5px) rotate(45deg);
}

.burger-menu.active .line-2 {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* --- 8. MENU TIROIR ET RECHERCHE --- */
.menu-tiroir {
  position: fixed;
  top: 0; 
  padding-top: 60px; 
  left: 0;
  width: 100%;
  background-color: var(--jaune-fluo);
  color: var(--noir);
  z-index: 105; 
  max-height: 0px;
  overflow-y: auto;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  border-bottom: 2px solid var(--noir);
}

.menu-tiroir.active {
  max-height: calc(100vh - 60px); 
  visibility: visible;
}

.menu-tiroir-content {
  padding: 40px 10%;
}

.recherche-container {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(0,0,0,0.3); 
  margin-bottom: 40px;
  padding-bottom: 5px; 
}

.loupe {
  font-size: 1.2rem;
  margin-right: 15px; 
  opacity: 0.7;
}

.input-recherche {
  font-family: var(--font-titre);
  background: transparent;
  border: none;
  font-size: 1.8rem; 
  color: var(--noir);
  outline: none;
  flex-grow: 1;
  text-transform: uppercase;
}

.input-recherche::placeholder {
  color: rgba(0,0,0,0.5); 
}

.liens-navigation {
  display: flex;
  gap: 10vw;
}

.menu-title {
  font-family: var(--font-corps);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 30px;
  margin-top: 20px;   
}

.colonne {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
}
.liens-navigation a {
  display: block; 
  color: var(--noir);
  text-decoration: none;
  font-size: 2.2rem; 
  font-weight: bold;
  margin-bottom: 25px; 
  line-height: 1.1;    
  position: relative;
}

.liens-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--noir);
  transition: width 0.4s ease;
}

.liens-navigation a:hover::after {
  width: 100%;
}

/* --- 9. GESTION DES PAGES (SPA) --- */
#main-content {
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-section {
  display: none; 
  flex-grow: 1;
  animation: fadeIn 0.4s ease-in-out; 
}

.page-section.active {
  display: block;
}

#live.active {
  display: block;
  height: calc(100vh - 115px); 
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* --- ALIGNEMENT ET LARGEUR DES TEXTES --- */

.contenu-page {
    padding: 40px 20px 100px 20px; 
    max-width: 1200px;  
    margin-left: auto;  
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.contenu-page h2 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 15px;
    width: 100%;
    max-width: 1110px;
    text-align: left;
}

.contenu-page p {
    font-size: 1.1rem;
    width: 100%;
    max-width: 1110px; 
    line-height: 1.4;
    margin-bottom: 40px;
    color: var(--blanc);
    opacity: 0.9;
    text-align: left;  
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 10. NAVIGATION PILULE (Desktop) --- */
.nav-pilule {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--jaune-fluo); 
  display: flex;
  align-items: center;
  border-radius: 50px;
  padding: 5px 5px 5px 25px;
  z-index: 100;
}

.nav-pilule a {
  color: var(--noir);
  text-decoration: none;
  text-transform: uppercase;
  margin-right: 20px;
  font-weight: 400;
  transition: font-weight 0.2s;
}

.nav-pilule a:hover {
  font-weight: 700;
}

.btn-isole {
  background-color: var(--noir);
  color: var(--jaune-fluo) !important; 
  padding: 15px 25px;
  border-radius: 40px;
  margin-right: 0 !important;
}

/* --- 11. MODALE BLANCHE (Filtres) --- */
.modal-blanche {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  color: var(--noir);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  padding: 100px 50px;
}

.modal-blanche.is-open {
  opacity: 1;
  pointer-events: auto;
}

.btn-fermer {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--noir);
}

/* PODCAST */ 

/* --- SECTION REPLAY : GRILLE DE PODCASTS FIXE --- */

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px); 
    gap: 30px;
    margin-top: 30px;
    justify-content: center; 
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 100px;
}

.podcast-item {
  width: 250px; 
  height: 250px; 
  border-radius: 8px;
  overflow: visible; 
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease; 
  position: relative;
  z-index: 1;
}

.podcast-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 8px;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .podcast-item:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  }
}

.podcast-item[data-track-index] {
    cursor: pointer;
}

.playing-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--jaune-fluo);
    color: var(--noir);
    font-family: var(--font-titre);
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.podcast-item.is-playing .playing-indicator {
    opacity: 1;
}

.podcast-item.is-playing img {
    box-sizing: border-box;
    border: 2px solid var(--jaune-fluo);
}


/* --- ATELIER --- */

#zone-atelier {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-bottom: 0;
}

#atelier .contenu-page {
    padding-bottom: 20px; 
}
#atelier {
    padding-bottom: 100px;
}

.draggable-item {
  position: absolute;
  width: 15vw;
  max-width: 220px;
  min-width: 130px;
  cursor: move;
  user-select: none;
  z-index: 1;
  transition: transform 0.2s;
}

.draggable-item:hover {
  z-index: 10;
  transform: scale(1.05);
}

.draggable-item img {
  width: 100%;
  height: auto;
  pointer-events: none;
  display: block;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
}

.draggable-item:nth-child(1) img { transform: rotate(-12deg); }
.draggable-item:nth-child(2) img { transform: rotate(8deg); }
.draggable-item:nth-child(3) img { transform: rotate(-5deg); }
.draggable-item:nth-child(4) img { transform: rotate(15deg); }
.draggable-item:nth-child(5) img { transform: rotate(-20deg); }
.draggable-item:nth-child(6) img { transform: rotate(4deg); }
.draggable-item:nth-child(7) img { transform: rotate(-10deg); }
.draggable-item:nth-child(8) img { transform: rotate(11deg); }
.draggable-item:nth-child(9) img { transform: rotate(-7deg); }
.draggable-item:nth-child(10) img { transform: rotate(18deg); }


/* --- MANIFESTO --- */

#photo-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 450px; 
  margin: 50px auto;
  cursor: pointer;
  z-index: 5;
}

#photo-stack img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 5px 25px rgba(0,0,0,0.6);
  border-radius: 4px;
  transition: transform 0.3s ease-out;
  background-color: var(--noir);
}



/* --- AJUSTEMENT RESPONSIVE --- */

@media (max-width: 600px) {
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
  }
  .podcast-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* --- 12. RESPONSIVE (Mobile & Tablette) --- */
@media (max-width: 768px) {
  
  #audio-player {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px; 
    min-height: 70px;
    border-bottom: none;
    border-top: 1px solid var(--gris-fonce);
    flex-direction: row; 
    gap: 10px; 
  }

  .hide-mobile {
    display: none !important;
  }

  .player-cover {
    width: 48px;
    height: 48px;
  }
  
  .track-title {
    font-size: 1.1rem; 
  }
  
  .track-artist {
    font-size: 0.9rem;
  }

  .player-controls {
    gap: 12px; 
  }

  .ctrl-btn {
    font-size: 1.4rem;
  }

  .play-btn {
    font-size: 1.6rem;
  }

  .player-center {
    flex: 0; 
    margin-left: auto; 
  }

  .player-progress-container {
    position: absolute;
    top: -12px; 
    left: 0;
    width: 100%;
    height: 14px; 
    margin: 0;
    padding: 0;
    max-width: 100%;
    display: block; 
  }

  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  input[type="range"]#progress-bar {
    height: 14px; 
    margin: 0;
  }

  input[type="range"]::-webkit-slider-runnable-track {
    height: 3px; 
    border-radius: 0;
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: var(--jaune-fluo);
    border-radius: 50%;
    margin-top: -4.5px; 
    box-shadow: 0 0 4px rgba(0,0,0,0.8); 
  }

  .menu-tiroir-content {
    padding: 20px 5%;
  }

  .recherche-container {
    margin-bottom: 20px;
  }

  .menu-title {
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .liens-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .liens-navigation a {
    margin-bottom: 15px; 
    font-size: 1.4rem;
  }

  .desktop-only {
    display: none !important;
  }
  
  .input-recherche {
    font-size: 1.3rem; 
  }
  
  .loupe {
    font-size: 1rem;
  }

  .contenu-page p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .contenu-page h2 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }

 #zone-atelier {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
    height: auto;
    overflow: visible;
    padding: 0 20px 100px 20px;
    box-sizing: border-box;
    margin: 30px auto 0 auto;
    width: 100%;
  }

  .draggable-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .draggable-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transform: rotate(0deg) !important;
  }
}