/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Marquee animation for player title */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-text.scrolling {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

.marquee-text.scrolling::after {
  content: attr(data-text);
  padding-left: 3rem;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ARTISTIC HOME PAGE - STYLE BRUTALISTE/ÉDITORIAL */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────── */
/* CUSTOM CURSOR */
/* ─────────────────────────────────────────────────────────────────────────── */

.custom-cursor {
  position: fixed;
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, top 0.2s, left 0.2s;
}

.custom-cursor.cursor-grow {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  background: rgba(255,255,255,0.2);
  mix-blend-mode: normal;
  border: 2px solid #000;
}

.custom-cursor.cursor-text {
  width: 4px;
  height: 30px;
  top: -15px;
  left: -2px;
  border-radius: 2px;
  background: #000;
}

.custom-cursor-follower {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
}

.custom-cursor-follower.follower-grow {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  border-color: rgba(0,0,0,0.1);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RANDOM PATTERNS - MOTIFS ALÉATOIRES */
/* ─────────────────────────────────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────────────────────────────── */
/* BASE & REVEAL */
/* ─────────────────────────────────────────────────────────────────────────── */

.artistic-home {
  overflow-x: hidden;
  position: relative;
}


/* ─────────────────────────────────────────────────────────────────────────── */
/* ÉTOILES FLOTTANTES - Rotations individuelles */
/* ─────────────────────────────────────────────────────────────────────────── */

.stars-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  mix-blend-mode: difference;
}

.star {
  position: absolute;
  fill: #fff;
  opacity: 0.12;
}

/* Animation de rotation */
@keyframes spinStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinStarReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Positions et tailles uniques pour chaque étoile */
.star-1 {
  width: 18px; height: 18px;
  top: 5%; left: 8%;
  animation: spinStar 25s linear infinite;
}

.star-2 {
  width: 12px; height: 12px;
  top: 12%; left: 85%;
  animation: spinStarReverse 18s linear infinite;
  opacity: 0.06;
}

.star-3 {
  width: 22px; height: 22px;
  top: 22%; left: 3%;
  animation: spinStar 30s linear infinite;
  opacity: 0.05;
}

.star-4 {
  width: 10px; height: 10px;
  top: 18%; left: 45%;
  animation: spinStarReverse 15s linear infinite;
  opacity: 0.07;
}

.star-5 {
  width: 16px; height: 16px;
  top: 35%; left: 92%;
  animation: spinStar 22s linear infinite;
}

.star-6 {
  width: 8px; height: 8px;
  top: 28%; left: 72%;
  animation: spinStarReverse 12s linear infinite;
  opacity: 0.1;
}

.star-7 {
  width: 20px; height: 20px;
  top: 48%; left: 6%;
  animation: spinStar 35s linear infinite;
  opacity: 0.04;
}

.star-8 {
  width: 14px; height: 14px;
  top: 55%; left: 78%;
  animation: spinStarReverse 20s linear infinite;
  opacity: 0.06;
}

.star-9 {
  width: 11px; height: 11px;
  top: 42%; left: 55%;
  animation: spinStar 16s linear infinite;
  opacity: 0.08;
}

.star-10 {
  width: 24px; height: 24px;
  top: 65%; left: 2%;
  animation: spinStarReverse 40s linear infinite;
  opacity: 0.03;
}

.star-11 {
  width: 9px; height: 9px;
  top: 72%; left: 88%;
  animation: spinStar 14s linear infinite;
  opacity: 0.09;
}

.star-12 {
  width: 15px; height: 15px;
  top: 58%; left: 35%;
  animation: spinStarReverse 28s linear infinite;
  opacity: 0.05;
}

.star-13 {
  width: 13px; height: 13px;
  top: 78%; left: 18%;
  animation: spinStar 19s linear infinite;
  opacity: 0.07;
}

.star-14 {
  width: 7px; height: 7px;
  top: 85%; left: 65%;
  animation: spinStarReverse 11s linear infinite;
  opacity: 0.1;
}

.star-15 {
  width: 19px; height: 19px;
  top: 8%; left: 28%;
  animation: spinStar 32s linear infinite;
  opacity: 0.04;
}

.star-16 {
  width: 10px; height: 10px;
  top: 92%; left: 42%;
  animation: spinStarReverse 17s linear infinite;
  opacity: 0.08;
}

.star-17 {
  width: 17px; height: 17px;
  top: 38%; left: 15%;
  animation: spinStar 24s linear infinite;
  opacity: 0.05;
}

.star-18 {
  width: 6px; height: 6px;
  top: 52%; left: 95%;
  animation: spinStarReverse 10s linear infinite;
  opacity: 0.12;
}

.star-19 {
  width: 21px; height: 21px;
  top: 88%; left: 8%;
  animation: spinStar 38s linear infinite;
  opacity: 0.03;
}

.star-20 {
  width: 12px; height: 12px;
  top: 15%; left: 62%;
  animation: spinStarReverse 21s linear infinite;
  opacity: 0.06;
}

.reveal-element {
  opacity: 0;
  transform: translateY(60px) rotate(-1deg);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SECTIONS */
/* ─────────────────────────────────────────────────────────────────────────── */

.art-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .art-section {
    padding: 8rem 0;
  }
}


.art-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1.5rem 3rem;
  border-bottom: 3px solid #000;
  margin-bottom: 3rem;
}

.art-section-header-dark {
  border-bottom-color: rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
  .art-section-header {
    padding: 0 4rem 4rem;
    margin-bottom: 4rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SECTION TITLES - BRUTALISTE */
/* ─────────────────────────────────────────────────────────────────────────── */

.art-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.art-title-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.2em;
}

.art-title {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.art-title-main {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 3vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #666;
}

.art-title-accent {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 10vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-top: -0.1em;
}

.art-section-header-dark .art-title-main {
  color: rgba(255,255,255,0.5);
}

.art-section-header-dark .art-title-accent {
  color: #fff;
}

/* Link arrow */
.art-link-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.art-link-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.art-link-arrow:hover {
  border-bottom-color: #000;
}

.art-link-arrow:hover svg {
  transform: translateX(5px);
}

.art-link-arrow-light {
  color: #fff;
}

.art-link-arrow-light:hover {
  border-bottom-color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* REPLAYS GRID - LAYOUT ÉDITORIAL */
/* ─────────────────────────────────────────────────────────────────────────── */

.art-replays-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

@media (min-width: 768px) {
  .art-replays-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.art-replay-card {
  position: relative;
  background: #fafafa;
  transition: background 0.3s ease;
}

.art-replay-card:hover {
  background: #f0f0f0;
}

/* Image avec effet de reveal diagonal */
.art-replay-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.art-image-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-replay-image:hover .art-image-inner {
  transform: scale(1.08);
}

.art-replay-image:hover .art-image-inner img {
  filter: grayscale(0%);
}

.art-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-placeholder span {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 900;
  font-size: 5rem;
  color: rgba(255,255,255,0.1);
}

/* Play indicator */
.art-play-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-replay-image:hover .art-play-indicator {
  transform: translateY(0);
}

.art-play-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: #fff;
  letter-spacing: 0.3em;
}

/* Replay info */
.art-replay-info {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s ease;
}

.art-replay-info:hover {
  padding-left: 1.75rem;
}

.art-genre {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 0.5rem;
}

.art-replay-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.art-replay-artist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.art-artist-line {
  width: 20px;
  height: 1px;
  background: #ccc;
  transition: width 0.3s ease, background 0.3s ease;
}

.art-replay-info:hover .art-artist-line {
  width: 30px;
  background: #000;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESIDENTS - BANDE HORIZONTALE */
/* ─────────────────────────────────────────────────────────────────────────── */

.art-residents {
  background: #000;
  color: #fff;
}

.art-residents-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
  .art-residents-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.art-resident-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.art-resident-photo {
  width: 100%;
  height: 100%;
  position: relative;
}

.art-resident-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s ease;
}

.art-resident-item:hover .art-resident-photo img {
  transform: scale(1.1);
  filter: contrast(1.2) brightness(0.8);
}

.art-resident-placeholder {
  width: 100%;
  height: 100%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-resident-placeholder span {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: rgba(255,255,255,0.15);
}

/* Name avec double layer */
.art-resident-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  overflow: hidden;
}

.art-name-text,
.art-name-hover {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-name-hover {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  transform: translateY(150%);
  color: #fff;
  font-weight: 800;
}

.art-resident-item:hover .art-name-text {
  transform: translateY(-150%);
}

.art-resident-item:hover .art-name-hover {
  transform: translateY(0);
}

/* Marquee décoratif */
.art-marquee {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  margin-top: 4rem;
}

.art-marquee-inner {
  display: flex;
  gap: 2rem;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

.art-marquee-inner span {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.3);
}

.art-marquee-dot {
  color: rgba(255,255,255,0.1) !important;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SCHEDULE - GRILLE MINIMALISTE */
/* ─────────────────────────────────────────────────────────────────────────── */

.art-schedule {
  background: #fafafa;
}

.art-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0 1.5rem;
  border: 2px solid #000;
}

@media (min-width: 768px) {
  .art-schedule-grid {
    margin: 0 4rem;
  }
}

.art-day {
  border-right: 1px solid rgba(0,0,0,0.1);
  min-height: 180px;
  transition: all 0.3s ease;
}

.art-day:last-child {
  border-right: none;
}

.art-day:hover {
  background: #fff;
}

.art-day-today {
  background: #000;
  color: #fff;
}

.art-day-today:hover {
  background: #111;
}

.art-day-header {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.art-day-today .art-day-header {
  border-bottom-color: rgba(255,255,255,0.2);
}

.art-day-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.art-today-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  background: #fff;
  color: #000;
  padding: 0.15rem 0.35rem;
  letter-spacing: 0.1em;
}

.art-day-content {
  padding: 0.5rem;
}

.art-slot {
  padding: 0.5rem;
  margin-bottom: 0.35rem;
  position: relative;
  transition: all 0.2s ease;
}

.art-slot:hover {
  background: rgba(0,0,0,0.03);
}

.art-day-today .art-slot:hover {
  background: rgba(255,255,255,0.05);
}

.art-slot-live {
  background: #fff;
  color: #000;
  border-left: 3px solid #ff0000;
}

.art-slot-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  opacity: 0.5;
  display: block;
  margin-bottom: 0.2rem;
}

.art-slot-title {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}

.art-live-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 6px;
  height: 6px;
  background: #ff0000;
  border-radius: 50%;
  animation: artPulse 1.5s infinite;
}

@keyframes artPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.art-slot-empty {
  text-align: center;
  opacity: 0.2;
  padding: 2rem 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* FOOTER */
/* ─────────────────────────────────────────────────────────────────────────── */

.art-footer {
  background: #000;
  color: #fff;
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .art-footer {
    padding: 6rem 4rem;
  }
}

.art-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .art-footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.art-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.art-footer-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.art-footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.art-footer-nav {
  display: flex;
  gap: 2rem;
}

.art-footer-nav a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.art-footer-nav a:hover {
  color: #fff;
}

.art-footer-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* EMPTY STATE */
/* ─────────────────────────────────────────────────────────────────────────── */

.art-empty {
  padding: 4rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none;
  }

  .stars-container {
    display: none;
  }

  .art-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .art-title-accent {
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .art-schedule-grid {
    grid-template-columns: repeat(7, 1fr);
    margin: 0 0.5rem;
  }

  .art-day {
    min-height: 140px;
  }

  .art-day-name {
    font-size: 0.55rem;
  }

  .art-slot-title {
    font-size: 0.6rem;
  }

  .art-marquee {
    margin-top: 2rem;
  }
}
