/* === STYLE MODERNE POUR LE TUNNEL DE PAIEMENT - MISE À JOUR === */

.modern-checkout {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
}
 
/* === INDICATEUR DE PROGRESSION MODERNE - VERSION CORRIGÉE === */

/* Conteneur principal avec préfixe unique pour éviter les conflits */
.progress-container-modern {
    max-width: 950px !important;
    margin: 0 auto !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* Timer de réservation */
.progress-container-modern .reservation-timer {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 20px rgba(55, 65, 81, 0.15) !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.progress-container-modern .reservation-timer.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    animation: pulse-warning 2s ease-in-out infinite !important;
}

.progress-container-modern .reservation-timer.critical {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    animation: pulse-critical 1s ease-in-out infinite !important;
}

.progress-container-modern .timer-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    flex-wrap: nowrap !important;
}

.progress-container-modern .timer-content i {
    font-size: 18px !important;
    opacity: 0.9 !important;
}

.progress-container-modern .timer-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
}

.progress-container-modern .timer-display {
    font-family: 'Courier New', monospace !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    backdrop-filter: blur(10px) !important;
    min-width: 70px !important;
    text-align: center !important;
}

.progress-container-modern .timer-display.expired {
    animation: blink 0.5s ease-in-out infinite !important;
}

.progress-container-modern .timer-progress {
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
}

.progress-container-modern .timer-progress-bar {
    height: 100% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 2px !important;
    transition: width 0.3s ease !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

/* Progression des étapes moderne */
.modern-steps-progression {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 15px !important;
    display: block !important;
}

.modern-steps-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

.modern-progress-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    min-width: 70px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.modern-progress-step.active .modern-step-circle {
    background: #374151 !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3) !important;
}

.modern-progress-step.completed .modern-step-circle {
    background: #6b7280 !important;
    color: white !important;
}

.modern-step-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #e5e7eb !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    margin: 0 auto 8px auto !important;
    border: none !important;
    outline: none !important;
}

