:root {
    --pallets-menu-height: 96px;
}

body.single-pallets {
    overflow-x: clip;
}

.single-pallets-layout {
    display: grid;
    grid-template-columns: 45vw minmax(0, 1fr);
    align-items: start;
    min-height: 100svh;
    padding-top: var(--pallets-menu-height);
}

.single-pallets-gallery {
    position: sticky;
    top: var(--pallets-menu-height);
    width: 45vw;
    height: calc(100svh - var(--pallets-menu-height));
    overflow: hidden;
    background: var(--wp--preset--color--gris-clair);
}

.single-pallets-gallery .produits-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.single-pallets-gallery .produits-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.single-pallets-gallery .produits-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 30px;
}

.produits-slide-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.produits-slide-control svg {
    display: block;
    transition: transform 300ms ease;
}

.produits-slide-control:hover svg,
.produits-slide-control:focus-visible svg {
    transform: scale(1.08);
}

.produits-slide-prev {
    left: 24px;
}

.produits-slide-prev svg {
    transform: rotate(180deg);
}

.produits-slide-prev:hover svg,
.produits-slide-prev:focus-visible svg {
    transform: rotate(180deg) scale(1.08);
}

.produits-slide-next {
    right: 24px;
}

.produits-slide-count {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 8px 14px;
    border-radius: 30px;
    color: var(--wp--preset--color--blanc);
    background: rgba(16, 28, 54, 0.55);
    backdrop-filter: blur(8px);
}

.single-pallets-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-width: 0;
    min-height: calc(100svh - var(--pallets-menu-height));
    padding: clamp(2rem, 5vw, 6rem);
    padding-top: 0;
}

.single-pallets-back {
    align-self: flex-start;
}

.single-pallets-back .wp-block-button__link.wp-element-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 0 !important;
}

.single-pallets-back svg {
    flex: 0 0 auto;
}

.single-pallets-back path {
    transition: fill 300ms ease;
}

.single-pallets-back:hover path {
    fill: var(--wp--preset--color--blanc);
}

.single-pallets-heading {
    display: flex;
    flex-direction: column;
}

.single-pallets-heading h1 {
    margin: 0;
    color: #2C3147;
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
}

.single-pallets-main-content,
.single-pallets-closing-word {
    color: #2C3147;
}

.single-pallets-main-content > :first-child,
.single-pallets-closing-word > :first-child {
    margin-top: 0;
}

.single-pallets-main-content > :last-child,
.single-pallets-closing-word > :last-child {
    margin-bottom: 0;
}

.single-pallets-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.single-pallets-faq .faq-2-col-item {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border: 1px solid var(--wp--preset--color--gris-clair);
    border-radius: 20px;
    color: var(--wp--preset--color--bleu-foncé);
    box-shadow: 0 4px 12px rgba(20, 20, 43, 0.08);
}

.single-pallets-faq .faq-2-col-item.active {
    color: var(--wp--preset--color--blanc);
    background-color: var(--wp--preset--color--bleu-foncé);
    box-shadow: none;
}

.single-pallets-faq .question-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 42px 0 0;
    border: 0;
    color: inherit;
    font: inherit;
    font-size: var(--wp--preset--font-size--m-text);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.single-pallets-faq .question-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: url("../img/chevron-down.svg") center / contain no-repeat;
    transform: rotate(180deg);
    transition: transform 300ms ease;
}

.single-pallets-faq .faq-2-col-item.active .question-btn {
    background-image: url("../img/chevron-down-white.svg");
    transform: rotate(0deg);
}

.single-pallets-faq .faq-2-col-item.active .answer-content {
    z-index: 2;
    grid-template-rows: 1fr;
    opacity: 1;
}

.single-pallets-faq .answer-content {
    z-index: -1;
    display: grid;
    grid-template-rows: 0fr;
    color: var(--wp--preset--color--blanc);
    transition: grid-template-rows 500ms;
}
.single-pallets-faq .answer-content p{
    color: var(--wp--preset--color--blanc);
}

.single-pallets-faq .answer-content > div {
    overflow: hidden;
}

.single-pallets-faq .answer-content > div > :first-child {
    margin-top: 1.25rem;
}

.single-pallets-quote {
    align-self: flex-start;
}

@media screen and (max-width: 768px) {
    .single-pallets-layout {
        grid-template-columns: 1fr;
    }

    .single-pallets-gallery {
        position: relative;
        top: auto;
        width: 100%;
        height: min(62svh, 620px);
    }

    .single-pallets-content {
        min-height: auto;
        padding: 3rem var(--container-space) 5rem;
    }
}

@media screen and (max-width: 576px) {
    .single-pallets-content {
        gap: 2rem;
    }

    .produits-slide-control {
        width: 42px;
        height: 42px;
    }

    .produits-slide-prev {
        left: 16px;
    }

    .produits-slide-next,
    .produits-slide-count {
        right: 16px;
    }
}
