/*
 * NovaRide — prototype cartes scooters V2
 * Portée volontairement limitée à la section produits de scooters.html.
 */

.scooters-page .products-section {
    padding: 104px 0 132px;
    background:
        radial-gradient(70% 48% at 50% 8%, rgba(16, 185, 129, 0.08), transparent 68%),
        linear-gradient(180deg, #060807 0%, #030404 100%);
}

.scooters-page .products-section .section-header-luxury {
    margin-bottom: 56px;
}

.scooters-page .products-section .section-header-luxury h2 {
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    font-weight: 650;
    letter-spacing: -0.045em;
}

.scooters-page .products-section .section-header-luxury .subtitle {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.52);
}

.scooters-page .products-grid-premium {
    max-width: 1200px;
    gap: 22px;
}

.scooters-page .products-section .product-card-cinematic {
    --card-accent: 16, 185, 129;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto auto;
    align-content: start;
    min-width: 0;
    height: 100%;
    text-align: left;
    background:
        radial-gradient(110% 70% at 50% 0%, rgba(var(--card-accent), 0.1), transparent 52%),
        linear-gradient(165deg, rgba(18, 20, 20, 0.98), rgba(8, 10, 10, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 30px;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    isolation: isolate;
    transform: translateZ(0);
    transition:
        transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 480ms ease,
        box-shadow 480ms ease;
}

.scooters-page .products-section .product-card-cinematic[data-model="dtr"] { --card-accent: 245, 158, 11; }
.scooters-page .products-section .product-card-cinematic[data-model="calf"] { --card-accent: 139, 92, 246; }
.scooters-page .products-section .product-card-cinematic[data-model="cuite"] { --card-accent: 6, 182, 212; }
.scooters-page .products-section .product-card-cinematic[data-model="j-xfs"] { --card-accent: 34, 197, 94; }

.scooters-page .products-section .product-card-cinematic::before {
    top: auto;
    right: 28px;
    bottom: 0;
    left: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--card-accent), 0.62), transparent);
    opacity: 0;
    transform: scaleX(0.55);
    transition: opacity 480ms ease, transform 480ms ease;
}

.scooters-page .products-section .product-card-cinematic::after { display: none; }

.scooters-page .products-section .product-card-cinematic:hover {
    border-color: rgba(var(--card-accent), 0.32);
    transform: translateY(-7px);
    box-shadow:
        0 32px 75px rgba(0, 0, 0, 0.38),
        0 0 42px rgba(var(--card-accent), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scooters-page .products-section .product-card-cinematic:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.scooters-page .products-section .product-card-cinematic .product-image {
    grid-column: 1 / -1;
    width: 100%;
    height: 265px;
    margin: 0;
    padding: 0;
    border-radius: 29px 29px 0 0;
    background: #101312;
}

.scooters-page .products-section .product-card-cinematic .product-image::after {
    display: block;
    height: 52%;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 10, 0.12) 45%, rgba(8, 10, 10, 0.92) 100%);
}

