/* ==========================================================================
   Product Simple Sections
   ========================================================================== */

.product-simple-box {
    padding: 34px 38px;
    background: #f1f3f7;
    border-radius: 0;
}

.product-simple-box-advantages,
.product-simple-box-accessories {
    background: #f7f8fa;
}

.product-simple-box-advantages {
    border-left: 4px solid #DA8A45;
}

.product-simple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
}

.product-simple-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.product-simple-check {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #ffffff;
    color: #DA8A45;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.product-simple-item strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #1f2937;
}

.product-simple-item p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #5f6673;
}


/* ==========================================================================
   Product Section Accordion
   ========================================================================== */

.product-section-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.product-section-accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    background: transparent;
}

.product-section-accordion-item[open] {
    padding-bottom: 26px;
}

.product-section-accordion-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: padding-left 0.25s ease;
}

.product-section-accordion-header::-webkit-details-marker {
    display: none;
}

.product-section-accordion-header:hover {
    padding-left: 6px;
}

.product-section-accordion-title {
    display: block;
    color: #4f5758;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    transition: color 0.25s ease;
}

.product-section-accordion-item[open] .product-section-accordion-title,
.product-section-accordion-header:hover .product-section-accordion-title {
    color: #1f2526;
}

.product-section-accordion-icon {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(218, 138, 69, 0.35);
    border-radius: 50%;
    background: rgba(218, 138, 69, 0.08);
    transition:
            background-color 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;
}

.product-section-accordion-icon::before,
.product-section-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #DA8A45;
    transform: translate(-50%, -50%);
    transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            background-color 0.25s ease;
}

.product-section-accordion-icon::before {
    width: 13px;
    height: 2px;
}

.product-section-accordion-icon::after {
    width: 2px;
    height: 13px;
}

.product-section-accordion-item[open] .product-section-accordion-icon {
    background: #DA8A45;
    border-color: #DA8A45;
    box-shadow: 0 10px 24px rgba(218, 138, 69, 0.28);
}

.product-section-accordion-item[open] .product-section-accordion-icon::before,
.product-section-accordion-item[open] .product-section-accordion-icon::after {
    background: #ffffff;
}

.product-section-accordion-item[open] .product-section-accordion-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.product-section-accordion-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 40px;
    align-items: center;
}

.product-section-accordion-text {
    max-width: 780px;
    color: #4f5758;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
}

.product-section-accordion-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-section-accordion-image {
    display: block;
    width: 190px;
    max-width: 100%;
    height: 190px;
    object-fit: contain;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}


/* ==========================================================================
   Product Technical Accordion
   ========================================================================== */

.product-technical-accordion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-technical-accordion-item {
    overflow: hidden;
    background: #f1f3f7;
    border-radius: 0;
}

.product-technical-accordion-item[open] {
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.product-technical-accordion-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: padding-left 0.25s ease;
}

.product-technical-accordion-header::-webkit-details-marker {
    display: none;
}

.product-technical-accordion-header:hover {
    padding-left: 34px;
}

.product-technical-accordion-item[open] .product-technical-accordion-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.product-technical-accordion-title {
    color: #1f2937;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.product-technical-accordion-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #DA8A45;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition:
            transform 0.28s ease,
            background-color 0.25s ease,
            color 0.25s ease,
            box-shadow 0.25s ease;
}

.product-technical-accordion-item[open] .product-technical-accordion-icon {
    transform: rotate(45deg);
    background: #DA8A45;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(218, 138, 69, 0.28);
}

.product-technical-accordion-body {
    padding: 0 28px 28px;
}


/* ==========================================================================
   Product Detail Accordion
   ========================================================================== */

.product-detail-accordion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-detail-accordion-item {
    overflow: hidden;
    background: #f1f3f7;
    border-radius: 0;
}

.product-detail-accordion-item[open] {
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.product-detail-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: padding-left 0.25s ease;
}

.product-detail-accordion-header::-webkit-details-marker {
    display: none;
}

.product-detail-accordion-header:hover {
    padding-left: 34px;
}

.product-detail-accordion-item[open] .product-detail-accordion-header {
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.product-detail-accordion-title {
    color: #1f2937;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.product-detail-accordion-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #DA8A45;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition:
            transform 0.28s ease,
            background-color 0.25s ease,
            color 0.25s ease,
            box-shadow 0.25s ease;
}

.product-detail-accordion-item[open] .product-detail-accordion-icon {
    transform: rotate(45deg);
    background: #DA8A45;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(218, 138, 69, 0.28);
}

.product-detail-accordion-body {
    padding: 28px;
}

.product-detail-description {
    max-width: 920px;
    color: #5f6673;
    font-size: 15px;
    line-height: 1.8;
}

.product-detail-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product-detail-media-item {
    min-width: 0;
}

.product-detail-media-item .pbmit-service-feature-image {
    margin: 0;
    overflow: hidden;
    background: #f7f8fa;
}

.product-detail-media-item img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}


