/* Pages produit A/B/C/D — styles statiques (pas de @import tailwind) */

html {
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 100vh;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Bouton retour haut — priorité sur le reset Tailwind (stripe-payment-modal.css) */
button#backToTop {
    position: fixed !important;
    inset: auto 2rem 2rem auto !important;
    left: auto !important;
    top: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex: none !important;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 0;
}

button#backToTop.is-shown {
    opacity: 1;
    visibility: visible;
}

button#backToTop:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: #60a5fa !important;
    transform: translateY(-3px);
}

button#backToTop svg {
    display: block;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

/* Cadre logo produit — même effet platine/or que .header-description (index) */
@keyframes fd-led-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-intro-visual {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1 / 1;
    position: relative;
    display: grid;
    grid-template: 1fr / 1fr;
    align-items: stretch;
    justify-items: stretch;
    padding: calc(4px / 3);
    box-sizing: border-box;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: #ffffff;
    background-clip: padding-box;
    overflow: hidden;
    z-index: 1;
}

.page-intro-visual::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        #e5e4e2 10%,
        #c0c0c0 20%,
        #d4af37 30%,
        transparent 40%
    );
    animation: fd-led-rotate 6s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.page-intro-visual::after {
    content: "";
    position: absolute;
    inset: calc(4px / 3);
    background: #ffffff;
    border-radius: calc(1rem - 4px / 3);
    z-index: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.page-intro-visual > .page-intro-image {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    border: none;
    object-fit: cover;
    object-position: center;
    border-radius: calc(1rem - 4px / 3);
}

.page-intro > h2:first-child,
.page-intro-neutrino:first-child {
    margin-bottom: 0;
}

.page-intro-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin: 0.75rem 0 1.15rem;
}

.page-intro-divider--footer {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.page-intro .intro-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.35rem 1rem;
    margin: 0;
    padding-top: 0;
    border-top: none;
    font-size: 0.8rem;
    color: var(--text-muted, #a1a1aa);
}

.page-intro .intro-footer-right {
    font-style: italic;
    margin-left: auto;
}

/* Titre « Produit noX » — style secondaire (ex-product-name) */
.page-card .page-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--text-main, #e4e4e7);
}

/* Nom produit (no1…) — style principal (ex-page-title) */
.page-card .product-name {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--orange, #f97316);
}

.product-price-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-price-x,
.page-card .product-price .product-price-x {
    color: #ef4444;
    font-weight: 600;
    font-size: calc(0.333em + 5pt);
    text-decoration: line-through;
}

.product-price-y,
.page-card .product-price .product-price-y {
    color: var(--link-color, #60a5fa);
    font-weight: 700;
}

.product-price-q,
.page-card .product-price .product-price-q {
    color: #eab308;
    font-weight: 700;
}