.scooters-page .products-section .product-card-cinematic .product-image img,
.scooters-page .products-section .product-card-cinematic .product-image picture img {
    object-position: center 39%;
    transform: scale(1.001);
    transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scooters-page .products-section .product-card-cinematic:hover .product-image img,
.scooters-page .products-section .product-card-cinematic:hover .product-image picture img {
    transform: scale(1.035);
}

.scooters-page .products-section .product-card-cinematic .premium-badge {
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(8, 10, 10, 0.62);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.scooters-page .products-section .product-card-cinematic .product-title {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px 28px 0;
    color: #fff;
    font-size: 1.65rem;
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.scooters-page .products-section .product-card-cinematic:hover .product-title { color: #fff; }

.scooters-page .products-section .product-card-cinematic > .product-card-summary {
    display: -webkit-box;
    grid-column: 1 / -1;
    min-height: 42px;
    margin: 9px 28px 0;
    padding: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.scooters-page .products-section .product-card-cinematic .specs-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 21px 28px 0;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scooters-page .products-section .product-card-cinematic .spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    text-align: center;
}

.scooters-page .products-section .product-card-cinematic .spec-item:first-child { padding: 0 8px; }

.scooters-page .products-section .product-card-cinematic .spec-item + .spec-item {
    border-left: 0;
}

.scooters-page .products-section .product-card-cinematic .spec-value {
    margin-bottom: 5px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.08rem, 1.55vw, 1.28rem);
    font-weight: 720;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scooters-page .products-section .product-card-cinematic:hover .spec-value { color: rgba(255, 255, 255, 0.96); }

.scooters-page .products-section .product-card-cinematic .spec-label {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.095em;
}

.scooters-page .products-section .product-card-cinematic .product-price {
    grid-column: 1;
    align-self: center;
    margin: 0;
    padding: 23px 0 28px 28px;
    color: #fff;
    font-size: 1.34rem;
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.scooters-page .products-section .product-card-cinematic .product-price::before {
    content: "À partir de";
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.scooters-page .products-section .product-card-cinematic .btn-discover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    align-self: center;
    box-sizing: border-box;
    width: auto;
    min-height: 44px;
    margin: 22px 28px 27px 12px;
    padding: 12px 17px;
    color: #02130d;
    background: linear-gradient(135deg, #22d89b 0%, #10b981 100%);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.18);
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
}

.scooters-page .products-section .product-card-cinematic .btn-discover::before { display: none; }

.scooters-page .products-section .product-card-cinematic .btn-discover:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(16, 185, 129, 0.32);
}

.scooters-page .products-section .product-card-cinematic .btn-discover svg {
    width: 16px;
    height: 16px;
}

.scooters-page .products-section .product-card-cinematic > .promo-price-wrapper.promo-card-price {
    grid-column: 1;
    align-self: center;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    padding: 19px 0 24px 28px;
    gap: 3px;
    text-align: left;
}

.scooters-page .products-section .product-card-cinematic > .promo-card-price::before {
    display: none;
}

.scooters-page .products-section .product-card-cinematic > .promo-card-price .promo-old-price {
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
}

.scooters-page .products-section .product-card-cinematic > .promo-card-price .promo-new-price {
    font-size: 1.34rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.scooters-page .products-section .product-card-cinematic > .promo-card-price .promo-save-badge {
    margin-top: 6px;
    padding: 7px 12px;
    color: #8bf0c8;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(110, 231, 183, 0.42);
    font-size: 0.72rem;
    letter-spacing: 0.055em;
}

/* Optical centering against the complete promo stack, including savings. */
.scooters-page .products-section .product-card-cinematic > .promo-card-price + .btn-discover {
    align-self: end;
    margin: 0 28px 24px 12px;
}

@media (max-width: 767px) {
    .scooters-page .products-section { padding: 68px 0 96px; }

    .scooters-page .products-section > .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .scooters-page .products-section .section-header-luxury { margin: 0 24px 38px; }

    .scooters-page .products-section .section-header-luxury .eyebrow {
        margin-bottom: 16px;
        font-size: 0.64rem;
    }

    .scooters-page .products-section .section-header-luxury h2 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.02;
    }

    .scooters-page .products-section .section-header-luxury .subtitle {
        max-width: 330px;
        font-size: 0.87rem;
    }

    .scooters-page .products-carousel-wrapper { overflow: hidden; }

    .scooters-page .products-grid-premium {
        gap: 14px;
        margin: 0;
        padding: 8px 24px 12px;
        scroll-padding-inline: 24px;
    }

    .scooters-page .products-grid-premium .product-card-cinematic,
    .scooters-page .products-grid-premium .product-card-cinematic:not(.active-card) {
        flex: 0 0 min(82vw, 344px);
        max-width: none;
        border-radius: 27px;
        scroll-snap-align: start;
        opacity: 1;
        transform: none;
    }

    .scooters-page .products-grid-premium .product-card-cinematic.active-card {
        border-color: rgba(var(--card-accent), 0.28);
        box-shadow:
            0 28px 60px rgba(0, 0, 0, 0.34),
            0 0 32px rgba(var(--card-accent), 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
        transform: none;
    }

    .scooters-page .products-section .product-card-cinematic .product-image {
        width: 100% !important;
        height: 226px !important;
        border-radius: 26px 26px 0 0 !important;
    }

    .scooters-page .products-section .product-card-cinematic .product-image img,
    .scooters-page .products-section .product-card-cinematic .product-image picture img,
    .scooters-page .products-section .product-card-cinematic.active-card .product-image img,
    .scooters-page .products-section .product-card-cinematic.active-card .product-image picture img {
        object-position: center 38% !important;
        transform: scale(1.02) !important;
    }

    .scooters-page .products-section .product-card-cinematic .premium-badge {
        top: 15px !important;
        right: 15px !important;
    }

    .scooters-page .products-section .product-card-cinematic .product-title {
        margin: 0;
        padding: 21px 22px 0 !important;
        font-size: 1.52rem;
    }

    .scooters-page .products-section .product-card-cinematic > .product-card-summary {
        min-height: 39px;
        margin: 8px 22px 0;
        padding: 0 !important;
        font-size: 0.8rem;
    }

    .scooters-page .products-section .product-card-cinematic .specs-grid {
        gap: 0;
        margin: 18px 22px 0;
        padding: 15px 0 !important;
    }

    .scooters-page .products-section .product-card-cinematic .spec-item { padding: 0 7px; }
    .scooters-page .products-section .product-card-cinematic .spec-value { font-size: 1.1rem; }
    .scooters-page .products-section .product-card-cinematic .spec-label { font-size: 0.58rem; }

    .scooters-page .products-section .product-card-cinematic .product-price {
        margin: 0;
        padding: 20px 0 24px 22px !important;
        font-size: 1.22rem;
    }

    .scooters-page .products-section .product-card-cinematic > .promo-price-wrapper.promo-card-price {
        margin: 0;
        padding: 18px 0 23px 22px;
    }

    .scooters-page .products-section .product-card-cinematic > .promo-card-price .promo-new-price {
        font-size: 1.08rem;
    }

    .scooters-page .products-section .product-card-cinematic > .promo-card-price .promo-save-badge {
        display: inline-flex;
        margin-top: 5px;
        padding: 6px 9px;
        font-size: 0.64rem;
        white-space: nowrap;
    }

    .scooters-page .products-section .product-card-cinematic .btn-discover {
        width: auto;
        min-height: 42px;
        margin: 19px 22px 23px 10px;
        padding: 11px 15px !important;
        font-size: 0.74rem;
    }

    .scooters-page .products-section .product-card-cinematic > .promo-card-price + .btn-discover {
        align-self: end;
        margin: 0 22px 23px 10px;
    }

    .scooters-page .products-carousel-wrapper > #productsFade { display: none; }

    .scooters-page #productsDots {
        gap: 8px;
        margin-top: 17px;
    }

    .scooters-page #productsDots .carousel-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        background: rgba(255, 255, 255, 0.22);
    }

    .scooters-page #productsDots .carousel-dot.active {
        width: 27px;
        background: #20d69a;
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.44);
    }

    .scooters-page #productsDots .carousel-dot:focus-visible {
        outline: 2px solid #6ee7b7;
        outline-offset: 4px;
    }

    .scooters-page #productsSwipeHint {
        margin-top: 10px;
        color: rgba(255, 255, 255, 0.42);
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .scooters-page .products-grid-premium {
        padding-inline: 20px;
        scroll-padding-inline: 20px;
    }

    .scooters-page .products-grid-premium .product-card-cinematic { flex-basis: calc(100vw - 58px); }
    .scooters-page .products-section .product-card-cinematic .product-image { height: 212px !important; }
}

@media (max-width: 340px) {
    .scooters-page .products-grid-premium .product-card-cinematic { flex-basis: calc(100vw - 48px); }
}

@media (prefers-reduced-motion: reduce) {
    .scooters-page .products-section .product-card-cinematic,
    .scooters-page .products-section .product-card-cinematic .product-image img,
    .scooters-page .products-section .product-card-cinematic .btn-discover {
        transition-duration: 0.01ms;
    }
}
