@charset "UTF-8";

/* =========================================================
   PRODUITS — CLEAN REWRITE
   - Same page hooks preserved for current HTML/JS
   - Repetition reduced
   - Mobile/desktop behavior consolidated
   ========================================================= */

/* =========================================================
   GLOBAL PAGE RHYTHM
   ========================================================= */

section {
  min-height: 80vh;
}

.product-section,
.compote-section,
.juice-section-split {
  background: var(--bg-light);
  padding: 8rem 0;
}

.product-section,
.compote-section {
  overflow: visible;
}

/* =========================================================
   PRODUCT LAYOUT
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "header carousel"
    "body carousel";
  column-gap: 4rem;
  row-gap: 1.8rem;
  align-items: start;
}

.product-header {
  grid-area: header;
}

.product-body {
  grid-area: body;
}

.product-text,
.juice-text-left {
  flex: 1 1 50%;
  max-width: 600px;
}

.product-grid > .puree-carousel,
.product-grid > .compote-carousel {
  grid-area: carousel;
  align-self: flex-start;
}

h2.script-title {
  margin-top: -1rem;
  margin-bottom: 1.8rem;
}

.tablet-break,
.mobile-break {
  display: none;
}

/* =========================================================
   SHARED PRODUCT CAROUSEL SYSTEM
   Applies to .puree-carousel and .compote-carousel
   ========================================================= */

.puree-carousel,
.compote-carousel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 50%;
}

.puree-carousel {
  gap: 1.5rem;
  height: clamp(250px, 30vw, 350px);
}

.compote-carousel {
  height: clamp(250px, 30vw, 350px);
}

.carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}

.carousel-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(250px, 30vw, 350px);
  aspect-ratio: 1 / 1;
}

.carousel-wrapper {
  width: clamp(250px, 30vw, 350px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.puree-carousel .carousel-wrapper {
  overflow: hidden;
  border-radius: 50%;
}

.compote-section .carousel-wrapper,
.compote-carousel .carousel-wrapper {
  overflow: visible;
  border-radius: 0;
}

.carousel-track {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.compote-section .carousel-track,
.compote-carousel .carousel-track {
  overflow: visible;
}

.carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel-item.active {
  opacity: 1;
}

.puree-carousel .carousel-item img {
  width: 125%;
  height: auto;
  object-fit: cover;
  transform-origin: center;
}

.compote-section .carousel-item,
.compote-carousel .carousel-item {
  pointer-events: none;
  z-index: 0;
}

.compote-section .carousel-item.active,
.compote-carousel .carousel-item.active {
  pointer-events: auto;
  z-index: 1;
}

.compote-section .carousel-item img,
.compote-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  transform: scale(1.1);
}

.fruit-label {
  position: relative;
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-color);
}

.carousel-arrow {
  position: absolute;
  top: 43%;
  z-index: 3;
  border: none;
  background: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-arrow img {
  display: block;
  width: 1rem;
  height: auto;
}

.carousel-arrow.left {
  left: -1.5rem;
}

.carousel-arrow.right {
  right: -1.5rem;
}

/* Legacy wider spacing kept for purée desktop */
.puree-carousel .carousel-arrow.left {
  left: -1.5rem;
}

.puree-carousel .carousel-arrow.right {
  right: -1.5rem;
}



.compote-section .carousel-arrow.left,
.compote-carousel .carousel-arrow.left {
  left: 2rem;
}

.compote-section .carousel-arrow.right,
.compote-carousel .carousel-arrow.right {
  right: 2rem;
}


.compote-section .carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}

.carousel-item img {
  display: block;
}

.compote-section .fruit-label {
  position: relative;
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-color);
}

.compote-section .carousel-arrow img {
  display: block;
  width: 1rem;
  height: auto;
}

.juice-full-frame {
  margin-bottom: 0;
}

/* =========================================================
   INDUSTRIAL FULL-WIDTH CAROUSEL
   ========================================================= */

.industrial-carousel {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.carousel-industrial-container {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}

.carousel-industrial-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-industrial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  height: 80vh;
  overflow: hidden;
}

.carousel-industrial-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
}

/* Legacy button hooks kept intact */
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  padding: 0 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 3rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-light);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dots .dot.active {
  background: var(--brand-orange);
}

/* =========================================================
   LEGACY JUICE HERO BLOCK (kept for compatibility)
   ========================================================= */

.juice-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 700px;
  padding: 4rem 6rem;
  box-sizing: border-box;
  background: url('../images/produits/produit_full_section_presse.jpg') no-repeat center center;
  background-size: cover;
}

.juice-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 550px;
  padding: 2.5rem;
  border-radius: 2rem 0 0 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

.juice-text h2 {
  margin-bottom: 0.8rem;
}

.juice-text .script-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-script);
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-orange);
}

/* =========================================================
   JUICE SPLIT SECTION (current HTML)
   ========================================================= */

.juice-grid {
  display: block;
}

.juice-text-left {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 6rem;
  text-align: center;
}

.juice-text-left h2 {
  margin-bottom: 0.8rem;
}

.juice-text-left .script-title {
  margin-bottom: 4rem;
  font-family: var(--font-script);
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-orange);
}

.juice-text-left p {
  margin-bottom: 2rem;
}

.juice-text-left .prose {
  margin-left: auto;
  margin-right: auto;
}

.juice-image {
  width: 100vw;
  margin-left: 50%;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  transform: translateX(-50%);
}

.juice-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
}

@media (min-width: 769px) {
  .juice-section-split {
    padding-bottom: 0;
  }

  .juice-image {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
  }
}

/* =========================================================
   TABLET + MOBILE
   ========================================================= */