/* ==========================================================================
   Accordion Animation
   ========================================================================== */

.product-section-accordion-body,
.product-technical-accordion-body,
.product-detail-accordion-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition:
            max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.28s ease,
            transform 0.32s ease;
    will-change: max-height, opacity, transform;
}

.product-section-accordion-item.is-animating .product-section-accordion-body,
.product-technical-accordion-item.is-animating .product-technical-accordion-body,
.product-detail-accordion-item.is-animating .product-detail-accordion-body {
    pointer-events: none;
}

.product-section-accordion-item[open] .product-section-accordion-body,
.product-technical-accordion-item[open] .product-technical-accordion-body,
.product-detail-accordion-item[open] .product-detail-accordion-body {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   Product Technical Table
   ========================================================================== */

.product-technical-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 0;
    background: #ffffff;
}

.product-technical-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    color: #1f2937;
    font-size: 14px;
}

.product-technical-table thead th {
    padding: 20px 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.55);
    background: #DA8A45;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.product-technical-table thead th:first-child {
    text-align: left;
}

.product-technical-table thead th:last-child {
    border-right: 0;
}

.product-technical-table tbody td {
    padding: 13px 16px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    background: #f3f4f6;
    text-align: center;
    vertical-align: middle;
    font-weight: 500;
}

.product-technical-table tbody td.product-technical-label {
    min-width: 300px;
    background: #d9d9d9;
    color: #202936;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
}

.product-technical-table tbody td.product-technical-label span {
    display: inline-block;
    margin-right: 10px;
}

.product-technical-table tbody td.product-technical-label small {
    display: inline-block;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.product-technical-label-header {
    min-width: 300px;
}


/* ==========================================================================
   Machine Lightbox
   ========================================================================== */

.machine-clickable-image {
    cursor: zoom-in;
    transition:
            transform 0.25s ease,
            opacity 0.25s ease,
            box-shadow 0.25s ease;
}

.machine-clickable-image:hover {
    opacity: 0.92;
    transform: scale(1.015);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.machine-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(10, 15, 25, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
}

.machine-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.machine-lightbox-content {
    position: relative;
    max-width: min(1200px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.machine-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: scale(0.985);
    transition:
            opacity 0.18s ease,
            transform 0.18s ease;
}

.machine-lightbox-content img.is-visible {
    opacity: 1;
    transform: scale(1);
}

.machine-lightbox-caption {
    margin-top: 8px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    opacity: 0.9;
}

.machine-lightbox-counter {
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.machine-lightbox-close {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 100000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            color 0.2s ease;
    font-size: 0;
    line-height: 0;
}

.machine-lightbox-close::before,
.machine-lightbox-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.machine-lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.machine-lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.machine-lightbox-close:hover {
    transform: scale(1.08);
    background: #DA8A45;
    color: #ffffff;
}

body.machine-lightbox-open {
    overflow: hidden;
}

.machine-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 100000;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
    transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            color 0.2s ease,
            opacity 0.2s ease;
    font-size: 0;
    line-height: 0;
}

.machine-lightbox-nav::before {
    display: block;
    color: currentColor;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-1px);
}

.machine-lightbox-prev::before {
    content: "‹";
}

.machine-lightbox-next::before {
    content: "›";
}

.machine-lightbox-nav:hover {
    background: #DA8A45;
    color: #ffffff;
}

.machine-lightbox-prev {
    left: 32px;
}

.machine-lightbox-next {
    right: 32px;
}

.machine-lightbox-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.machine-lightbox-next:hover {
    transform: translateY(-50%) translateX(3px);
}


/* ==========================================================================
   Machine Full-Width Layout Override
   ========================================================================== */

.machine-fullwidth {
    padding-top: 0;
}

.machine-fullwidth .service-right-col,
.machine-fullwidth .service-left-col {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

/* ==========================================================================
   Hero Section - PLEINE LARGEUR ECRAN (full bleed)
   ========================================================================== */

.machine-hero {
    padding: 0;
}

.machine-hero-fullbleed {
    width: 100%;
}

.machine-hero-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000000;
}

.machine-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: cover;
}

.machine-hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #DA8A45;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    transition:
            transform 0.25s ease,
            background-color 0.25s ease,
            color 0.25s ease,
            box-shadow 0.25s ease;
    z-index: 2;
}

.machine-hero-play::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    animation: machine-hero-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

.machine-hero-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #DA8A45;
    color: #ffffff;
    box-shadow: 0 22px 55px rgba(218, 138, 69, 0.45);
}

.machine-hero-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.machine-hero-play-icon svg {
    width: 38px;
    height: 38px;
    transform: translateX(2px);
}

