/* ==========================================
   CHECKOUT PAGE — STYLES DÉDIÉS
   Hérite du design system de style.css
   ========================================== */

/* ---- BODY CHECKOUT ---- */
.checkout-page {
    background-color: var(--black);
}

/* ---- NAVBAR override (page sans sections internes) ---- */
.checkout-page .navbar {
    background: rgba(26, 15, 10, 0.97);
    border-bottom: 1px solid rgba(217, 121, 66, 0.25);
    backdrop-filter: blur(20px);
}

.checkout-page .logo {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 4px;
    color: var(--white);
    transition: var(--transition-fast);
}

.checkout-page .logo:hover {
    color: var(--orange);
}

/* ---- CHECKOUT HERO ---- */
.checkout-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    overflow: hidden;
}

.checkout-bg {
    position: absolute;
    inset: 0;
}

.checkout-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 0;
}

.checkout-breadcrumb {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--grey);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-breadcrumb a {
    color: var(--grey);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.checkout-breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb-sep {
    color: var(--orange);
}

/* Checkout Title with Glitch */
.checkout-title {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    margin-bottom: 16px;
}

.checkout-title-line {
    font-family: var(--font-display);
    font-size: clamp(64px, 10vw, 120px);
    letter-spacing: 4px;
    color: var(--white);
    display: block;
    position: relative;
}

.checkout-title-accent {
    color: var(--orange);
    text-shadow: var(--glow-orange);
}

/* Glitch keyframes */
@keyframes glitchCheckout {
    0%, 90%, 100% {
        clip-path: none;
        transform: translateX(0);
    }
    91% {
        clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%);
        transform: translateX(-4px);
    }
    92% {
        clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
        transform: translateX(4px);
    }
    93% {
        clip-path: polygon(0 40%, 100% 40%, 100% 55%, 0 55%);
        transform: translateX(-2px);
    }
    94% {
        clip-path: none;
        transform: translateX(0);
    }
}

.glitch {
    animation: glitchCheckout 5s infinite;
}

.glitch-accent {
    animation: glitchCheckout 5s infinite 0.5s;
}

.checkout-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--grey);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ---- CHECKOUT MAIN ---- */
.checkout-main {
    padding: 60px 0 100px;
    position: relative;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ==========================================
   LEFT COLUMN — SUMMARY
   ========================================== */

.checkout-summary-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

/* Urgency Banner */
.urgency-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(217, 121, 66, 0.12);
    border: 1px solid rgba(217, 121, 66, 0.4);
    border-radius: 4px;
    padding: 14px 20px;
    position: relative;
    overflow: hidden;
}

.urgency-pulse {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--orange);
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--orange); }
    50% { opacity: 0.4; box-shadow: none; }
}

.urgency-icon {
    font-size: 18px;
}

.urgency-text {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--white);
    letter-spacing: 0.5px;
}

.urgency-text strong {
    color: var(--orange);
    font-size: 15px;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 100%);
    border: 1px solid rgba(217, 121, 66, 0.35);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--yellow), var(--orange));
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.summary-header {
    margin-bottom: 24px;
}

.summary-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--orange);
    border: 1px solid var(--orange);
    padding: 4px 12px;
    margin-bottom: 20px;
}

.summary-price-block {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.summary-currency {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--orange);
    line-height: 1;
    margin-top: 8px;
}

.summary-amount {
    font-family: var(--font-display);
    font-size: 80px;
    line-height: 1;
    color: var(--white);
    letter-spacing: -2px;
}

.summary-period-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 4px;
}

.summary-period {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--grey);
    line-height: 1.2;
}

.summary-engage {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--orange);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.summary-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--grey);
    letter-spacing: 0.5px;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 121, 66, 0.3), transparent);
    margin: 20px 0;
}

/* Features list */
.summary-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--grey);
    line-height: 1.5;
}

.summary-feature strong {
    color: var(--white);
}

.feature-check {
    color: var(--orange);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--grey);
}

.total-amount {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--orange);
    letter-spacing: 1px;
}

.summary-billing-note {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--grey);
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

/* Checkout Testimonial */
.checkout-testimonial {
    background: var(--dark-1);
    border: 1px solid rgba(232, 184, 109, 0.2);
    border-radius: 8px;
    padding: 28px;
    position: relative;
}

.testimonial-quote-mark {
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 1;
    color: var(--orange);
    opacity: 0.4;
    position: absolute;
    top: 8px;
    left: 20px;
    pointer-events: none;
}

.checkout-testimonial-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--grey);
    line-height: 1.7;
    font-style: italic;
    padding-top: 20px;
    margin-bottom: 20px;
}

.checkout-testimonial-text strong {
    color: var(--yellow);
    font-style: normal;
}

