/* ============================================
   KATUISCIA — Home Page Styles (v2 maquette)
   ============================================ */

/* ==== HERO WITH SLIDESHOW ==== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-cream);
  z-index: 0;
}

.hero__bg-left {
  position: absolute;
  top: 15%; right: 10%;
  width: 450px; height: 500px;
  background: var(--color-warm);
  border-radius: var(--radius-3xl, 40px);
  transform: rotate(-2deg);
}

.hero__bg-right {
  display: none;
}

.hero__content {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

.hero__text { max-width: 500px; }

.hero__subtitle {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
  word-break: break-word;
}

.hero__title em {
  font-family: var(--font-heading);
  font-style: normal;
  color: var(--color-warm);
}

.hero__description {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* ---- Slide product tag ---- */
.hero__slide-tag {
  background: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  max-width: 280px;
}

.hero__slide-tag-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__slide-tag-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hero__slide-tag-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
  transition: opacity 0.3s ease;
}

.hero__slide-tag-price {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-warm);
}

/* ---- Hero Slideshow ---- */
#hero-slideshow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  overflow: visible !important;
}

.hero-slide {
  position: absolute;
  opacity: 0;
  display: none;
  width: 380px !important;
  height: 380px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 60px rgba(61,43,43,0.18), 0 8px 24px rgba(61,43,43,0.10) !important;
  transform: rotate(3deg) !important;
  transition: transform 0.65s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.65s cubic-bezier(0.23,1,0.32,1),
              opacity 0.65s cubic-bezier(0.23,1,0.32,1) !important;
  flex-shrink: 0;
  pointer-events: none;
}

.hero-slide.active {
  display: block !important;
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Au survol : cadre se redresse et légère montée */
.hero-slide.active:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 0 32px 70px rgba(61,43,43,0.22), 0 12px 30px rgba(61,43,43,0.12) !important;
}

/* Image dans le slide : remplie en cover */
.hero-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.65s cubic-bezier(0.23,1,0.32,1) !important;
  max-width: none !important;
}

.hero-slide.active:hover img {
  transform: scale(1.06) !important;
}

/* Slide sortant (transition out) */
.hero-slide.exiting {
  display: block !important;
  position: absolute !important;
  opacity: 0 !important;
  transform: rotate(3deg) scale(0.92) !important;
  pointer-events: none !important;
}

/* Slide dots */
.hero-dot {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-dark);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  padding: 0;
}

.hero-dot.active {
  background: var(--color-dark);
  width: 28px;
  border-radius: 5px;
}

/* Floating accents */
.hero-float {
  position: absolute;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px rgba(61,43,43,0.15), 0 4px 12px rgba(61,43,43,0.08) !important;
  z-index: 20;
  flex-shrink: 0;
  display: none;
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero-float {
    display: block;
  }
}

.hero-float img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  max-width: none !important;
}

/* Image flottante haut-droite */
.hero-float--top {
  width: 118px !important;
  height: 118px !important;
  top: 15px !important;
  right: -28px !important;
}

/* Image flottante bas-gauche */
.hero-float--bottom {
  width: 105px !important;
  height: 105px !important;
  bottom: 45px !important;
  left: -36px !important;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==== SHOWCASE (Best-Sellers — style maquette) ==== */
.showcase {
  background: var(--color-white);
  padding: var(--space-4xl) 0;
}

.showcase__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  padding-bottom: var(--space-xl); /* For overlapping tags */
}

.showcase__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  width: 320px;
  transition: transform var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.showcase__item:hover {
  transform: translateY(-8px);
}

.showcase__img-wrapper {
  width: 100%;
  height: 400px;
  background-color: var(--color-gray-medium);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  transition: background-color var(--duration-normal) var(--ease-out);
}

.showcase__item--tall .showcase__img-wrapper {
  height: 460px;
}

.showcase__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(61, 43, 43, 0.15));
  transition: transform var(--duration-normal) var(--ease-out);
}

.showcase__item:hover .showcase__img {
  transform: scale(1.06);
}

.showcase__label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.showcase__category {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.showcase__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
}

/* Mobile-only: dots + swipe hint — hidden on desktop */
.showcase__indicators {
  display: none;
}

.showcase__swipe-hint {
  display: none;
}

/* ==== CURATED SELECTION (gammes + prix, grille maquette) ==== */
.curated {
  padding: var(--space-4xl) 0;
}

.curated__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.curated__card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.curated__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.curated__card--large {
  grid-row: span 2;
}

.curated__card-img {
  width: 100%;
  overflow: hidden;
}

.curated__card--large .curated__card-img {
  height: 100%;
}

.curated__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.curated__card:hover .curated__card-img img {
  transform: scale(1.06);
}

/* Large card overlay */
.curated__card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(61, 43, 43, 0.6), transparent);
  color: var(--color-white);
}