@keyframes machine-hero-pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}


/* ==========================================================================
   Bandeau CTA Horizontal (sticky)
   ========================================================================== */

.machine-cta-bandeau {
    position: sticky;
    top: 0;
    z-index: 99;
    margin-top: 0;
    background: #16222d;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.machine-cta-bandeau .container {
    padding-left: 0;
    padding-right: 0;
}

.machine-cta-bandeau-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

.machine-cta-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 24px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition:
            background-color 0.25s ease,
            color 0.25s ease;
}

.machine-cta-item:last-child {
    border-right: 0;
}

.machine-cta-item i {
    font-size: 18px;
    line-height: 1;
    color: #DA8A45;
    transition: color 0.25s ease;
}

.machine-cta-item:hover {
    background: #DA8A45;
    color: #ffffff;
    text-decoration: none;
}

.machine-cta-item:hover i {
    color: #ffffff;
}


/* ==========================================================================
   Section Intro (description avant la galerie)
   ========================================================================== */

.machine-intro-section {
    padding: 50px 0 10px;
}

.machine-intro-section .pbmit-short-description {
    margin: 0;
}

@media (max-width: 767px) {
    .machine-intro-section {
        padding: 30px 0 5px;
    }
}


/* ==========================================================================
   Galerie - Carrousel Infini Pleine Largeur (Marquee)
   ========================================================================== */

.machine-gallery-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    padding: 10px 0;
    /* fade aux extrémités pour effet pro */
    -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 80px,
            #000 calc(100% - 80px),
            transparent 100%
    );
    mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 80px,
            #000 calc(100% - 80px),
            transparent 100%
    );
}

.machine-gallery-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: machine-gallery-scroll 40s linear infinite;
    will-change: transform;
}

.machine-gallery-marquee:hover .machine-gallery-track {
    animation-play-state: paused;
}

.machine-gallery-item {
    flex: 0 0 auto;
    width: 420px;
    max-width: 70vw;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f3f7;
}

.machine-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes machine-gallery-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* ==========================================================================
   Grid des autres machines de la série - Premium Cards
   ========================================================================== */

.machine-series-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 60px;
    padding-top: 50px !important;
}

.machine-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.machine-series-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition:
            transform 0.3s ease,
            box-shadow 0.3s ease,
            border-color 0.3s ease;
    isolation: isolate;
}

.machine-series-card:hover {
    transform: translateY(-6px);
    border-color: rgba(218, 138, 69, 0.4);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    text-decoration: none;
    color: #1f2937;
}

/* Media (image) */
.machine-series-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #16222d;
}

.machine-series-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.machine-series-card:hover .machine-series-card-media img {
    transform: scale(1.06);
}

.machine-series-card-placeholder {
    width: 100%;
    height: 100%;
    background:
            linear-gradient(135deg, #1f2526 0%, #16222d 100%);
}

.machine-series-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.35) 0%,
            rgba(15, 23, 42, 0) 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.machine-series-card:hover .machine-series-card-overlay {
    opacity: 1;
}

/* Body (texte) */
.machine-series-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px 24px;
    background: #ffffff;
}

.machine-series-card-category {
    display: block;
    color: #DA8A45;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.machine-series-card-name {
    display: block;
    color: #1f2526;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.machine-series-card:hover .machine-series-card-name {
    color: #DA8A45;
}

.machine-series-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #5f6673;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.25s ease;
}

.machine-series-card:hover .machine-series-card-cta {
    color: #DA8A45;
}

.machine-series-card-cta-label {
    transition: transform 0.3s ease;
}

.machine-series-card:hover .machine-series-card-cta-label {
    transform: translateX(2px);
}

.machine-series-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.machine-series-card-arrow svg {
    width: 100%;
    height: 100%;
}

.machine-series-card:hover .machine-series-card-arrow {
    transform: translateX(6px);
}


@media (max-width: 767px) {
    .machine-series-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .machine-series-card-body {
        padding: 18px 20px 20px;
    }

    .machine-series-card-name {
        font-size: 17px;
    }
}


/* ==========================================================================
   Modal Vidéo YouTube
   ========================================================================== */

.machine-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(10, 15, 25, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
}

.machine-video-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.machine-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
}

.machine-video-modal-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.machine-video-modal-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.machine-video-modal-close {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 100000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            color 0.2s ease;
    font-size: 0;
    line-height: 0;
}

.machine-video-modal-close::before,
.machine-video-modal-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.machine-video-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.machine-video-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.machine-video-modal-close:hover {
    transform: scale(1.08);
    background: #DA8A45;
    color: #ffffff;
}

