/* Cité Colombe 3 - Custom Styles */

/* Smooth animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out;
}

.animate-slide-in-left {
  animation: slide-in-left 0.8s ease-out;
}

.animate-zoom-in {
  animation: zoom-in 0.8s ease-out;
}

/* Parallax effect */
.parallax-bg {
  transition: transform 0.5s ease-out;
}

/* Image hover effects */
.image-zoom {
  transition: transform 0.4s ease-in-out;
}

.image-zoom:hover {
  transform: scale(1.05);
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button hover effects */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom prose styles */
.prose p {
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.hover-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
  /* Typography mobile */
  h1 {
    font-size: 1.875rem !important; /* 30px */
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.25rem !important; /* 20px */
  }
  
  p, .text-lg {
    font-size: 1rem !important; /* 16px */
  }
  
  /* Buttons mobile */
  .cta-button {
    font-size: 1rem !important;
    padding: 0.875rem 2rem !important;
    width: 100%;
    max-width: 100%;
    display: block;
    text-align: center;
  }
  
  /* Hero section mobile */
  section {
    padding: 3rem 1rem !important;
  }
  
  /* Stats grid mobile */
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  /* Cards mobile */
  .hover-card {
    padding: 1rem !important;
  }
  
  /* Spacing mobile */
  .mb-8 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-12 {
    margin-bottom: 2rem !important;
  }
  
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Feature icons mobile */
  .feature-icon {
    width: 3rem;
    height: 3rem;
  }
  
  /* Glass cards mobile */
  .glass, .glass-dark {
    padding: 1rem !important;
    border-radius: 1rem;
  }
  
  /* Stats mobile */
  .text-4xl {
    font-size: 2rem !important;
  }
  
  /* Floating badge mobile */
  .floating-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Small mobile (< 640px) */
@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem !important; /* 24px */
  }
  
  h2 {
    font-size: 1.25rem !important; /* 20px */
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
  
  section {
    padding: 2rem 1rem !important;
  }
  
  /* Hide pattern on very small screens */
  .wave-divider {
    display: none;
  }
  
  /* Compact stats */
  .grid-cols-2 {
    gap: 0.75rem;
  }
  
  .text-4xl {
    font-size: 1.5rem !important;
  }
  
  .text-sm {
    font-size: 0.75rem !important;
  }
}

/* WhatsApp button pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.cta-button:not(:hover) {
  animation: pulse 2s infinite;
}

/* Section transitions */
section {
  opacity: 0;
  animation: fade-in 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }

/* Image gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Shimmer effect for loading */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Feature icon styles */
.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.4);
}

