/* =====================================
   SECTION CARROUSEL (SIMPLE 2D) + ANIMATIONS
   ===================================== */
.carousel-section {
  background: var(--color-light-beige);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 32px 16px;
  margin-top: 40px;
  text-align: center;
  animation: fadeInUp 0.9s cubic-bezier(0.23, 1.02, 0.32, 1) forwards;
}

.carousel-section h2 {
  font-size: 1.4rem;
  color: var(--color-dark-text);
  font-weight: 700;
  margin-bottom: 24px;
}

.carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  display: flex;
  gap: 0px;
  transition: transform 0.6s cubic-bezier(0.23, 1.02, 0.32, 1);
  will-change: transform;
  width: 840px;
  height: 340px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.carousel-container.transitioning {
  animation: carousel-slide 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item {
  flex: 0 0 260px;
  width: 260px;
  height: 340px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.3s, 
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.carousel-item.slide-in-left {
  animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-item.slide-in-right {
  animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-item.slide-out-left {
  animation: slideOutToLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-item.slide-out-right {
  animation: slideOutToRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-item:nth-child(1) {
  transform: translateX(-60px) scale(0.75);
  opacity: 0.6;
}

.carousel-item:nth-child(2) {
  transform: scale(1);
  z-index: 3;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.carousel-item:nth-child(3) {
  transform: translateX(60px) scale(0.75);
  opacity: 0.6;
}

.carousel-item:hover {
  box-shadow: 0 8px 32px rgba(168, 140, 107, 0.18);
}

.carousel-item a {
  text-decoration: none;
  color: inherit;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 2px solid var(--color-light-beige);
}

.carousel-item p {
  margin: 0;
  padding: 14px 8px 12px 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-text);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
  width: 100%;
}

.carousel-btn {
  background: var(--color-medium-beige);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  color: var(--color-dark-text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--color-dark-beige);
  color: #fff;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Animations du carrousel */
@keyframes carousel-slide {
  0% { transform: translateX(0); }
  50% { transform: translateX(-20px); }
  100% { transform: translateX(0); }
}

@keyframes slideInFromLeft {
  0% { 
    transform: translateX(-100px) scale(0.6);
    opacity: 0;
  }
  100% { 
    transform: translateX(-60px) scale(0.75);
    opacity: 0.6;
  }
}

@keyframes slideInFromRight {
  0% { 
    transform: translateX(100px) scale(0.6);
    opacity: 0;
  }
  100% { 
    transform: translateX(60px) scale(0.75);
    opacity: 0.6;
  }
}

@keyframes slideOutToLeft {
  0% { 
    transform: translateX(-60px) scale(0.75);
    opacity: 0.6;
  }
  100% { 
    transform: translateX(-150px) scale(0.5);
    opacity: 0;
  }
}

@keyframes slideOutToRight {
  0% { 
    transform: translateX(60px) scale(0.75);
    opacity: 0.6;
  }
  100% { 
    transform: translateX(150px) scale(0.5);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .carousel-wrapper {
    height: 280px;
  }
  .carousel-container {
    width: 240px;
    height: 260px;
  }
  .carousel-item {
    width: 220px;
    height: 260px;
  }
  .carousel-item:nth-child(1) {
    transform: translateX(0px) scale(1);
    opacity: 1;
  }
  .carousel-item:nth-child(2),
  .carousel-item:nth-child(3) {
    display: none;
  }
  .carousel-item img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    gap: 10px;
  }
  .carousel-item {
    flex: 0 0 90vw;
    max-width: 320px;
  }
  .carousel-item img {
    height: 120px;
  }
  .carousel-section {
    padding: 18px 2px;
  }
}

@media (max-width: 400px) {
  .carousel-item {
    flex: 0 0 98vw;
    max-width: 99vw;
  }
  .carousel-item img {
    height: 90px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 