.checkout-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dark-2);
    border: 1px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    font-size: 14px;
    flex-shrink: 0;
}

.checkout-testimonial-author strong {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--white);
    display: block;
}

.checkout-testimonial-author span {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--grey);
    display: block;
    letter-spacing: 0.5px;
}

.testimonial-result-badge {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--orange);
    background: rgba(217, 121, 66, 0.12);
    border: 1px solid rgba(217, 121, 66, 0.3);
    padding: 4px 12px;
    letter-spacing: 1px;
}

/* Trust Signals */
.trust-signals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--grey);
}

.trust-item strong {
    color: var(--white);
}

.trust-item i {
    color: var(--orange);
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* ==========================================
   RIGHT COLUMN — PAYMENT FORM
   ========================================== */

.checkout-form-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Secure Badge */
.secure-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--orange);
    padding: 12px 20px;
    background: rgba(217, 121, 66, 0.08);
    border: 1px solid rgba(217, 121, 66, 0.2);
    border-radius: 4px;
}

.secure-badge i {
    font-size: 16px;
}

.card-brands {
    display: flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}

.card-logo {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.card-logo:hover {
    opacity: 1;
}

/* Payment Form Card */
.payment-form-card {
    background: linear-gradient(160deg, var(--dark-1) 0%, rgba(44, 24, 16, 0.8) 100%);
    border: 1px solid rgba(217, 121, 66, 0.25);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.payment-form-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 121, 66, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.form-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(217, 121, 66, 0.2);
}

/* ==========================================
   PAYMENT LINK — Récapitulatif & Bouton
   ========================================== */

/* Récapitulatif de commande */
.pl-summary {
    background: rgba(26, 15, 10, 0.6);
    border: 1px solid rgba(166, 149, 136, 0.15);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.pl-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.pl-summary-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pl-product-name {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--white);
    font-weight: 700;
}

.pl-product-sub {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--grey);
    letter-spacing: 0.5px;
}

.pl-summary-price {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--white);
    letter-spacing: 1px;
    white-space: nowrap;
}

.pl-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 121, 66, 0.3), transparent);
    margin: 0 0 16px;
}

.pl-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pl-total-label {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--grey);
}

.pl-total-price {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--orange);
    letter-spacing: 1px;
}

.pl-renewal-note {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--grey);
    opacity: 0.6;
    text-align: right;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* Garantie */
.pl-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--grey);
    background: rgba(217, 121, 66, 0.06);
    border: 1px solid rgba(217, 121, 66, 0.15);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.pl-guarantee i {
    color: var(--orange);
    font-size: 13px;
    flex-shrink: 0;
}

/* Info redirection */
.pl-redirect-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--grey);
    opacity: 0.5;
    margin-top: 16px;
    letter-spacing: 0.3px;
    text-align: center;
}

.pl-redirect-info i {
    font-size: 10px;
}

/* Checkout Payment Link Button */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-checkout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange), var(--yellow), var(--orange));
    background-size: 200% 200%;
    animation: btnGradient 3s ease infinite;
}

@keyframes btnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-checkout .btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    color: var(--black);
    flex: 1;
}

.btn-checkout .btn-arrow {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--black);
    transition: transform var(--transition-fast);
}

.btn-checkout:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-lock-icon {
    font-size: 14px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 121, 66, 0.5), var(--glow-orange);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 15, 10, 0.3);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Legal */
.checkout-legal {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--grey);
    opacity: 0.6;
    text-align: center;
    line-height: 1.6;
    margin-top: 16px;
    letter-spacing: 0.3px;
}

.legal-link {
    color: var(--grey);
    text-decoration: underline;
    opacity: 0.8;
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: var(--orange);
}

/* Stripe Branding */
.stripe-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--grey);
    opacity: 0.5;
    letter-spacing: 0.5px;
    padding: 0 4px;
}

.stripe-logo-inline {
    width: 48px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================
   FADE-IN ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-summary-col {
    animation: fadeInUp 0.6s ease both;
}

.checkout-form-col {
    animation: fadeInUp 0.6s ease 0.15s both;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .checkout-summary-col {
        position: static;
    }

    .checkout-hero-content {
        padding: 100px 24px 0;
    }

    .checkout-title-line {
        font-size: clamp(48px, 12vw, 80px);
    }
}

@media (max-width: 600px) {
    .checkout-hero {
        min-height: 260px;
        padding-bottom: 40px;
    }

    .payment-form-card {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .secure-badge {
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-brands {
        margin-left: 0;
    }

    .summary-amount {
        font-size: 60px;
    }

    .checkout-main {
        padding: 40px 0 60px;
    }
}