.modern-step-label {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.modern-progress-step.active .modern-step-label {
    color: #374151 !important;
    font-weight: 600 !important;
}

.modern-progress-line {
    height: 2px !important;
    background: #e5e7eb !important;
    flex: 1 !important;
    margin: 0 10px !important;
    border-radius: 2px !important;
    min-width: 20px !important;
    align-self: center !important;
    position: relative !important;
    top: -15px !important;
    display: block !important;
    float: none !important;
}

/* Réinitialisation Bootstrap */
.progress-container-modern .modern-steps-wrapper,
.progress-container-modern .modern-progress-step,
.progress-container-modern .modern-progress-line,
.progress-container-modern .modern-step-circle,
.progress-container-modern .modern-step-label {
    float: none !important;
    position: relative !important;
    clear: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Surcharge pour forcer les styles */
.progress-container-modern * {
    box-sizing: border-box !important;
}

.progress-container-modern .modern-steps-wrapper > * {
    display: flex !important;
}

.progress-container-modern .modern-progress-line {
    display: block !important;
    flex: 1 !important;
}

/* === INDICATEUR DE PROGRESSION CLASSIQUE (à conserver pour compatibilité) === */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    padding: 0 15px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-circle {
    background: #374151;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.progress-step.completed .step-circle {
    background: #6b7280;
    color: white;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.3s ease;
}

.progress-step.active .step-label {
    color: #374151;
    font-weight: 600;
}

.progress-line {
    height: 2px;
    background: #e5e7eb;
    flex: 1;
    margin: 0 15px;
    border-radius: 2px;
}

/* === CARTES === */
.step-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: visible;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.step-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.card-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.header-icon i {
    font-size: 18px;
}

.header-content h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    font-weight: 400;
}

.card-body {
    padding: 25px;
    overflow: visible;
}

/* === CARTES SPÉCIALISÉES === */

/* Carte de succès */
.success-card .success-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.success-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.success-details {
    text-align: center;
    padding: 20px 0;
}

.success-animation {
    margin: 20px 0;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.checkmark-circle.animate {
    animation: checkmarkPulse 0.6s ease-out;
}

.checkmark {
    width: 30px;
    height: 15px;
    border: 3px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    opacity: 0;
}

.checkmark-circle.animate .checkmark {
    animation: checkmarkDraw 0.3s ease-out 0.3s forwards;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkDraw {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.success-message {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* Carte d'erreur */
.error-card .error-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.error-details {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
}

.error-details h4 {
    margin: 0 0 8px 0;
    color: #dc2626;
    font-size: 16px;
    font-weight: 600;
}

.error-details p {
    margin: 0;
    color: #7f1d1d;
    font-size: 14px;
}

/* Carte d'expiration (pour session-expiry) */
.expiry-card .expiry-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.expiry-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.expiry-details {
    text-align: center;
    padding: 20px 0;
}

.expiry-animation {
    margin: 20px 0;
}

/* Animation de l'horloge */
.clock-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.clock-hands {
    position: relative;
    width: 40px;
    height: 40px;
}

.hour-hand, .minute-hand {
    position: absolute;
    background: white;
    border-radius: 2px;
    transform-origin: bottom center;
    transition: transform 1s ease-in-out;
}

.hour-hand {
    width: 3px;
    height: 15px;
    top: 5px;
    left: 50%;
    margin-left: -1.5px;
}

.minute-hand {
    width: 2px;
    height: 18px;
    top: 2px;
    left: 50%;
    margin-left: -1px;
}

.clock-circle::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.expiry-message p {
    font-size: 16px;
    color: #374151;
    margin: 10px 0;
    line-height: 1.6;
}

.secondary-message {
    color: #6b7280 !important;
    font-size: 14px !important;
}

/* Animation de pulsation pour l'horloge */
.clock-circle {
    animation: clockPulse 3s ease-in-out infinite;
}

@keyframes clockPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
    }
}

/* === CHAMPS DE FORMULAIRE === */

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    overflow: visible;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.input-container {
    position: relative;
    margin-bottom: 0;
}

.modern-input, .modern-textarea, .modern-input-sm, .modern-select {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.modern-input-sm {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
}

.modern-select {
    padding: 14px 40px 14px 14px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

.modern-input::placeholder,
.modern-textarea::placeholder {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-input:focus:placeholder-shown::placeholder,
.modern-textarea:focus:placeholder-shown::placeholder {
    opacity: 1;
}

.modern-input:focus,
.modern-textarea:focus,
.modern-input-sm:focus,
.modern-select:focus {
    outline: none;
    border-color: #374151;
    background: white;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.1);
}

.floating-label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 15px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.modern-input:focus + .floating-label,
.modern-input:not(:placeholder-shown) + .floating-label {
    top: -1px;
    left: 36px;
    transform: translateY(0);
    font-size: 11px;
    color: #374151;
    background: white;
    font-weight: 500;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    transition: color 0.3s ease;
}

.modern-input:focus ~ .input-icon {
    color: #374151;
}

/* Grid de formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.form-grid-three {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

/* === BOUTONS === */

.btn-primary-modern {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.btn-primary-modern:hover {
    color:white;
}

.btn-primary-modern:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(55, 65, 81, 0.3);
}

.btn-primary-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary-modern {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary-modern:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-ghost-modern {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-ghost-modern:hover {
    background: #f9fafb;
    color: #374151;
}

.btn-payment-modern {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 240px;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-payment-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(107, 114, 128, 0.3);
    text-decoration: none;
    color: white;
}

.btn-payment-modern:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-payment-modern.loading .btn-content {
    opacity: 0;
}

.btn-payment-modern.loading .btn-loader {
    opacity: 1;
}

/* Effet pulse sur le bouton de paiement quand il y a des erreurs */
.btn-payment-modern.has-errors {
    animation: pulse-button 1s ease-in-out 2;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
    }
    50% {
        box-shadow: 0 6px 30px rgba(220, 38, 38, 0.4);
    }
    100% {
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
    }
}

/* Petits boutons pour billets */
.btn-save-sm, .btn-cancel-sm, .btn-edit-sm {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.btn-save-sm {
    background: #059669;
    color: white;
}

.btn-save-sm:hover {
    background: #047857;
}

.btn-cancel-sm {
    background: #6b7280;
    color: white;
}

.btn-cancel-sm:hover {
    background: #4b5563;
}

.btn-edit-sm {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-edit-sm:hover {
    background: #f9fafb;
    color: #374151;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* === CARTES D'UTILISATEUR === */

.user-connected-card, .user-recognized-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #9ca3af;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar, .recognition-icon {
    width: 40px;
    height: 40px;
    background: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.user-info h3, .recognition-content h3 {
    margin: 0 0 4px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.email-display, .recognition-content p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.recognition-content {
    flex: 1;
}

/* === RAPPEL EMAIL === */

.email-reminder {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-reminder i {
    color: #6b7280;
}

/* === BANIÈRES D'INFORMATION === */

.welcome-message {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #475569;
    font-size: 14px;
    line-height: 20px;
}

.info-banner {
    background: #f3f4f6;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.info-banner.warning {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.info-banner i {
    font-size: 14px;
}

/* === SECTIONS EMAIL === */

.email-input-group {
    margin-bottom: 20px;
}

.email-change-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

/* === MESSAGES DE VALIDATION === */

.validation-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 18px;
}

.validation-message.success {
    color: #6b7280;
}

.validation-message.error {
    color: #dc2626;
}

.validation-message.loading {
    color: #6b7280;
}

.help-text {
    color: #6b7280;
    font-size: 12px;
    margin-top: 6px;
}

/* === CHECKBOXES ET TOGGLES === */

.checkbox-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
}

/* Styling amélioré pour les checkbox requises */
.checkbox-card.required {
    border: 2px solid #6b7280;
    background: #f9fafb;
    padding: 20px;
}

.checkbox-card.required:hover {
    border-color: #374151;
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tooltip au survol pour les checkbox non cochées */
.checkbox-card.required:not(.checked)::before {
    content: "Cliquez pour accepter";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #374151;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.checkbox-card.required:not(.checked):hover::before {
    transform: translateX(-50%) scale(1);
}

/* Flèche du tooltip */
.checkbox-card.required:not(.checked)::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #374151;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.checkbox-card.required:not(.checked):hover::after {
    transform: translateX(-50%) scale(1);
}

/* Indicateur obligatoire */
.required-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
}

.required-indicator i {
    font-size: 8px;
}

.required-label {
    color: #dc2626;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-card:hover {
    border-color: #6b7280;
    background: #f3f4f6;
}

/* État d'erreur pour les checkbox-card */
.checkbox-card.error {
    border: 2px solid #dc2626;
    background: #fee2e2;
    animation: shake 0.5s ease-in-out;
}

.checkbox-card.error:hover {
    border-color: #b91c1c;
    background: #fecaca;
}

.checkbox-card.error .checkbox-content h4 {
    color: #991b1b;
}

.checkbox-card.error .checkbox-content p {
    color: #b91c1b;
}

/* Animation de secousse pour attirer l'attention */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Animation de pulsation pour attirer l'attention sur les checkbox non cochées */
.checkbox-card.pulse-attention {
    animation: pulseAttention 0.5s ease-in-out 3;
}

@keyframes pulseAttention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Message d'erreur pour les checkbox */
.checkbox-error-message {
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    margin-top: -8px;
    margin-bottom: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
}

.checkbox-error-message.show {
    display: flex;
    animation: slideInError 0.3s ease-out;
}

.checkbox-error-message i {
    font-size: 14px;
}

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

.checkbox-card.compact {
    padding: 14px;
}

/* Rendre la zone de clic plus large pour les checkbox requises */
.checkbox-card.required.compact {
    padding: 18px 20px;
    min-height: 80px;
}

/* État coché pour les checkbox-card */
.checkbox-card.checked {
    border-color: #059669;
    background: #ecfdf5;
}

.checkbox-card.checked .checkbox-content h4 {
    color: #047857;
}

.checkbox-card.checked .toggle-switch {
    background: #059669;
}

.checkbox-content {
    flex: 1;
}

.checkbox-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.checkbox-header i {
    color: #6b7280;
    font-size: 16px;
}

.checkbox-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.checkbox-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.checkbox-content p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-content small {
    color: #9ca3af;
    font-size: 11px;
    display: block;
    margin-top: 4px;
}

.checkbox-toggle {
    display: flex;
    align-items: center;
}
.checkbox-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Toggle switch plus proéminent pour les checkbox requises */
.checkbox-card.required .toggle-switch {
    width: 56px;
    height: 28px;
    border-radius: 14px;
    background: #9ca3af;
}

.toggle-switch .slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-card.required .toggle-switch .slider {
    width: 24px;
    height: 24px;
}

input[type="checkbox"]:checked + .toggle-switch {
    background: #6b7280;
}

input[type="checkbox"]:checked + .toggle-switch .slider {
    transform: translateX(24px);
}

.checkbox-card.required input[type="checkbox"]:checked + .toggle-switch .slider {
    transform: translateX(28px);
}

/* Couleur verte pour l'état coché des checkbox requises */
.checkbox-card.required input[type="checkbox"]:checked + .toggle-switch {
    background: #059669;
}

/* === TÉLÉPHONE === */

.phone-input-wrapper {
    position: relative;
}

.phone-input-container {
    display: flex;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.3s ease;
    overflow: visible;
}

.phone-input-container:focus-within {
    border-color: #374151;
    background: white;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.1);
}

.country-selector {
    position: relative;
}

.country-btn {
    padding: 14px 12px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    min-width: 80px;
    border-right: 1px solid #e5e7eb;
}

.country-btn:hover {
    background: rgba(55, 65, 81, 0.05);
}

.country-dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.country-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.country-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease;
}

.country-dropdown a:hover {
    background: #f3f4f6;
}

.flex-1 {
    flex: 1;
}

.phone-input-container .modern-input {
    border: none;
    background: transparent;
    padding-left: 14px;
}

.phone-input-container .floating-label {
    left: 14px;
}

.phone-input-container .modern-input:focus + .floating-label,
.phone-input-container .modern-input:not(:placeholder-shown) + .floating-label {
    left: 10px;
}

/* === RÉSUMÉ ÉVÉNEMENT === */

.event-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.event-image img {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.event-details h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.event-location, .event-date {
    margin: 4px 0;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === LISTE DE CONSEILS (pour session expiry) === */
.tips-list {
    display: grid;
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.tip-item.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.tip-content p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.tips-list .tip-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Indicateurs visuels pour les tips */
.tip-item:nth-child(1) .tip-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tip-item:nth-child(2) .tip-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.tip-item:nth-child(3) .tip-icon {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* === SÉLECTION DES BILLETS === */

.tickets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.ticket-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ticket-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticket-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.ticket-info {
    flex: 1;
}

.ticket-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.ticket-ref {
    margin: 0;
    opacity: 0.9;
    font-size: 12px;
}

.ticket-price {
    font-weight: 600;
    font-size: 16px;
}

.ticket-body {
    padding: 20px;
}

.ticket-details {
    margin-bottom: 15px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.ticket-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selection-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-size: 12px;
    margin-top: 8px;
}

.no-tickets-available {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-tickets-icon i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.no-tickets-available h3 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

/* === APERÇU COMMANDE === */

.order-summary-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-icon {
    width: 32px;
    height: 32px;
    background: #6366f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.total-items {
    font-weight: 500;
    color: #374151;
}

.total-price {
    font-weight: 600;
    font-size: 18px;
    color: #374151;
}

/* === CODE PROMO === */

.promo-input-group {
    display: flex;
    gap: 12px;
    align-items: end;
}

.promo-input-group .input-container {
    flex: 1;
}

/* === PARTICIPANTS === */

.attendee-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.attendee-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


.attendee-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.attendee-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.attendee-type {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.attendee-fields {
    padding: 25px;
}

/* === PLACES === */

.seats-summary {
    margin-bottom: 30px;
}

.seats-summary h3 {
    margin: 0 0 20px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.attendees-seats-grid {
    display: grid;
    gap: 15px;
}

.attendee-seat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attendee-info {
    flex: 1;
}

.attendee-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.seat-info .seat-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
}

.no-seat-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 13px;
}

.btn-edit-seat {
    background: #6366f1;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-edit-seat:hover {
    background: #4f46e5;
    text-decoration: none;
    color: white;
}

.venue-chart-container {
    margin-top: 30px;
}

.venue-chart-container h3 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.chart-info {
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.available {
    background: #e5e7eb;
}

.legend-color.selected {
    background: #4cae4c;
}

.legend-color.unavailable {
    background: #dc2626;
}

.venue-chart {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 400px;
    background: white;
}

/* === BILLETS (confirmation) === */

.ticket-holder {
    margin-bottom: 20px;
}

.holder-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.ticket-holder-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.holder-name {
    color: #1f2937;
    font-size: 16px;
}

.ticket-name-form .form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.save-status {
    font-size: 12px;
    font-weight: 500;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-ticket-action {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-ticket-action:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    text-decoration: none;
    color: #1f2937;
}

.ticket-details-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.ticket-detail {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail-label {
    color: #6b7280;
}

.detail-value {
    font-weight: 500;
    color: #1f2937;
}

/* === PARTAGE === */

.share-section {
    text-align: center;
}

.share-link-container {
    margin: 20px 0;
}

.share-link-container .input-container {
    display: flex;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.share-link-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: #f9fafb;
    font-size: 14px;
    color: #374151;
}

.copy-btn {
    padding: 12px 20px;
    background: #374151;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: #1f2937;
}

.copy-btn.copied {
    background: #059669;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    text-decoration: none;
    color: white;
}

/* === FIDÉLITÉ === */

.loyalty-info {
    text-align: center;
}

.loyalty-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.loyalty-badge i {
    font-size: 24px;
}

.points-earned {
    font-size: 32px;
    font-weight: 700;
}

.points-label {
    font-size: 14px;
    opacity: 0.9;
}

/* === DÉTAILS DE COMMANDE === */

.order-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #6b7280;
}

.detail-value {
    font-weight: 600;
    color: #1f2937;
}

.order-number {
    font-family: monospace;
    background: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

/* === INFORMATIONS COMPTE === */

.account-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
}

/* === SÉCURITÉ === */

.security-info {
    margin-top: 30px;
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.security-badge i {
    font-size: 24px;
    color: #059669;
}

/* === MESSAGES D'ERREUR === */

.error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.error-icon {
    color: #dc2626;
    font-size: 24px;
}

.error-content h4 {
    margin: 0 0 8px 0;
    color: #dc2626;
    font-size: 16px;
    font-weight: 600;
}

.error-content p {
    margin: 0;
    color: #7f1d1d;
    font-size: 14px;
}

/* === SECTIONS PERSONNALISÉES === */

.custom-form-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.custom-form-section h3, .custom-form-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.email-tickets-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* === SECTION DE SOUMISSION === */

.submit-section {
    margin-top: 25px;
    text-align: center;
}

.final-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* === BADGE AVEC NOMBRE === */

.badge {
    background: #6366f1;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* === MODERNISATION DES ÉLÉMENTS EXISTANTS === */

/* Modernisation des panels */
.panel.panel-default, .panel.panel-primary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.panel-default.panel-heading, .panel-heading {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    padding: 20px;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

/* Modernisation des boutons existants */
.btn.btn-block.btn-lg,
.btn.btn-success.btn-block,
.btn-resa-etape-contenu {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(55, 65, 81, 0.2);
}

.btn.btn-block.btn-lg:hover,
.btn.btn-success.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(55, 65, 81, 0.3);
}

/* === PRODUCT PRICE ROW LAYOUT === */

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    line-height: normal;
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1.5px solid #e5e7eb;
}
/* Dark mode : la séparatrice claire #e5e7eb ressort beaucoup trop sur fond noir,
   on la passe en gris translucide subtil. Idem pour la note de ligne (resto). */
html.dark-mode .product-price-row,
html.dark-mode .line-note-container {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.product-price-col {
    flex: 1 1 auto;
    min-width: 0;
}

.product-price-col .produit_prix {
    color: #1f2937;
    letter-spacing: 0.3px;
}

.product-qty-col {
    flex: 0 0 auto;
}

.premium-credit-line {
    line-height: 1.4;
    margin-top: 6px;
    display: block;
}

.premium-credit-line .label {
    font-size: 11px !important;
    white-space: nowrap;
}

/* === QUANTITY SELECTOR (pill/oval shape) === */

.qty-btn-group {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    padding: 0;
    gap: 0;
    background: #f9fafb;
    overflow: hidden;
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #6b7280;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    line-height: 1;
    box-shadow: none;
}

.qty-btn.qty-minus {
    border-right: 1.5px solid #d1d5db;
    border-radius: 999px 0 0 999px;
}

.qty-btn.qty-plus {
    border-left: 1.5px solid #d1d5db;
    border-radius: 0 999px 999px 0;
}

.qty-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.qty-btn:active {
    background: #d1d5db;
}

.qty-btn:disabled {
    background: transparent;
    color: #d1d5db;
    cursor: not-allowed;
}

.qty-display.selectQuantity {
    width: 36px;
    height: 38px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    background: transparent;
    padding: 0;
    min-width: unset;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

/* Quand la quantité est > 0 */
.qty-btn-group.has-qty {
    border-color: #34d399;
    background: #f0fdf4;
}

.qty-btn-group.has-qty .qty-btn.qty-minus {
    border-right-color: #a7f3d0;
}

.qty-btn-group.has-qty .qty-btn.qty-plus {
    border-left-color: #a7f3d0;
}

.qty-btn-group.has-qty .qty-btn {
    color: #059669;
}

.qty-btn-group.has-qty .qty-display.selectQuantity {
    color: #059669;
    font-weight: 700;
}

.qty-display.selectQuantity::-webkit-outer-spin-button,
.qty-display.selectQuantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .qty-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .qty-display.selectQuantity {
        width: 32px;
        height: 34px;
        font-size: 14px;
    }
}

/* === ANIMATIONS === */

/* Animations pour le timer */
@keyframes pulse-warning {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15) !important;
        transform: scale(1) !important;
    }
    50% { 
        box-shadow: 0 6px 25px rgba(245, 158, 11, 0.25) !important;
        transform: scale(1.02) !important;
    }
}

@keyframes pulse-critical {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15) !important;
        transform: scale(1) !important;
    }
    50% { 
        box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3) !important;
        transform: scale(1.03) !important;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1 !important; }
    51%, 100% { opacity: 0.3 !important; }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

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

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

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .modern-checkout {
        padding: 10px;
    }

    .card-header {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .card-body {
        padding: 20px 16px;
    }

    .progress-container {
        margin: 15px 0;
    }

    .progress-line {
        margin: 0 8px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-label {
        font-size: 11px;
    }

    /* Responsive pour le nouveau système de progression */
    .progress-container-modern .reservation-timer {
        padding: 12px 16px !important;
        margin-bottom: 15px !important;
    }
    
    .progress-container-modern .timer-content {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .progress-container-modern .timer-display {
        font-size: 18px !important;
        min-width: 60px !important;
    }
    
    .progress-container-modern .timer-label {
        font-size: 13px !important;
        text-align: center !important;
    }
    
    .modern-steps-progression {
        padding: 15px 5px !important;
    }
    
    .modern-progress-line {
        margin: 0 5px !important;
        min-width: 15px !important;
    }
    
    .modern-step-circle {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .modern-step-label {
        font-size: 12px !important;
        max-width: 65px !important;
    }
    
    .modern-progress-step {
        min-width: 55px !important;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }

    .phone-input-container {
        flex-direction: column;
    }

    .country-btn {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        justify-content: center;
    }

    .user-connected-card,
    .user-recognized-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .checkbox-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .attendee-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .attendee-fields {
        padding: 20px 16px;
    }

    .event-summary {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .event-details h3 {
        font-size: 18px;
    }

    .promo-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .info-row, .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ticket-actions {
        flex-direction: column;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .final-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .attendee-seat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .seat-info .seat-details {
        flex-direction: column;
        gap: 5px;
    }

    .chart-legend {
        justify-content: flex-start;
        gap: 15px;
    }

    .error-message {
        flex-direction: column;
        text-align: center;
    }

    .security-badges {
        gap: 20px;
    }

    .security-badge {
        font-size: 12px;
    }

    .security-badge i {
        font-size: 20px;
    }

    .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .clock-circle {
        width: 60px;
        height: 60px;
    }
    
    .hour-hand {
        height: 12px;
        top: 6px;
    }
    
    .minute-hand {
        height: 15px;
        top: 3px;
    }
}

@media (max-width: 480px) {
    .modern-steps-progression {
        padding: 10px 2px !important;
    }
    
    .modern-progress-line {
        margin: 0 3px !important;
        min-width: 10px !important;
    }
    
    .modern-step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }
    
    .modern-step-label {
        font-size: 11px !important;
        max-width: 50px !important;
    }
    
    .modern-progress-step {
        min-width: 45px !important;
    }
}

/* === ÉTATS DE FOCUS === */
.btn-primary-modern:focus,
.btn-secondary-modern:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* === AMÉLIORATION DE LA LISIBILITÉ === */
.expiry-message {
    max-width: 500px;
    margin: 0 auto;
}

/* === COMPATIBILITÉ AVEC LES ANCIENS SYSTÈMES === */

/* Masquer l'ancien système de progression quand le nouveau est présent */
.modern-checkout .progress-container-modern ~ #resaprogressbar {
    display: none;
}

/* Styles pour l'intégration avec le système existant */
.reservation-header + .modern-checkout .progress-container-modern {
    margin-top: -10px;
}

/* === SURCHARGES SPÉCIFIQUES POUR BIZOUK === */

/* Les variables --bzk-* sont définies dynamiquement par le thème de chaque événement.
   Ne PAS les surcharger ici, sinon les couleurs personnalisées des événements sont ignorées. */

/* Utiliser les couleurs de la marque pour les éléments principaux */

.card-header,
.btn-primary-modern {
    background: var(--bzk-primary-color) !important;
}

.modern-progress-step.active .modern-step-label {
    color: var(--bzk-primary-color) !important;
}

/* === AMÉLIORATION DE L'EXPÉRIENCE UTILISATEUR === */

/* Transitions fluides */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus visible pour l'accessibilité */
.modern-step-circle:focus,
.btn-primary-modern:focus,
.btn-secondary-modern:focus {
    outline: 2px solid var(--bzk-primary-color);
    outline-offset: 2px;
}

/* Amélioration des contrastes */
.modern-step-label,
.tip-content p,
.event-location,
.event-date {
    color: #4a5568 !important;
}

/* === CORRECTIONS FINALES === */

/* S'assurer que le nouveau système fonctionne même avec les CSS existants */
.progress-container-modern {
    isolation: isolate;
    z-index: 10;
}

.modern-steps-progression {
    isolation: isolate;
}

/* Forcer l'affichage même avec des CSS conflictuels */
.progress-container-modern .modern-steps-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

.progress-container-modern .modern-progress-step {
    display: flex !important;
    flex-direction: column !important;
}

.progress-container-modern .modern-progress-line {
    display: block !important;
    flex: 1 !important;
}

.ticket-info h4 {
    color:#FFFFFF;
}

/* Mobile : bouton submit dans le flux (pas sticky) pour eviter collision avec chat widget */
@media (max-width: 768px) {
    .submit-section {
        margin: 24px 16px;
        padding: 0;
        text-align: center;
    }

    .submit-section .btn-payment-modern {
        width: 100%;
        border-radius: 10px;
    }

    .final-actions {
        margin: 24px 16px;
        padding: 0;
        flex-direction: column;
        gap: 10px;
    }

    .final-actions .btn-payment-modern {
        width: 100%;
        border-radius: 10px;
    }
}