/* ===== Homepage - Modern Professional Design ===== */

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  /* Remplacement du fond uni par l'image fournie */
  background-image: url('/static/images/paint-vault_cover.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay/tint et motif — conservés */
.hero-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background:
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,0,0,0.35) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0,0,0,0.25) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.hero-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.06) 35px, rgba(255,255,255,.06) 70px);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-container { position: relative; z-index: 2; padding: 4rem 2rem; }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; animation: fadeInUp 1s ease-out; }

.hero-title { margin-bottom: 2rem; }
.hero-title-main {
  display: block; font-size: 4.5rem; font-weight: 900; color: white;
  text-transform: uppercase; letter-spacing: -2px; margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  animation: slideInDown 0.8s ease-out;
}
.hero-title-sub { display: block; font-size: 1.5rem; font-weight: 300; color: rgba(255,255,255,0.95); letter-spacing: 1px; animation: slideInUp 0.8s ease-out 0.2s both; }

.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2.25rem;
  line-height: 1.6;
  animation: fadeIn 1s ease-out 0.4s both;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.25rem; animation: fadeIn 1s ease-out 0.6s both; }

.btn-hero {
  padding: 1rem 2.5rem; font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: 50px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.75rem; transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); position: relative; overflow: hidden;
}
.btn-hero::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.btn-hero:hover::before { left: 100%; }
.btn-hero-primary { background: white; color: #667eea; }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); color: #764ba2; }
.btn-hero-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-hero-secondary:hover { background: white; color: #667eea; transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); }

.hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; animation: fadeInUp 1s ease-out 0.8s both; }
.stat-item { text-align: center; color: white; }
.stat-number {
  display: block; font-size: 2rem; font-weight: 900; margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.95; }

/* ===== Features Showcase ===== */
.features-showcase { padding: 6rem 0; background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-size: 2.25rem; font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1rem; animation: fadeInDown 0.8s ease-out;
}
.section-subtitle { font-size: 1.125rem; color: #6c757d; animation: fadeInUp 0.8s ease-out 0.2s both; }

.features-grid { display: flex; flex-direction: column; gap: 5rem; }
.feature-card { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; animation: fadeInUp 0.8s ease-out; }
.feature-card-left { grid-template-areas: "content image"; }
.feature-card-right { grid-template-areas: "image content"; }
.feature-card-center { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; text-align: center; }
.feature-content { animation: slideInLeft 0.8s ease-out; }
.feature-card-right .feature-content { animation: slideInRight 0.8s ease-out; }
.feature-content-center { margin-bottom: 2rem; }

.feature-icon-wrapper {
  width: 60px; height: 60px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); animation: bounce 2s ease-in-out infinite;
}
.feature-card-center .feature-icon-wrapper { margin: 0 auto 1.5rem; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.feature-icon { color: white; }

.feature-title { font-size: 1.75rem; font-weight: 800; color: #212529; margin-bottom: 1rem; }
.feature-description { font-size: 1.05rem; color: #6c757d; margin-bottom: 1.25rem; line-height: 1.6; }

.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.5rem 0; color: #495057; position: relative; padding-left: 2rem; font-weight: 500; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 700; font-size: 1.2rem; }

.feature-image, .feature-image-center { position: relative; animation: slideInRight 0.8s ease-out; }
.feature-card-right .feature-image { animation: slideInLeft 0.8s ease-out; }

.screenshot {
  width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: zoom-in;
}
.screenshot:hover { transform: scale(1.02); box-shadow: 0 25px 80px rgba(102, 126, 234, 0.25); }
.image-decoration { position: absolute; top: -20px; right: -20px; width: 100px; height: 100px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; opacity: 0.1; animation: float 4s ease-in-out infinite; }

/* ===== Lightbox ===== */
.pv-lightbox {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); z-index: 1050;
}
.pv-lightbox.is-open { display: flex; }
.pv-lightbox-image {
  max-width: 92vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.pv-lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 20px;
  border: none; background: rgba(255,255,255,0.2); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(2px);
}

/* ===== Brands Section (4 marques) ===== */
.brands-section { padding: 4rem 0; background: white; }
.brands-section .section-title { text-align: center; margin-bottom: 2rem; font-size: 1.75rem; }
.brands-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: 900px; margin: 0 auto;
}
.brand-item {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  padding: 1.25rem; border-radius: 1rem; text-align: center; font-weight: 700; color: #495057;
  transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.brand-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(102,126,234,0.2); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }

/* ===== Animations utilitaires ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* ===== Classes pour JavaScript (CSP-safe) ===== */
.element-hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.visible { opacity: 1 !important; transform: translateY(0) !important; }
.brand-item.animated { animation: fadeInScale 0.5s ease forwards; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.screenshot-hover { transform: scale(1.05) rotate(0.5deg); }
.screenshot-normal { transform: scale(1) rotate(0deg); }

/* Particules flottantes */
.hero-particle { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; pointer-events: none; animation: floatParticle 10s linear infinite; }
@keyframes floatParticle {
  from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  to { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-title-main { font-size: 3.5rem; }
  .hero-title-sub { font-size: 1.25rem; }
  .feature-card { grid-template-columns: 1fr; gap: 2rem; }
  .feature-card-left, .feature-card-right { grid-template-areas: "content" "image"; }
  .feature-content { text-align: center; }
  .feature-icon-wrapper { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
  .hero-section { min-height: 80vh; }
  .hero-title-main { font-size: 2.5rem; }
  .hero-title-sub { font-size: 1rem; }
  .hero-description { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-hero { width: 100%; max-width: 300px; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.6rem; }
  .section-title { font-size: 1.75rem; }
  .feature-title { font-size: 1.35rem; }
  .feature-description { font-size: 0.98rem; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .brand-item { padding: 1rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .hero-title-main { font-size: 2rem; letter-spacing: -1px; }
  .btn-hero { padding: 0.875rem 1.5rem; font-size: 1rem; }
}
