:root {
    --primary-color: #6415C8;        /* Violet principal */
    --secondary-color: #5170FF;      /* Bleu utilisé dans les dégradés */
    --dark-bg: #FFFFFF;              /* Fond blanc (version light) */
    --cta-color: #FFFF00;            /* Jaune pour les CTA */
    --cta-hover: #E7E704;            /* Jaune légèrement plus foncé pour hover */
    --text-light: #111111;           /* Texte principal sur fond clair */
    --text-secondary: #4B5563;       /* Texte secondaire sur fond clair */
    --accent-color: #836FFE;         /* Accent violet clair */
    --border-radius: 40px;           /* Rayon des boutons */
    --border-radius-small: 12px;     /* Rayon des cartes */
    --card-bg: #F9F9FF;              /* Fond de carte légèrement teinté */
    --bump-bg: #F0EDFF;              /* Fond pour l'offre bump légèrement teinté */
    --input-bg: #F5F5F5;             /* Fond des champs de formulaire */
    --input-border: #E2E8F0;         /* Bordure des champs de formulaire */
}

body {
    color: var(--text-light);
    background-color: var(--dark-bg);
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 28px;
    margin: 0;
    padding: 0;
}

.checkout-container {
    max-width: 1172px;
    margin: 0 auto;
    padding: 48px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}

/* Header */
.header {
    z-index: 99999;
    position: sticky;
    top: 0;
    background-image: linear-gradient(90deg, #1E073A, #083368 50%, #1E073A);
    border-bottom: 0 solid #334155;
    width: 100%;
}

.header-wrapper {
    max-width: 1172px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #FFFFFF; /* Maintenir le texte blanc dans l'entête */
}

.header-logo {
    max-height: 32px;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color); /* Adapter la couleur des titres */
}

h2 {
    font-size: 48px;
    line-height: 54px;
}

h3 {
    font-size: 36px;
    line-height: 42px;
}

h4 {
    font-size: 28px;
    line-height: 36px;
}

/* Colonnes */
.checkout-column {
    flex: 1;
    min-width: 300px;
}

.main-column {
    flex: 7;
    background-color: var(--dark-bg);
    border-radius: var(--border-radius-small);
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar {
    flex: 5;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-small);
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Formulaire */
.form-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.half-width {
    flex: 0 0 calc(50% - 8px); /* Pour tenir compte du gap */
    max-width: calc(50% - 8px);
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

/* S'assurer que les champs d'entrée occupent toute la largeur de leur conteneur */
.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box; /* Important pour que le padding ne s'ajoute pas à la largeur */
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
}

/* Stripe Elements styling */
.stripe-element {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
}

.stripe-element.StripeElement--focus {
    border-color: var(--primary-color);
    outline: none;
}

.stripe-element.StripeElement--invalid {
    border-color: #dc3545;
}

#card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Bump offer */
.bump-offer {
    display: flex;
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin: 30px 0;
    background-color: var(--bump-bg);
    gap: 16px;
}

.bump-checkbox {
    margin-right: 12px;
    display: flex;
    align-items: flex-start;
}

.bump-content h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.bump-content p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-light);
}

.bump-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 20px;
}

/* Custom checkbox */
.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(129, 110, 254, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Boutons CTA */
.order-button {
    background-color: var(--cta-color);
    color: #000000;
    border: none;
    border-bottom: 4px solid #858522; /* Effet 3D comme sur vos boutons */
    border-radius: var(--border-radius);
    padding: 14px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease;
    margin: 24px 0;
    text-transform: uppercase;
}

.order-button:hover {
    border-bottom-color: var(--cta-color);
    transform: translateY(2px);
}

/* Informations de paiement */
.payment-section {
    margin: 30px 0;
}

.payment-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    background-color: var(--input-bg);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--input-border);
}

.payment-method.active {
    border-color: var(--accent-color);
    background-color: rgba(129, 110, 254, 0.2);
}

.payment-method img {
    height: 24px;
}

/* Récapitulatif de commande */
.order-summary {
    margin-bottom: 30px;
}

.order-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-name {
    font-size: 18px;
    line-height: 24px;
}

.product-price {
    font-weight: 700;
    font-size: 18px;
}

.bump-item {
    display: none;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

/* Liste des bénéfices */
.product-benefits {
    margin-top: 30px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 24px;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Badges de confiance */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.secure-payment, .guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.secure-payment img, .guarantee img {
    width: 20px;
    height: 20px;
}

/* Témoignages */
.testimonials {
    margin-top: 40px;
    text-align: center;
}

.testimonial-wrapper {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.testimonial {
    font-style: italic;
    line-height: 28px;
    color: var(--text-light);
}

.stars {
    color: #FFD700; /* Gold color for stars */
    font-size: 20px;
    margin-bottom: 10px;
}

.testimonial-author {
    margin-top: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Éléments spécifiques */
.countdown {
    background-color: var(--bump-bg);
    border-radius: 9px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.clock-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: var(--primary-color);
}

.countdown-text {
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-container {
        padding: 32px 16px;
    }
    
    h2 {
        font-size: 36px;
        line-height: 42px;
    }
    
    h3 {
        font-size: 28px;
        line-height: 34px;
    }
    
    .order-button {
        font-size: 18px;
        padding: 12px 20px;
    }
}

@media (max-width: 767px) {
    .checkout-container {
        flex-direction: column;
    }
    
    .main-column,
    .sidebar {
        padding: 24px 16px;
    }
    
    h2 {
        font-size: 30px;
        line-height: 36px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .bump-offer {
        flex-direction: column;
        padding: 16px;
    }
    
    .bump-content h4 {
        font-size: 18px;
    }
}

@media (max-width: 479px) {
    .checkout-container {
        padding: 24px 12px;
    }
    
    .main-column,
    .sidebar {
        padding: 20px 12px;
    }
    
    h2 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .product-name,
    .product-price {
        font-size: 16px;
    }
    
    .order-total {
        font-size: 20px;
    }
    
    .order-button {
        font-size: 16px;
        padding: 12px 16px;
    }
}
