/* src/universe/paysage/Paysage.css - Forêt Enchantée */

/* ===== CONTEXTE UNIVERSE ===== */
.universe--paysage {
  --font-display: 'Orbitron', sans-serif;
  --font-primary: 'Inter', sans-serif;
  /* Forêt magique avec lueurs violettes et dorées */
  --bg-section: 
    radial-gradient(ellipse at 30% 40%, rgba(150, 80, 200, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(200, 150, 80, 0.15) 0%, transparent 70%),
    linear-gradient(145deg, #1a0f1a 0%, #2a1a2a 100%);
  --card-bg: rgba(30, 20, 40, 0.7);
  --card-border-radius: 20px 60px 20px 60px;
  --card-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(200, 150, 200, 0.2) inset;
  --paysage-glow: #d9b0ff;
  color: #f0e0ff;
}

/* ===== CANVAS FX ===== */
.paysage-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-canvas);
  opacity: 0.3;
  mix-blend-mode: overlay;
  background: 
    repeating-linear-gradient(0deg, rgba(50, 0, 50, 0.05) 0px, rgba(50, 0, 50, 0.05) 8px, transparent 8px, transparent 16px),
    radial-gradient(circle at 50% 50%, rgba(200, 150, 255, 0.05) 0%, transparent 70%);
}

/* ===== HERO FX ===== */
.universe--paysage .hero__fx {
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* ===== STYLES SPÉCIFIQUES ===== */
.universe--paysage .chip {
  border-color: #b080d0;
  background: rgba(50, 30, 60, 0.5);
  box-shadow: 0 0 20px rgba(200, 150, 255, 0.3);
  color: #f0e0ff;
  backdrop-filter: blur(4px);
  border-radius: 30px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.universe--paysage .chip:hover {
  background: rgba(70, 40, 80, 0.7);
  box-shadow: 0 0 40px #d9b0ff;
  border-color: #e0c0ff;
  transform: translateY(-2px) scale(1.02);
}

/* ===== SPOTLIGHT ===== */
.spotlight {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: calc(var(--z-content) - 1);
  --mouse-x: 50%;
  --mouse-y: 50%;
  --meteor-x: 50%;
  --meteor-y: 20%;
  --meteor-i: 0;
  --meteor-color: 220, 180, 255;
  --lx: calc((1 - var(--meteor-i)) * var(--mouse-x) + var(--meteor-i) * var(--meteor-x));
  --ly: calc((1 - var(--meteor-i)) * var(--mouse-y) + var(--meteor-i) * var(--meteor-y));
  opacity: 0;
  transition: opacity 0.3s ease;
  background: 
    radial-gradient(circle at var(--lx) var(--ly), rgba(220, 180, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 200, 255, 0.1) 0%, transparent 70%),
    repeating-linear-gradient(45deg, rgba(50, 0, 50, 0.05) 0px, rgba(50, 0, 50, 0.05) 20px, transparent 20px, transparent 40px);
  background-blend-mode: overlay, screen, multiply;
}

.universe--paysage .spotlight {
  opacity: 1;
}

/* ===== GALERIE ===== */
.cine-gallery {
  background: rgba(25, 15, 30, 0.85);
  backdrop-filter: blur(6px);
  border: 3px solid #7a5a9a;
  border-radius: 40px 40px 40px 40px;
  padding: 70px;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.8),
    inset 0 0 50px #2a1a3a,
    0 0 0 3px #8a6aaa inset;
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
}

.cine-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(45deg, rgba(255, 200, 255, 0.02) 0px, rgba(255, 200, 255, 0.02) 40px, transparent 40px, transparent 80px);
  pointer-events: none;
}

.gallery__head {
  text-align: center;
  margin-bottom: 60px;
}

.gallery__head .h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 46px;
  letter-spacing: 8px;
  color: #e0c0ff;
  text-shadow: 3px 3px 0 #3a2a4a, 0 0 60px #d9b0ff;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.gallery__head .h2::before {
  content: '✨';
  position: absolute;
  left: -60px;
  top: -10px;
  font-size: 50px;
  opacity: 0.6;
  transform: rotate(-10deg);
}

.gallery__head .h2::after {
  content: '✨';
  position: absolute;
  right: -60px;
  bottom: -10px;
  font-size: 50px;
  opacity: 0.6;
  transform: rotate(10deg);
}

.gallery__head .soft {
  font-size: 18px;
  color: #d0b0f0;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  text-shadow: 0 2px 4px #1a0f1a;
  background: rgba(20, 0, 30, 0.3);
  padding: 12px 24px;
  border-radius: 60px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(220, 180, 255, 0.3);
}