.curated__card-price {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  background: var(--color-white);
  color: var(--color-dark);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

/* Small cards with info below */
.curated__card-info {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curated__card-cat {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.curated__card-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
}

.curated__card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.curated__card-price-tag {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-top: 4px;
}

.curated__cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ==== SHOP PREVIEW (cards avec hover zoom) ==== */
.shoppreview {
  background: var(--color-white);
  padding: var(--space-4xl) 0;
}

.shoppreview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ==== PHILOSOPHY (fidèle maquette) ==== */
.philosophy {
  padding: var(--space-4xl) 0;
  background: var(--color-peach);
  overflow: hidden;
}

.philosophy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: stretch;
}

.philosophy__visual {
  position: relative;
  min-height: 600px;
}

.philosophy__img-main {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.philosophy__img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy__img-product {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 160px;
  z-index: 2;
}

.philosophy__img-product img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.philosophy__content {
  padding: var(--space-4xl) var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.philosophy__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-warm);
  margin-bottom: var(--space-md);
}

.philosophy__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: 1.05;
  color: var(--color-dark);
  margin-bottom: var(--space-xl);
}

.philosophy__text {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 460px;
}

.philosophy__quote {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
}

.philosophy__quote-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.philosophy__quote-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.philosophy__quote-text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-dark);
  line-height: var(--leading-relaxed);
}

/* ==== FEATURES BAR ==== */
.features {
  background: var(--color-white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
}

.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.features__icon {
  width: 40px; height: 40px;
  color: var(--color-warm);
}

.features__icon svg {
  width: 100%; height: 100%;
  stroke-width: 1.2;
}

.features__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-dark);
}

.features__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: var(--text-4xl);
  }
  .showcase__track {
    gap: var(--space-xl);
    justify-content: flex-start;
    padding: 0 var(--space-xl);
  }
  .showcase__item { width: 260px; }
  .showcase__item--tall .showcase__img-wrapper { height: 380px; }
  .showcase__img-wrapper { height: 320px; }
  .curated__grid { grid-template-columns: 1fr 1fr; }
  .curated__card--large { grid-row: span 1; grid-column: span 2; }
  .shoppreview__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height-mobile) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: 0 var(--space-md);
  }

  .hero__bg-left {
    width: 100%; height: 60%;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .hero__title { font-size: var(--text-3xl); }

  .hero__slideshow {
    order: -1;
    min-height: 350px;
  }

  .hero__slide-img { max-width: 260px; }
  .hero__image-float { display: none; }

  /* -- Showcase Mobile Carousel -- */
  .showcase {
    padding: var(--space-3xl) 0;
    overflow: hidden;
  }

  .showcase .section-header {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-2xl);
  }

  .showcase__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: var(--space-md);
    /* Visible overflow for snap scroll */
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 var(--space-md);
    padding-bottom: 56px; /* Space for floating label */
    /* Snap scrolling */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    /* Scroll momentum */
    scroll-behavior: smooth;
  }

  .showcase__track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .showcase__item {
    flex: 0 0 72vw;
    max-width: 300px;
    width: 72vw;
    scroll-snap-align: center;
    /* Add subtle scale for non-active items via sibling trick not possible in pure CSS;
       Instead we give each item a clean card look on mobile */
  }

  .showcase__item--tall .showcase__img-wrapper {
    height: 320px;
  }

  .showcase__img-wrapper {
    height: 280px;
    border-radius: var(--radius-xl);
    /* Slightly lighter background for mobile */
    background: linear-gradient(145deg, var(--color-gray-medium), #E0DDD8);
  }

  .showcase__label {
    min-width: 0;
    width: calc(100% - var(--space-xl));
    left: var(--space-md);
    transform: none;
    bottom: -18px;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .showcase__category {
    font-size: 0.6rem;
  }

  .showcase__name {
    font-size: var(--text-base);
  }

  /* Scroll hint arrow after track */
  .showcase__track::after {
    content: '';
    flex: 0 0 var(--space-md);
    /* Creates trailing padding */
  }

  /* Dots indicator */
  .showcase__indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-3xl); /* offset for floating labels */
    padding-top: var(--space-md);
  }

  .showcase__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--color-gray-medium);
    cursor: pointer;
    padding: 0;
    transition: all var(--duration-normal) var(--ease-out);
  }

  .showcase__dot--active {
    background: var(--color-dark);
    width: 24px;
    border-radius: 4px;
  }

  /* Swipe hint */
  .showcase__swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-sm);
    animation: swipeHint 2s ease-in-out 1s forwards;
    opacity: 1;
  }

  @keyframes swipeHint {
    0% { opacity: 1; transform: translateX(0); }
    30% { opacity: 1; transform: translateX(6px); }
    60% { opacity: 0.5; transform: translateX(0); }
    100% { opacity: 0; }
  }

  .showcase__swipe-hint svg {
    animation: swipeArrow 2s ease-in-out 1s infinite;
  }

  @keyframes swipeArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }

  .curated__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }

  .curated__card--large { grid-column: span 1; }

  .shoppreview__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }

  .philosophy__inner {
    grid-template-columns: 1fr;
  }

  .philosophy__visual { min-height: 300px; }
  .philosophy__img-product { width: 100px; bottom: -10px; right: 10px; }
  .philosophy__content { padding: var(--space-2xl) var(--space-md); }
  .philosophy__title { font-size: var(--text-3xl); }

  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .shoppreview__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: var(--text-2xl); }
  .showcase__item {
    flex: 0 0 80vw;
    max-width: 280px;
  }
  .showcase__img-wrapper { height: 260px; }
  .showcase__item--tall .showcase__img-wrapper { height: 300px; }
}
