/* Palette inspirée d'un vieux jeu indé liminal */
:root {
  --bg: #000000;
  --container-bg: #100403;
  --text: #FC341E;
  --muted: #b6a98c;
  --accent: #c9aa79;
  --link: #d3b87c;
}

body {
  cursor: url('cursor.cur'), auto;
  background-image: url('https://files.catbox.moe/6b27b9.gif'); /* ← Remplace par ton lien */
  background-size: cover;         
  background-position: center;   
  background-repeat: no-repeat; 
  background-attachment: fixed;
  color: var(--text);
  font-size: 12px;
  font-family: 'Silkscreen', monospace;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: start;
  min-height: 100vh;
  padding-top: 3rem;
}

.tv-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: 
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 4px
    );
  animation: flicker 0.12s infinite;
  mix-blend-mode: overlay;
  opacity: 0.4;
  filter: contrast(1.3) brightness(1.1) saturate(1.4) blur(0.3px);
}

.tv-overlay::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  animation: wave 3s infinite linear;
  transform-origin: center;
  mix-blend-mode: overlay;
  opacity: 0.4;
}

@keyframes flicker {
  0%   { opacity: 0.2; }
  10%  { opacity: 0.8; }
  20%  { opacity: 0.3; }
  30%  { opacity: 0.7; }
  40%  { opacity: 0.4; }
  50%  { opacity: 1;   }
  60%  { opacity: 0.3; }
  70%  { opacity: 0.9; }
  80%  { opacity: 0.2; }
  90%  { opacity: 0.6; }
  100% { opacity: 0.2; }
}
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.02); }
}

.container {
  background-color: var(--container-bg);
  padding: 2rem 3rem;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #000000;
  border-radius: 0px;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: normal;
  color: var(--accent);
}

header p {
  margin-top: 0.5rem;
  color: var(--muted);
}

h2 {
  border-bottom: 1px solid #594c3a;
  padding-bottom: 0.3rem;
  margin-top: 2rem;
  color: var(--accent);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  color: var(--muted);
}

/* Tabs */
.tabs {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tabs a {
  color: var(--link);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.tabs a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tabs a.active {
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.tab-content {
  display: none;
}

/* Liste des références */
.ref-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ref-list button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Silkscreen', monospace;
}

.ref-list button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Détails de la référence */
.ref-details {
  display: none;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #5c4b38;
  background: #32271e;
  border-radius: 4px;
}

.ref-details.active {
  display: block;
}

.ref-details h3 {
  margin-top: 0;
  color: var(--accent);
}

.ref-gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.ref-gallery img {
  width: 100%;
  border: 1px solid #4e3e2c;
  border-radius: 4px;
}


.tab-content.active {
  display: block;
}

.fixed-image {
  position: fixed;
  bottom: -15px; 
  right: 0rem; 
  width: 330px;
  z-index: 9999;
  pointer-events: none;
}

.music-controls {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 10px;
  z-index: 9999;
}

.music-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: 'Silkscreen', monospace;
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.container-about {
  background-color: #fdf6e3;
  box-shadow: inset 0 0 0 1px #c9aa79, 0 0 8px rgba(0,0,0,0.4);
  padding: 1rem 1rem 1rem 1rem;
  max-width: 665px;   
  width: 100%;
  font-family: 'Silkscreen', monospace;
  border: 2px dashed #b5a87e;
  image-rendering: pixelated;

  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.container-about img {
  flex-shrink: 0;
  width: 200px;
}

.container-about p {
  margin: 0;
  font-size: 0.75rem;
  text-align: justify;
}

#accueil {
  position: relative;
  text-align: right;
}

.align-droite {
  text-align: left;
}

.me {
  position: relative;
  bottom: 0px;      
  right: -100px;    
  width: 500px;   
  z-index: 10;
  pointer-events: none;
}