/* --- Diaporama Section --- */
@keyframes kenburns-zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.diaporama {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 0;
}

.diaporama-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 0.5s ease-out; /* Slower, smoother fade for cross-fade */
}

.diaporama-image.active {
    opacity: 1;
    z-index: 1;
    animation: kenburns-zoom 5s ease-in-out forwards; /* 2.5s zoom-in, 2.5s zoom-out */
}

.diaporama h2 {
    position: absolute;
    text-align: center;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    z-index: 2; /* Above images */
    font-size: 2.5rem;
    padding: 0 1rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.diaporama h2.active {
    opacity: 1;
}

/* --- Featured Products Section --- */
.presentation {
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.featured-products-section {
    margin-bottom: 2rem;
    /* text-align: center; This is not needed if the container is full width */
}

.featured-products-section h2 {
    text-align: center; /* Center the title */
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--color-text);
}

.featured-products-container {
    display: flex;
    width: 100%; /* Full width */
    height: 300px; /* Fixed height for the container */
    gap: 2px; /* A small gap between cards */
}

.featured-product-card {
    position: relative;
    /* border-radius: 20px; Removed from here */
    overflow: hidden;
    cursor: pointer;
    flex: 1; /* Equal width by default */
    transition: flex 0.7s ease-in-out;
    background-color: #fff;
}

.product-link {
    display: block;
    text-decoration: none;
    color: white;
    width: 100%;
    height: 100%;
}

.product-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the entire image is visible */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out; /* Add transform to transition */
}

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

.featured-product-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1.5rem;
    margin: 0;
    opacity: 0; /* Default opacity for desktop */
    transition: opacity 0.3s ease-in-out 0.4s;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: white;
}


/* --- Video and Reviews Section --- */
.video-reviews-wrapper {
    display: flex;
    flex-direction: column; /* Stacked on mobile */
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 2rem; /* Add some padding for the content below */
}

.video-container {
    display: none; /* Hidden on mobile by default */
}

.btn-style503 {
  border: 1px solid #dd7e2a;
  color: black;
  transition: all 0.5s;
  padding: 10px 15px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 1.3em;
  display: inline-block;
  background-color: transparent;
}

.btn-style503 a{
  text-decoration: none;
  color: inherit;
}

.btn-style503:hover {
  box-shadow: inset 5em 0 0 0 #dd7e2a, inset -5em 0 0 0 #dd7e2a;
  border-color: #dd7e2a;
  color: #fff;
}

.video-container video {
    width: 100%;
    border-radius: 8px;
}

/* --- Media Queries --- */

/* On smaller screens, stack them vertically */
@media (max-width: 768px) {
    .featured-products-container {
        flex-direction: column;
        height: auto;
        width: 100%; /* Full width on mobile too */
        gap: 2px;
    }

    .featured-product-card {
        flex: 1;
        height: auto; /* Let content dictate height */
        margin-bottom: 0; /* No margin as gap is used */
        border-radius: 0; /* No radius on mobile stack */
    }

    .featured-product-card h3 {
        opacity: 1; /* Always show title on mobile */
        font-size: 1.2rem;
        position: static; /* Remove absolute positioning */
        bottom: auto;
        left: auto;
        text-align: center; /* Center the title */
        padding: 0.5rem 1rem; /* Add some padding */
        background: none; /* Remove background */
        color: var(--color-text); /* Use default text color */
    }

    .product-image-container {
        position: relative; /* Set to relative to contain absolute images */
        height: 200px; /* Fixed height for the image container on mobile */
        width: 100%;
        display: block;
        overflow: hidden; /* Hide overflowing images */
    }

    .carousel-image {
        opacity: 0; /* Hide by default, JavaScript will manage active class */
        position: absolute; /* Keep absolute positioning for stacking */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Ensure image fits */
    }

    .carousel-image.active {
        opacity: 1; /* Show active image */
    }

    .product-link {
        height: auto; /* Let content dictate height */
    }
}

/* Desktop effects */
@media (min-width: 769px) {
    .featured-product-card {
        flex: 0.5; /* Collapsed state */
        border-radius: 0; /* No radius by default */
    }
    
    .featured-product-card:first-child {
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    
    .featured-product-card:last-child {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .featured-product-card.active {
        flex: 1.5; /* Expanded state */
    }

    .featured-product-card.active h3 {
        opacity: 1;
    }
}


/* Desktop layout for video/reviews */
@media (min-width: 769px) {
    .video-reviews-wrapper {
        flex-direction: row; /* Side-by-side on desktop */
        align-items: flex-start;
    }

    .video-container {
        display: flex; /* Show on desktop */
        flex: 1; /* Take up half the space */
        min-width: 0; /* Fix for flexbox overflow */
        max-height: 500px;
    }

    .google-reviews-section {
        flex: 1; /* Take up the other half */
        min-width: 0;
    }
}

@media (prefers-color-scheme: dark) {
  .featured-products-section h2 {
    color: white;
  }
}

/* Presentation Section */
.presentation-section {
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto 2rem auto; /* Center horizontally and add bottom margin */
    padding: 0 1rem; /* Add some padding on the sides */
    text-align: center; /* Center text within the section */
}

.presentation-section h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--color-text);
}

.presentation-section article,
.presentation-section p {
    line-height: 1.6;
    color: var(--color-text);
}

/* Chasse Section Layout */


.presentation-chasse .presentation-image img {
    max-width: 100%;
    border-radius: 8px;
    max-width: 200px;
    max-height: 200px;
}

@media (max-width: 768px) {
    .presentation-chasse {
        flex-direction: column;
        text-align: center; /* Center text on mobile */
    }
}

/* --- Video Player --- */
.video-container {
    position: relative;
    cursor: pointer;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: 2px solid white;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.play-button-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent white;
}

.video-container video[src] + .play-button-overlay {
    opacity: 0;
    pointer-events: none;
}