/* Gallery Styles */
.gallery-section {
    margin: 0; /* spacing handled in style.css via --section-gap */
    position: relative;
}

/* ==========================
   Home Slider specific styles
   ========================== */
.home-slider-section {
    margin: 0; /* spacing handled in style.css */
}
.home-slider-section .gallery-container {
    margin: 0 auto;               /* centrer */
    width: 750px;                 /* largeur demandée */
    max-width: 100%;              /* responsive */
    height: 420px;                /* hauteur indépendante */
    border: 1px solid var(--ug-line); /* bordure bleue du thème */
}
.home-slider-section .gallery-controls {
    justify-content: center;
}
.home-slider-section .gallery-dots {
    justify-content: center;
}
@media (max-width: 768px) {
    .home-slider-section .gallery-container { height: 360px; }
}

/* ==========================
   First Slider specific styles
   ========================== */
.first-slider-section {
    margin: 0; /* spacing handled in style.css */
}
.first-slider-section .gallery-container {
    margin: 0 auto;
    width: 750px;
    max-width: 100%;
    height: 420px;
    border: 1px solid var(--ug-line);
}
.first-slider-section .gallery-dots { display: none; }
@media (max-width: 768px) {
    .first-slider-section .gallery-container { height: 360px; }
}

/* ==========================
   Third Slider specific styles
   ========================== */
.third-slider-section .gallery-container {
    margin: 0 auto;
    width: 750px;
    max-width: 100%;
    height: 420px;
    border: 1px solid var(--ug-line);
}
@media (max-width: 768px) {
    .third-slider-section .gallery-container { height: 360px; }
}

/* Subtle black halo on the three sliders */
.home-slider-section .gallery-container::after,
.first-slider-section .gallery-container::after,
.third-slider-section .gallery-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    /* Inner vignette + soft outer halo */
    box-shadow:
        inset 0 0 180px rgba(0, 0, 0, 0.72),
        inset 0 0 80px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Softer halo on mobile */
@media (max-width: 768px) {
  .home-slider-section .gallery-container::after,
  .first-slider-section .gallery-container::after,
  .third-slider-section .gallery-container::after {
    box-shadow:
      inset 0 0 120px rgba(0, 0, 0, 0.6),
      inset 0 0 50px rgba(0, 0, 0, 0.45),
      0 0 24px rgba(0, 0, 0, 0.35);
  }
}

/* ==========================
   Hero Video (au-dessus de H1)
   ========================== */
.hero-video {
  margin: 20px auto 24px;
  width: 750px;
  max-width: 100%;
}
.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Maintien 16/9 */
  overflow: hidden;
  border: 1px solid var(--ug-line); /* même bordure que sliders */
  border-radius: 20px;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 180px rgba(0, 0, 0, 0.72),
    inset 0 0 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.hero-video-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .hero-video-frame::after {
    box-shadow:
      inset 0 0 120px rgba(0, 0, 0, 0.6),
      inset 0 0 50px rgba(0, 0, 0, 0.45),
      0 0 24px rgba(0, 0, 0, 0.35);
  }
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
    max-width: 1000px;
}

.gallery-container {
    position: relative;
    width: 65%;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Cinematic slider width override */
.gallery-section .gallery-container {
    width: 750px;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-info {
    width: 35%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Fallback when backdrop-filter is not supported */
@supports not (backdrop-filter: blur(1px)) {
  .gallery-info {
    background: rgba(255, 255, 255, 0.07);
  }
}

.gallery-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #4ade80;
}

.gallery-info p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.gallery-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gallery-controls button {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid #4ade80;
    color: #4ade80;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-controls button:hover {
    background: #4ade80;
    color: #000;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-dot.active {
    background: #4ade80;
    transform: scale(1.2);
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
}

/* Effet Zoom */
.gallery-container.zoom .gallery-slide img {
    /* Base state matches animation start to avoid jump */
    transform: scale(1.08);
}
.gallery-container.zoom .gallery-slide.active img {
    animation: zoomEffect var(--slide-duration, 8s) linear forwards;
}

@keyframes zoomEffect {
    0% { transform: scale(1.08); }
    100% { transform: scale(1.18); }
}

/* Effet Ken Burns */
.gallery-container.kenburns .gallery-slide img {
    /* Base state matches animation start to avoid jump */
    transform: scale(1.08) translate(0, 0);
}
.gallery-container.kenburns .gallery-slide.active img {
    animation: kenburnsEffect var(--slide-duration, 8s) linear forwards;
}

@keyframes kenburnsEffect {
    0% { transform: scale(1.08) translate(0, 0); }
    100% { transform: scale(1.22) translate(-3%, -3%); }
}

/* Per-slide effects (indépendants du conteneur) */
.gallery-slide.effect-zoom img {
    /* Base state matches animation start */
    transform: scale(1.08);
}
.gallery-slide.effect-zoom.active img {
    animation: zoomEffect var(--slide-duration, 8s) linear forwards;
}

.gallery-slide.effect-kenburns img {
    /* Base state matches animation start */
    transform: scale(1.08) translate(0, 0);
}
.gallery-slide.effect-kenburns.active img {
    animation: kenburnsEffect var(--slide-duration, 8s) linear forwards;
}

/* Effet Parallax */
.gallery-container.parallax .gallery-slide {
    transform: translateX(100%);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-container.parallax .gallery-slide.active {
    transform: translateX(0);
}

/* Effet 3D Flip */
.gallery-container.flip3d {
    perspective: 1000px;
}

.gallery-container.flip3d .gallery-slide {
    transform: rotateY(90deg);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-container.flip3d .gallery-slide.active {
    transform: rotateY(0deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-wrapper {
        flex-direction: column;
    }
    
    .gallery-container,
    .gallery-info {
        width: 100%;
    }
    
    .gallery-container {
        height: 400px;
    }
}

/* Effet Slide */
.gallery-container.slide .gallery-slide {
    transform: translateX(100%);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.gallery-container.slide .gallery-slide.active {
    transform: translateX(0);
}

/* Effet Flip */
.gallery-container.flip .gallery-slide {
    transform: rotateY(180deg);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.gallery-container.flip .gallery-slide.active {
    transform: rotateY(0);
}

/* Recent Tracks Section */

.recent-tracks h2 {
    text-align: center;
    margin-bottom: var(--title-gap);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #40b5f6 0%, #90caf9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tracks-list {
    display: grid;
    gap: 15px;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.track-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #40b5f6 0%, #90caf9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
}

.track-artist {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.track-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.track-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-left: auto;
}

/* Partners Section */
.partners-section {
    margin: 80px 0;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-item {
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.partner-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-logo {
    width: 250px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: brightness(1.1);
}

.partner-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

/* Home Slider Section */

/* Responsive */
@media (max-width: 768px) {
    .gallery-container {
        height: 400px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .track-item {
        padding: 15px;
    }
    
    .track-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}