body.machine-video-modal-open {
    overflow: hidden;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .product-simple-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .product-section-accordion-title {
        font-size: 23px;
    }

    .product-section-accordion-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-section-accordion-image-wrap {
        justify-content: flex-start;
    }

    .product-section-accordion-image {
        width: 170px;
        height: 170px;
    }

    .product-technical-table-wrapper {
        margin-right: -15px;
        margin-left: -15px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .product-technical-table {
        font-size: 13px;
    }

    .product-technical-table thead th {
        padding: 16px 14px;
    }

    .product-technical-table tbody td {
        padding: 12px 14px;
    }

    .machine-hero-play {
        width: 78px;
        height: 78px;
    }

    .machine-hero-play-icon svg {
        width: 30px;
        height: 30px;
    }

    .machine-cta-bandeau {
        position: relative;
        top: auto;
    }

    .machine-cta-item {
        padding: 14px 18px;
        font-size: 13px;
    }

    .machine-gallery-item {
        width: 340px;
    }
}

@media (max-width: 767px) {
    .product-simple-box {
        padding: 24px 20px;
    }

    .product-simple-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-simple-item strong {
        font-size: 16px;
    }

    .product-simple-item p {
        font-size: 14px;
    }

    .product-section-accordion-header {
        min-height: 66px;
        padding: 17px 0;
        gap: 16px;
    }

    .product-section-accordion-header:hover {
        padding-left: 0;
    }

    .product-section-accordion-title {
        font-size: 20px;
    }

    .product-section-accordion-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .product-section-accordion-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .product-section-accordion-image {
        width: 145px;
        height: 145px;
        padding: 14px;
    }

    .product-technical-accordion-header,
    .product-detail-accordion-header {
        padding: 20px;
    }

    .product-technical-accordion-header:hover,
    .product-detail-accordion-header:hover {
        padding-left: 20px;
    }

    .product-technical-accordion-title,
    .product-detail-accordion-title {
        font-size: 17px;
    }

    .product-technical-accordion-icon,
    .product-detail-accordion-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .product-technical-accordion-body {
        padding: 0 20px 22px;
    }

    .product-detail-accordion-body {
        padding: 22px 20px;
    }

    .product-detail-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .product-detail-media-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-detail-media-item img {
        height: 220px;
    }

    .product-technical-table {
        min-width: 760px;
        font-size: 12px;
    }

    .product-technical-table tbody td.product-technical-label,
    .product-technical-label-header {
        min-width: 240px;
    }

    .machine-lightbox {
        padding: 18px;
    }

    .machine-lightbox-content {
        max-width: 96vw;
        max-height: 84vh;
    }

    .machine-lightbox-content img {
        max-height: 76vh;
    }

    .machine-lightbox-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .machine-lightbox-caption {
        font-size: 13px;
    }

    .machine-lightbox-counter {
        margin-top: 10px;
        padding: 5px 10px;
        font-size: 12px;
    }

    .machine-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .machine-lightbox-nav::before {
        font-size: 28px;
    }

    .machine-lightbox-prev {
        left: 14px;
    }

    .machine-lightbox-next {
        right: 14px;
    }

    .machine-hero {
        padding-top: 0;
    }

    .machine-hero-play {
        width: 64px;
        height: 64px;
    }

    .machine-hero-play-icon svg {
        width: 24px;
        height: 24px;
    }

    /* MOBILE BANDEAU : ICONES UNIQUEMENT */
    .machine-cta-bandeau-inner {
        flex-wrap: nowrap;
    }

    .machine-cta-item {
        flex: 1 1 0;
        min-width: 0;
        padding: 16px 8px;
        gap: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 0;
    }

    .machine-cta-item span {
        display: none;
    }

    .machine-cta-item i {
        font-size: 20px;
    }

    .machine-gallery-marquee {
        margin: 24px 0;
        -webkit-mask-image: linear-gradient(
                to right,
                transparent 0,
                #000 30px,
                #000 calc(100% - 30px),
                transparent 100%
        );
        mask-image: linear-gradient(
                to right,
                transparent 0,
                #000 30px,
                #000 calc(100% - 30px),
                transparent 100%
        );
    }

    .machine-gallery-item {
        width: 280px;
    }

    .machine-gallery-track {
        gap: 12px;
        animation-duration: 30s;
    }

    .machine-series-grid {
        grid-template-columns: 1fr;
    }

    .machine-video-modal {
        padding: 14px;
    }

    .machine-video-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-section-accordion-body,
    .product-technical-accordion-body,
    .product-detail-accordion-body,
    .product-section-accordion-header,
    .product-technical-accordion-header,
    .product-detail-accordion-header,
    .product-section-accordion-icon,
    .product-technical-accordion-icon,
    .product-detail-accordion-icon,
    .machine-clickable-image,
    .machine-lightbox,
    .machine-lightbox-close {
        transition: none !important;
        transform: none !important;
    }

    .machine-hero-play::before {
        animation: none;
    }

    .machine-gallery-track {
        animation: none;
    }
}
