/* ========================================
   SOPRINTY - HOME PAGE CUSTOM STYLES
   ======================================== */

/* ====== PALETTE DE COULEURS - HARMONIE LOGO ======
   Les variables sont centralisées dans style.css
   Ici on utilise var(--primary) = #48c9b0 et var(--accent) = #ec7063
====================================================== */

/* ========== COMPACT HERO SECTION ========== */
.hero {
  padding: 2rem 0 1.5rem 0 !important;
  min-height: auto !important;
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 50%, #f0f9f9 100%) !important;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem !important;
  background: var(--primary) !important;
  backdrop-filter: blur(10px);
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: white !important;
  margin-bottom: 1rem !important;
}

.hero-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
  color: var(--text-primary) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-clip: unset !important;
}

.hero-description {
  font-size: 1.1rem !important;
  line-height: 1.6;
  margin-bottom: 2.5rem !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary) !important;
}

.hero-cta {
  margin-bottom: 1.5rem !important;
  gap: 1rem !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS - STYLE LOGO ========== */
/* Bouton principal - Teal du logo #48c9b0 */
.hero-cta .btn-primary {
  background: var(--primary) !important;
  color: white !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  padding: 1.1rem 2.8rem !important;
  box-shadow: 0 8px 24px rgba(72, 201, 176, 0.3) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  border-radius: 50px !important;
}

.hero-cta .btn-primary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(72, 201, 176, 0.4) !important;
}

.hero-cta .btn-primary i {
  margin-right: 0.6rem;
  font-size: 1rem;
}

/* Bouton secondaire plus discret */
.hero-cta .btn-secondary {
  background: white !important;
  color: var(--primary) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  padding: 0.7rem 1.3rem !important;
  border: 2px solid var(--primary) !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
}

.hero-cta .btn-secondary:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(72, 201, 176, 0.3) !important;
}

.hero-cta .btn-secondary i {
  margin-right: 0.4rem;
  font-size: 0.85rem;
}

/* ========== HERO LEARN LINK ========== */
.hero-learn-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.hero-learn-link:hover {
  color: var(--accent);
}

/* ========== STATS ========== */
.hero-stats {
  padding: 1rem 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(72, 201, 176, 0.2);
}

.stat-number {
  font-size: 1.8rem !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.stat-label {
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
}

/* ========== BOOTSTRAP ICONS IN HERO ========== */
.hero-badge i {
  color: var(--bg-light);
  font-size: 0.7rem;
  animation: sparkle 2.5s ease-in-out infinite;
  display: inline-block;
}

.hero-title i {
  color: var(--accent);
}

.stat-number i {
  color: var(--accent);
  margin-right: 0.3rem;
  font-size: 1.5rem;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(12deg);
  }
}

/* Gradient text for title - accent rouge du logo */
.gradient-text {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--accent) !important;
  background-clip: unset !important;
  color: var(--accent) !important;
}

/* ========== FLOATING EMOJIS ========== */
.floating-emoji {
  position: absolute;
  font-size: 3rem !important;
  animation: float 3s ease-in-out infinite !important;
}

.floating-emoji:nth-child(1) {
  animation-delay: 0s;
  top: 10%;
  left: 10%;
}
.floating-emoji:nth-child(2) {
  animation-delay: 0.5s;
  top: 20%;
  right: 15%;
}
.floating-emoji:nth-child(3) {
  animation-delay: 1s;
  top: 60%;
  left: 5%;
}
.floating-emoji:nth-child(4) {
  animation-delay: 1.5s;
  top: 70%;
  right: 10%;
}
.floating-emoji:nth-child(5) {
  animation-delay: 2s;
  top: 40%;
  right: 5%;
}
.floating-emoji:nth-child(6) {
  animation-delay: 2.5s;
  top: 30%;
  left: 20%;
}
.floating-emoji:nth-child(7) {
  animation-delay: 3s;
  top: 80%;
  right: 20%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(8deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* ========== COMPACT GALLERY SECTION ========== */
.gallery-preview {
  padding: 1.5rem 0 !important;
  background: linear-gradient(180deg, #f0f9f9 0%, white 100%);
}

.gallery-preview .section-header {
  margin-bottom: 1.5rem !important;
}

.gallery-preview .section-title {
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
  color: var(--text-primary) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-clip: unset !important;
  font-weight: 700 !important;
}

.gallery-preview .section-subtitle {
  font-size: 1rem !important;
  margin-bottom: 0 !important;
  color: var(--text-secondary) !important;
}

/* ========== 5 COLUMNS GRID ========== */
.preview-grid-5cols {
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.preview-card {
  aspect-ratio: 5/7 !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(72, 201, 176, 0.1) !important;
}

.preview-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 12px 24px rgba(236, 112, 99, 0.2) !important;
}

/* Button in gallery */
.gallery-preview .btn-secondary {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.9rem 2rem !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 20px rgba(72, 201, 176, 0.25) !important;
}

.gallery-preview .btn-secondary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(72, 201, 176, 0.35) !important;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 1400px) {
  .preview-grid-5cols {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .preview-grid-5cols {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 768px) {
  .preview-grid-5cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero-title {
    font-size: 2rem !important;
    padding: 2rem 0.1rem 1rem 0.1rem;
  }

  .hero {
    padding: 1.5rem 0 1rem 0 !important;
  }

  .hero-cta .btn-primary {
    font-size: 1.05rem !important;
    padding: 1rem 2.3rem !important;
  }

  .hero-cta .btn-secondary {
    font-size: 0.85rem !important;
    padding: 0.65rem 1.2rem !important;
  }

  .hero-badge {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 480px) {
  .preview-grid-5cols {
    grid-template-columns: 1fr !important;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 90%;
    max-width: 320px;
  }
}
