/**
 * Styles pour la popup de commande
 */

.order-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.order-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-popup-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.order-popup-overlay.active .order-popup-container {
    transform: scale(1);
}

.order-popup-content {
    background: white;
    border-radius: 18px;
    padding: 0;
    position: relative;
}

.order-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.order-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.order-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
    border-radius: 18px 18px 0 0;
}

.order-popup-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.order-popup-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.order-popup-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.order-popup-body {
    padding: 30px;
}

.order-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.order-value {
    font-weight: 700;
    color: #34495e;
    font-size: 16px;
}

.order-price-item {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.2);
    border-bottom: none;
}

.order-price {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-payment-options {
    margin-top: 20px;
}

.payment-options-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.payment-btn:hover::before {
    left: 100%;
}

.payment-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.payment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-btn-stripe {
    border-color: #635bff;
}

.payment-btn-stripe:not(:disabled):hover {
    background: linear-gradient(135deg, #635bff 0%, #4c45d8 100%);
    color: white;
    border-color: #635bff;
}

.payment-btn-paypal {
    border-color: #0070ba;
}

.payment-btn-paypal:not(:disabled):hover {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
    border-color: #0070ba;
}

.payment-btn-subscription {
    border-color: #27ae60;
}

.payment-btn-subscription:not(:disabled):hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border-color: #27ae60;
}

.payment-btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.payment-btn-stripe .payment-btn-icon {
    background: linear-gradient(135deg, #635bff 0%, #4c45d8 100%);
    color: white;
}

.payment-btn-paypal .payment-btn-icon {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
}

.payment-btn-subscription .payment-btn-icon {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.payment-btn:hover .payment-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.payment-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-btn-title {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}

.payment-btn:hover .payment-btn-title {
    color: white;
}

.payment-btn-subtitle {
    font-size: 13px;
    color: #7f8c8d;
}

.payment-btn:hover .payment-btn-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.payment-btn-arrow {
    font-size: 20px;
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.payment-btn:not(:disabled):hover .payment-btn-arrow {
    color: white;
    transform: translateX(5px);
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

.payment-info i {
    font-size: 20px;
}

.payment-loading {
    text-align: center;
    padding: 40px 20px;
}

.payment-loading p {
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.payment-error {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-radius: 12px;
    color: #c0392b;
}

.payment-error i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.payment-error p {
    margin: 10px 0;
    font-size: 14px;
}

.error-contact {
    font-weight: 600;
    margin-top: 15px;
}

.error-contact a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px solid #2980b9;
}

.error-contact a:hover {
    color: #1abc9c;
    border-color: #1abc9c;
}

/* Conteneur PayPal personnalisé */
.paypal-custom-wrapper {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.paypal-custom-wrapper h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.paypal-custom-wrapper h4 i {
    color: #0070ba;
    margin-right: 10px;
    font-size: 24px;
}

#paypalButtonWrapper {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Style pour les boutons PayPal générés */
#paypalButtonWrapper > div {
    margin: 10px auto;
    max-width: 400px;
    width: 100%;
}

/* Formulaire Crystal */
.crystal-contact-form {
    padding: 20px 0;
}

.crystal-header {
    text-align: center;
    margin-bottom: 30px;
}

.crystal-header i {
    font-size: 48px;
    background: linear-gradient(135deg, #FA709A 0%, #FEE140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block;
}

.crystal-header h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.crystal-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.crystal-contact-form .form-group {
    margin-bottom: 20px;
}

.crystal-contact-form label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.crystal-contact-form label i {
    margin-right: 8px;
    color: #FA709A;
}

.crystal-contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.crystal-contact-form .form-control:focus {
    border-color: #FA709A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(250, 112, 154, 0.1);
}

.crystal-contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.btn-crystal-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FA709A 0%, #FEE140 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(250, 112, 154, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-crystal-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 112, 154, 0.4);
}

.btn-crystal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-feedback {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.form-feedback.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-feedback.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-feedback i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .order-popup-container {
        margin: 10px;
        max-height: 95vh;
    }
    
    .order-popup-header {
        padding: 30px 20px 20px;
    }
    
    .order-popup-title {
        font-size: 24px;
    }
    
    .order-popup-body {
        padding: 20px;
    }
    
    .payment-btn {
        padding: 15px;
    }
    
    .payment-btn-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Animation de scroll personnalisée */
.order-popup-container::-webkit-scrollbar {
    width: 8px;
}

.order-popup-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.order-popup-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.order-popup-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ===== FORMULAIRE D'INFORMATIONS CLIENT ===== */
.client-info-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.form-intro {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.form-intro i {
    margin-right: 8px;
    font-size: 16px;
}

.client-info-form .form-group {
    margin-bottom: 20px;
}

.client-info-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.client-info-form label i {
    margin-right: 6px;
    color: #667eea;
}

.client-info-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #333333;
}

/* Correction pour les menus déroulants dans les popups de commande */
.client-info-form select.form-control {
    background: #ffffff;
    color: #333333;
    border: 2px solid #e0e0e0;
}

.client-info-form select.form-control option {
    background: #ffffff;
    color: #333333;
    padding: 8px;
}

.client-info-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    margin-top: 25px;
}

.btn-continue {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.btn-continue i {
    transition: transform 0.3s ease;
}

.btn-continue:hover i {
    transform: translateX(5px);
}

/* Message de confirmation */
.contact-confirmation {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-confirmation i {
    font-size: 40px;
    margin-bottom: 10px;
    animation: checkPulse 1s ease-in-out;
}

.contact-confirmation p {
    margin: 8px 0;
    font-size: 14px;
}

.contact-confirmation p:first-of-type {
    font-size: 16px;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