@media (max-width: 1024px) {
	
	.tablet-break {
    display: inline;
  }
	
  .product-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "carousel"
      "body";
    gap: 1.6rem;
  }

  .product-header,
  .product-body {
    padding: 0 1.25rem;
    text-align: center;
  }

  .product-body {
    margin-top: 6rem;
  }

  .puree-carousel {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .compote-carousel {
    margin-top: 4.5rem;
  }

  .product-header,
  .product-body,
  .juice-text-left {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .product-body.prose,
  .juice-text-left .prose {
    max-width: var(--p-measure);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .product-body.prose p,
  .juice-text-left .prose p {
    text-align: inherit;
  }
	
		.compote-carousel .carousel-item img {
    transform: scale(1.3);
	}
	
	.compote-section .fruit-label {
  margin-top: 4.4rem; /* was 2rem */
}
	
	.compote-section .product-body {
    margin-top: 9rem;
  }
	

}

@media (max-width: 768px) {
  section {
    min-height: auto;
  }

  .product-section,
  .compote-section,
  .juice-section-split {
    padding: 4.5rem 0;
  }

  .product-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
  }

  .product-text {
    max-width: none;
    padding: 0 1.25rem;
  }

  .puree-carousel,
  .compote-carousel {
    height: auto;
  }

  .carousel-container {
    padding: 0 1rem;
  }

  .carousel-arrow.left,
  .carousel-arrow.right {
    transform: translateY(-50%);
  }

  .carousel-arrow.left {
    left: 0.75rem;
  }

  .carousel-arrow.right {
    right: 0.75rem;
  }

  .carousel-industrial-container {
    max-height: none;
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .carousel-industrial-track,
  .carousel-industrial-slide {
    height: 100%;
  }

  .carousel-industrial-slide {
    aspect-ratio: 3 / 4;
    min-height: auto;
  }

  .carousel-industrial-slide img {
    object-position: center 40%;
  }

  .product-text h2,
  .product-text .script-title,
  .juice-text-left h2,
  .juice-text-left .script-title,
  .product-text p,
  .juice-text-left p {
    text-align: center;
  }

  .puree-carousel {
    order: -1;
    height: calc(clamp(250px, 30vw, 350px) * 1.05);
  }

  .puree-carousel .carousel-frame,
  .puree-carousel .carousel-wrapper {
    width: calc(clamp(250px, 30vw, 350px) * 1.05);
  }

  .puree-carousel .carousel-arrow {
    padding: 0.5rem;
  }

  .puree-carousel .carousel-arrow img,
  .compote-carousel .carousel-arrow img {
    width: 1.6rem;
    height: auto;
  }

  .puree-carousel .carousel-arrow.left {
    left: -5rem;
  }

  .puree-carousel .carousel-arrow.right {
    right: -5rem;
  }

  .compote-carousel {
    height: calc(clamp(250px, 30vw, 350px) * 1.15);
  }
	

  .compote-carousel .carousel-wrapper {
    width: calc(clamp(250px, 30vw, 350px) * 1.15);
  }
	
  .compote-carousel .carousel-arrow {
    padding: 0.5rem;
  }

  .compote-carousel .carousel-arrow.left {
    left: -2rem;
  }

  .compote-carousel .carousel-arrow.right {
    right: -2rem;
  }

  .juice-section-split {
    padding-bottom: 0;
  }

  .juice-text-left {
    max-width: none;
    margin-bottom: 0;
    padding-bottom: 5rem;
  }

  .juice-image {
    aspect-ratio: 3 / 4;
    height: auto;
  }
	
	 .product-grid > .puree-carousel,
  .product-grid > .compote-carousel {
    justify-self: center;
    width: 100%;
  }

  .puree-carousel,
  .compote-carousel {
    justify-content: center;
  }

  .carousel-container {
    margin-left: auto;
    margin-right: auto;
  }
	
	  .puree-carousel {
    order: 0;
  }
	
		.product-body {
    margin-top: 1rem;
  }
	
	.compote-section .product-body {
    margin-top: 2rem;
  }
	

}
	
	


/* =========================================================
   SMALL MOBILE TYPOGRAPHY HELPERS
   ========================================================= */


@media (max-width: 767px) {
  .produits-intro,
  .produits-section .text,
  .produits-section p {
    max-width: 50ch !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  
  .compote-carousel .carousel-arrow.left {
    left: 2rem;
  }


  .compote-carousel .carousel-arrow.right {
    right: 2rem;
  }
	
	.puree-carousel .carousel-arrow.left {
    left: -2.2rem;
  }

  .puree-carousel .carousel-arrow.right
   {
    right: -2.2rem;
  }

  .puree-carousel .carousel-arrow,
  .compote-carousel .carousel-arrow {
    top: 41%;
    transform: translateY(-50%);
    padding: 0.5rem;
  }

  .puree-carousel .carousel-arrow img,
  .compote-carousel .carousel-arrow img {
    width: 1.25rem;
    height: auto;
  }
}

@media (max-width: 768px) {
  .puree-carousel .carousel-frame,
  .puree-carousel .carousel-wrapper {
    width: 230px;
  }

  .puree-carousel {
    height: 230px;
  }

  .puree-carousel .carousel-item img {
    width: 118%;
  }
}

@media (max-width: 768px) {
  h2.script-title {
    margin-bottom: 0.5rem;
  }

  .puree-carousel {
    margin-top: 0.5rem;
  }

  .compote-carousel {
    margin-top: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
}

.juice-text-left .script-title {
	margin-top: .05rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .compote-section .section-title {
    font-size: 3rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}

@media (max-width: 768px){

  .carousel-dots{
    bottom: 3rem;
    gap: 3rem;
  }

  .carousel-dots .dot{
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1.4px solid #fff;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
  }

  .carousel-dots .dot.active{
    background: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
  }

}
