
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}



/*   promo Virement SEPA    */

.buynow.badge-virement-promo {
  position: relative;
  /*top: 16px;*/
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  padding-right: 40px; /* Espace pour le badge */


}

.buynow.badge-virement-promo .buynow-promo-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}
/*   *****************   */




.btn-copy {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(0);
}

.reference-highlight {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}




.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.test-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.1);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.test-button:hover {
    opacity: 1;
    background: rgba(0,0,0,0.2);
}

.header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    text-align: center;
}




.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;

    display:flex;
    align-items:center;
    justify-content: center;
    gap:10px;

}


.header h1 img{
    height:60px;
}

.summary-label{

    font-size: 0.8em;
}
#totalPriceStep1{
 white-space: nowrap;
}



.header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.3);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    width: 33.33%;
}

.step-container {
    padding: 40px;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

input.buynow-form-input[type="email"], input.buynow-form-input[type="text"], textarea, select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input.buynow-form-input[type="email"]:focus, input.buynow-form-input[type="text"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.customer-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.customer-option {
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.customer-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.customer-option h3 {
    margin-bottom: 5px;
}

.payment-methods {
    display: grid;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.payment-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.payment-option.selected .payment-icon {
    background: rgba(255,255,255,0.2);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    margin-right: 10px;
    width: auto;
    padding: 15px 30px;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vat-field, .business-fields {
    display: none;
    animation: slideDown 0.3s ease;
}

.vat-field.show, .business-fields.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; height: 0; }
    to { opacity: 1; height: auto; }
}

.bank-details {
    background: #f8f9ff;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

.bank-details h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.bank-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid #667eea;
}

.reference-highlight {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.reference-highlight strong {
    color: #856404;
    font-size: 1.2rem;
}

.price-summary {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #667eea;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-total {
    border-top: 2px solid #667eea;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-info {
    background: #f8f9ff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.legal-info h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.legal-info a {
    color: #667eea;
    text-decoration: none;
}

.legal-info a:hover {
    text-decoration: underline;
}

/* Consentement rétractation - Art. L221-28 */
.buynow-consent-block {
    background: #fff8e1;
    border: 2px solid #ffb300;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0 10px 0;
}

.buynow-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    margin-bottom: 0;
}

.buynow-consent-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.buynow-consent-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.buynow-consent-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 32px;
}

.buynow-consent-block.buynow-consent-block--error {
    border-color: #dc3545;
    background: #fff5f5;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 0.9em;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hide-original-price .original-price {
    display: none;
}