/**
 * Styles modernes pour la page produit
 * Design immersif et vivant
 */

/* Variables CSS */
:root {
    --primary-purple: #6d28d9;
    --primary-blue: #3b82f6;
    --accent-yellow: #ffcc00;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #dc2626;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page principale avec dégradé */
.concert-product-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Hero Section Immersive */
.hero-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image du concert */
.concert-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.concert-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.concert-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.concert-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.concert-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Détails du concert */
.concert-details {
    color: white;
}

.concert-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Badges de statut */
.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.badge.urgent {
    background: rgba(220, 38, 38, 0.9);
    color: white;
}

.badge.warning {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.badge.info {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

/* CTA Principal */
.main-cta {
    text-align: center;
    margin-bottom: 30px;
}

/* Compteur de ventes */
.sales-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.sales-counter:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.sales-icon {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.sales-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.sales-text span {
    color: var(--accent-yellow);
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Animation pour l'augmentation du compteur */
.sales-increase {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    0% {
        transform: scale(1);
        color: var(--accent-yellow);
    }
    50% {
        transform: scale(1.2);
        color: var(--success-green);
    }
    100% {
        transform: scale(1);
        color: var(--accent-yellow);
    }
}

.cta-button {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.cta-button:hover:not(:disabled) {
    background: #e6b800;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cta-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cta-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Section de réservation */
.booking-section {
    background: white;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.booking-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: -40px;
}

/* Barre de progression stylisée */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-step:hover {
    transform: scale(1.05);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.progress-step.active .step-circle {
    background: var(--primary-purple);
    border-color: var(--accent-yellow);
    transform: scale(1.1);
}

.progress-step.active .step-number {
    color: white;
}

.progress-step.completed .step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
}

.progress-step.completed .step-number {
    color: white;
}

.step-label {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.progress-step.active .step-label {
    color: var(--primary-purple);
}

.progress-line {
    height: 3px;
    background: #e5e7eb;
    flex: 1;
    margin: 0 10px;
    border-radius: 2px;
}

.progress-step.completed + .progress-line {
    background: var(--success-green);
}

/* Étapes de sélection */
.selection-steps {
    margin-bottom: 30px;
}

.step-content {
    text-align: center;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.step-title i {
    color: var(--primary-purple);
    font-size: 1.3rem;
}

/* Boutons de villes et dates */
.venue-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 60px;
}

/* Animation d'apparition pour les éléments dynamiques */
.venue-btn, .category-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.venue-btn.animate-in, .category-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.venue-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 1rem;
    min-width: 150px;
    justify-content: center;
}

.venue-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.venue-btn.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.venue-btn i {
    font-size: 1.1rem;
}

/* Cartes de catégories */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-purple);
}

.category-card.selected {
    border-color: var(--accent-yellow);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card.selected::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-yellow);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.category-badge {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.category-info {
    text-align: center;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.category-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
}

/* Sélecteur de quantité */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    background: white;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.quantity-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: scale(1.1);
}

.quantity-input {
    width: 80px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

/* Résumé de commande */
.order-summary {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.summary-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.summary-content {
    display: grid;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid var(--primary-purple);
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.label {
    font-weight: 600;
    color: var(--text-gray);
}

.value {
    font-weight: 700;
    color: var(--text-dark);
}

/* Section d'informations */
.info-section {
    background: white;
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.info-icon.purple {
    background: var(--primary-purple);
}

.info-icon.blue {
    background: var(--primary-blue);
}

.info-icon.red {
    background: var(--danger-red);
}

.info-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.info-content {
    color: var(--text-gray);
    line-height: 1.7;
}

.info-content p {
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.info-item i {
    color: var(--primary-purple);
    width: 20px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .concert-title {
        font-size: 2rem;
    }
    
    .status-badges {
        justify-content: center;
    }
    
    .venue-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .venue-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-container {
        padding: 20px;
        margin-top: -20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading state */
.cta-loading {
    display: none;
}

.cta-button.loading .cta-text {
    display: none;
}

.cta-button.loading .cta-loading {
    display: inline;
}