/* Film strip */
.film-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin: 50px 0;
  perspective: 1500px;
  position: relative;
}

.film-strip::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 5%;
  width: 90%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #b080d0, #d9b0ff, #b080d0, transparent);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide {
  position: relative;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.3s;
  filter: sepia(0.2) contrast(1.1) brightness(0.95);
  transform: 
    rotateX(calc(var(--rotX, 0) * 1deg)) 
    rotateY(calc(var(--rotY, 0) * 1deg)) 
    translateY(var(--y, 0));
  --rotX: 3;
  --rotY: -2;
  --y: -4px;
  transform-style: preserve-3d;
  margin-top: 30px;
}

.slide:nth-child(odd) {
  --rotX: -2;
  --rotY: 3;
  --y: 5px;
}

.slide:nth-child(3n) {
  --rotX: 2;
  --rotY: 1;
  --y: -3px;
}

.slide:nth-child(5n) {
  --rotX: -3;
  --rotY: -2;
  --y: 6px;
}

.slide:nth-child(7n) {
  --rotX: 4;
  --rotY: 2;
  --y: -2px;
}

.slide:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1.1) translateY(0);
  filter: sepia(0) contrast(1.2) brightness(1);
  z-index: 30;
}

.slide__inner {
  position: relative;
  border-radius: 10px 40px 10px 40px;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 0 5px #7a5a9a,
    0 0 0 10px #3a2a4a;
  transform: translateZ(0);
  transition: transform 0.4s, box-shadow 0.4s;
  background: #2a1a2a;
  padding: 8px;
}

.slide:hover .slide__inner {
  transform: translateZ(20px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 0 5px #d9b0ff,
    0 0 0 12px #5a3a7a;
}

.slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px 36px 6px 36px;
  transition: filter 0.4s;
}

.slide__info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  color: #f0e0ff;
  padding: 22px 15px 12px;
  transform: translateY(100%);
  transition: transform 0.3s;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 2px 5px black;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 6px;
  backdrop-filter: blur(2px);
}

.slide:hover .slide__info {
  transform: translateY(0);
}

.slide__title {
  display: block;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.slide__date {
  font-size: 15px;
  opacity: 0.8;
  margin-top: 5px;
}

.slide__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(200, 150, 255, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}

.slide:hover .slide__glow {
  opacity: 1;
}

/* Pince à linge */
.slide::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  background: linear-gradient(145deg, #b080d0, #5a3a7a);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #d9b0ff;
  border-bottom: none;
  z-index: 5;
}

.slide::after {
  content: attr(data-caption);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #e0c0ff;
  font-family: 'Courier New', monospace;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(2px);
  border: 1px solid #d9b0ff;
  z-index: 10;
}

.slide:hover::after {
  opacity: 1;
}

.gallery__note {
  text-align: center;
  margin-top: 70px;
  font-size: 17px;
  color: #d0b0f0;
  font-style: italic;
  border-top: 3px solid #7a5a9a;
  padding-top: 40px;
  letter-spacing: 2px;
  position: relative;
}

.gallery__note::before {
  content: '🦋';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: #d9b0ff;
  background: #1a0f1a;
  padding: 0 20px;
}

/* ===== BODY CONTENT ===== */
.paysage-body {
  position: relative;
  z-index: 5;
}

/* ===== MEDIA QUERIES MOBILE ===== */
@media (max-width: 768px) {
  .cine-gallery {
    padding: 40px;
  }

  .gallery__head .h2 {
    font-size: 36px;
    letter-spacing: 6px;
  }

  .gallery__head .h2::before,
  .gallery__head .h2::after {
    font-size: 40px;
    left: -40px;
    right: -40px;
  }

  .gallery__head .soft {
    font-size: 16px;
  }

  .film-strip {
    gap: 40px;
  }

  .film-strip::before {
    top: -20px;
  }

  .slide img {
    height: 180px;
  }

  .slide__title {
    font-size: 17px;
  }

  .slide::before {
    width: 30px;
    height: 16px;
    top: -20px;
  }

  .slide::after {
    font-size: 11px;
    bottom: -30px;
  }
}

@media (max-width: 480px) {
  .cine-gallery {
    padding: 25px;
  }

  .gallery__head .h2 {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .gallery__head .h2::before,
  .gallery__head .h2::after {
    display: none;
  }

  .film-strip {
    grid-template-columns: 1fr;
  }

  .slide img {
    height: 160px;
  }

  .slide__info {
    padding: 18px 10px 8px;
  }

  .slide__title {
    font-size: 16px;
  }

  .slide::before {
    width: 25px;
    height: 14px;
    top: -18px;
  }

  .slide::after {
    font-size: 10px;
    bottom: -28px;
  }
}