/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

:root {
  --apash-primary: #DC143C;
  --apash-secondary: #000000;
  --apash-background: #0A0A0A;
  --apash-surface: #1A1A1A;
  --apash-text: #FFFFFF;
}

/* General Styles */
body {
  background-color: var(--apash-background);
  color: var(--apash-text);
  font-family: 'Montserrat', 'Roboto', sans-serif;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  background: rgba(10, 10, 10, 0.3);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 2rem 0;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.apash-text {
  background: linear-gradient(45deg, #DC143C, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  opacity: 0.9;
}

.hero-stats {
  margin: 2rem 0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--apash-red);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Logo Styling */
.apash-logo {
  background: linear-gradient(45deg, #DC143C, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Section Styling */
.section-padding {
  padding: 5rem 0;
}

.bg-surface {
  background-color: var(--apash-surface);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #DC143C, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Service Cards */
.service-card {
  background-color: var(--apash-surface) !important;
  border: 1px solid rgba(220, 20, 60, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--apash-red);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.service-icon {
  text-align: center;
  padding: 1rem 0;
}

/* Artists Grid - Perfect Alignment */
.artists-masonry .v-row {
  align-items: stretch;
}

.artists-masonry .v-col {
  display: flex;
  flex-direction: column;
}

/* Artist Cards */
.artist-card {
  background-color: var(--apash-surface) !important;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.artist-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.artist-card .artist-image {
  flex-shrink: 0;
}

.artist-card .v-card-title {
  font-size: 1.25rem !important;
  font-weight: 600;
  line-height: 1.3;
  padding: 16px 16px 8px 16px;
  flex-shrink: 0;
}

.artist-card .v-card-subtitle {
  font-size: 0.95rem !important;
  font-weight: 500;
  padding: 0 16px 8px 16px;
  flex-shrink: 0;
}

.artist-card .v-card-text {
  font-size: 0.875rem !important;
  line-height: 1.4;
  padding: 8px 16px;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

.artist-card .v-card-actions {
  padding: 8px 16px 16px 16px;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 60px; /* Hauteur minimum même sans boutons */
}

.artist-card .v-card-actions:empty {
  min-height: 20px; /* Hauteur réduite si aucun bouton */
}

.artist-card .v-card-actions .v-btn {
  margin: 2px;
  min-width: 36px;
}

.artist-image {
  position: relative;
  overflow: hidden;
}

.artist-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(220, 20, 60, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artist-card:hover .artist-overlay {
  opacity: 1;
}

/* Creations Grid - Perfect Alignment */
.creations-masonry .v-row {
  align-items: stretch;
}

.creations-masonry .v-col {
  display: flex;
  flex-direction: column;
}

/* Creation Cards */
.creation-card {
  background-color: var(--apash-surface) !important;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Hauteur minimum pour l'homogénéité */
}

.creation-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.creation-card .creation-image {
  flex-shrink: 0;
  min-height: 200px; /* Hauteur minimum pour les images */
}

.creation-card .v-card-title {
  font-size: 1.25rem !important;
  font-weight: 600;
  line-height: 1.3;
  padding: 16px 16px 8px 16px;
  flex-shrink: 0;
}

.creation-card .v-card-subtitle {
  font-size: 0.95rem !important;
  font-weight: 500;
  padding: 0 16px 8px 16px;
  flex-shrink: 0;
}

.creation-card .v-card-text {
  font-size: 0.875rem !important;
  line-height: 1.4;
  padding: 8px 16px 16px 16px;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

/* YouTube Integration */
.youtube-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 16px;
  min-height: 250px; /* Hauteur minimum pour l'iframe */
}

.youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 250px;
}

.youtube-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.creation-type {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.creation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.creation-card:hover .creation-overlay {
  opacity: 1;
}

/* Masonry Layout */
.artists-masonry,
.creations-masonry {
  column-count: auto;
  column-gap: 1rem;
}

/* Contact Form */
.map-placeholder {
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
}

/* Animations */
@keyframes pulse {
  from {
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(220, 20, 60, 0.8);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Partners Section */
.partners-section {
  overflow: hidden;
  position: relative;
  background: var(--apash-secondary) !important;
}

.partners-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 3rem 0;
}

.partners-carousel {
  display: flex;
  align-items: center;
  animation: scroll-partners 40s linear infinite;
  gap: 6rem;
  width: fit-content;
}

.partner-item {
  flex-shrink: 0;
  width: 280px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(220, 20, 60, 0.2);
}

.partner-item:hover {
  transform: translateY(-8px);
  background: rgba(26, 26, 26, 1);
  border-color: rgba(220, 20, 60, 0.5);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
}

.partner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partner-logo {
  max-width: 220px !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  filter: grayscale(1) brightness(0.8);
  transition: all 0.3s ease;
  padding-top: 3%;
  margin-bottom: 0.5rem;
}

.partner-logo .v-img__img {
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.partner-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.partner-item:hover .partner-logo {
  filter: grayscale(0) brightness(1);
  transform: scale(1.05);
}

.partner-item:hover .partner-name {
  color: rgba(220, 20, 60, 1);
}

.partner-fallback {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #DC143C, #FF6B6B);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
}

/* Animation for scrolling */
@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.partners-carousel:hover {
  animation-play-state: paused;
}

/* Fade effect at edges */
.partners-carousel-container::before,
.partners-carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.partners-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, #000000, transparent);
}

.partners-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, #000000, transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partners-carousel {
    animation-duration: 25s;
    gap: 3rem;
  }
  
  .partner-item {
    width: 200px;
    height: 90px;
    padding: 1rem;
  }
  
  .partner-logo {
    max-width: 160px !important;
    max-height: 60px !important;
  }
  
  .partner-name {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .partners-carousel {
    animation-duration: 20s;
    gap: 2rem;
  }
  
  .partner-item {
    width: 160px;
    height: 80px;
    padding: 0.75rem;
  }
  
  .partner-logo {
    max-width: 130px !important;
    max-height: 50px !important;
  }
  
  .partner-name {
    font-size: 0.7rem;
  }
}

/* Additional utility styles */
.section-title {
  color: var(--apash-text);
  font-weight: 700;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.bg-black {
  background-color: var(--apash-secondary) !important;
}

/* Fix for Vuetify image component */
.v-img {
  display: flex !important;
}

.v-img__img {
  object-fit: contain;
}

/* Ensure images are visible */
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--apash-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--apash-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--apash-accent);
}

/* Modal Fixes */
.v-dialog {
  /* Empêcher le scroll automatique */
  scroll-behavior: auto !important;
}

.v-overlay__content {
  /* Maintenir la position sans affecter le scroll du body */
  position: fixed;
}

/* Éviter le jump lors de l'ouverture/fermeture des modals */
body.v-overlay-scroll-blocked {
  padding-right: 0 !important;
}

/* Qards Button Styling */
.qards-btn {
  position: relative !important;
}

.qards-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  background: linear-gradient(45deg, #FF6B6B, #DC143C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.qards-modal-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qards-logo-large {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  background: linear-gradient(45deg, #FF6B6B, #DC143C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

/* Hover effects for Qards buttons */
.qards-btn:hover .qards-logo,
.qards-modal-btn:hover .qards-logo-large {
  text-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
  transform: scale(1.1);
  transition: all 0.3s ease;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--apash-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--apash-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--apash-accent);
}

/* Modal Fixes */
.v-dialog {
  /* Empêcher le scroll automatique */
  scroll-behavior: auto !important;
}

.v-overlay__content {
  /* Maintenir la position sans affecter le scroll du body */
  position: fixed;
}

/* Éviter le jump lors de l'ouverture/fermeture des modals */
body.v-overlay-scroll-blocked {
  padding-right: 0 !important;
}

/* Qards Button Styling */
.qards-btn {
  position: relative !important;
}

.qards-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  background: linear-gradient(45deg, #FF6B6B, #DC143C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.qards-modal-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qards-logo-large {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  background: linear-gradient(45deg, #FF6B6B, #DC143C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

/* Hover effects for Qards buttons */
.qards-btn:hover .qards-logo,
.qards-modal-btn:hover .qards-logo-large {
  text-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
  transform: scale(1.1);
  transition: all 0.3s ease;
}
