/**
 * Nouvelle mise en page complète pour la page de détails d'événement
 * Layout en une seule colonne - Version mobile-first
 * MyPlace Events - Version 2.5.2-dev
 */

/* Reset et container principal */
.event-detail-new-layout {
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(to bottom, #F8F9FA 0%, #FFFFFF 300px);
    min-height: 100vh;
}

.event-detail-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 13, 140, 0.03);
}

/* 1. Lien retour */
.event-back-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #E0E0E0;
    text-decoration: none;
    color: #E91B84;
    font-weight: 600;
    font-size: 16px;
    min-height: 56px;
    transition: background 0.2s ease;
}

.event-back-link:hover {
    background: #F5F5F5;
    color: #E91B84;
    text-decoration: none;
}

.event-back-link i {
    margin-right: 10px;
    font-size: 20px;
}

/* 2. Hero image */
.event-hero-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #F5F5F5;
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 3. Titre de l'événement */
.event-title-section {
    padding: 20px 20px 16px;
    background: #ffffff;
}

.event-main-title {
    font-size: 22px;
    font-weight: 700;
    color: #000D8C;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* 4. Méta-infos événement */
.event-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px 20px;
    background: #ffffff;
}

.event-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
}

.event-meta-row i {
    color: #E91B84;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.event-meta-row strong {
    color: #000000;
    font-weight: 600;
}

.event-meta-flags {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.event-meta-flags img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

/* 5. Section tickets - Nouveau design */
.tickets-section {
    padding: 24px 20px;
    background: #ffffff;
    border-top: 8px solid #F5F5F5;
}

.tickets-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #E91B84;
    margin-bottom: 16px;
}

.tickets-section-title i {
    font-size: 20px;
}

/* Carte de ticket - Design de la maquette */
.ticket-card-new {
    background: #ffffff;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.ticket-card-new:hover {
    border-color: #E91B84;
    box-shadow: 0 2px 8px rgba(233, 27, 132, 0.1);
}

.ticket-card-left {
    flex: 1;
    min-width: 0;
}

.ticket-name-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.ticket-name {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.ticket-separator {
    color: #CCCCCC;
    font-weight: 400;
}

.ticket-price {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
}

.ticket-inclus {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
    margin-top: 4px;
}

.ticket-inclus i {
    font-size: 13px;
    color: #666666;
}

.ticket-card-right {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

/* Contrôles de quantité - Design minimaliste */
.quantity-selector-new {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    background: #F5F5F5;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.qty-btn:hover:not(:disabled) {
    background: #E0E0E0;
    color: #000000;
}

.qty-btn:active:not(:disabled) {
    background: #D0D0D0;
}

.qty-btn:disabled {
    color: #CCCCCC;
    cursor: not-allowed;
}

.qty-display {
    width: 50px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    background: #ffffff;
    border: none;
    text-align: center;
}

/* 6. Accordions (À propos, Organisateur) */
.event-accordions {
    background: #ffffff;
    border-top: 8px solid #F5F5F5;
}

.accordion-item {
    border-bottom: 1px solid #E0E0E0;
}

.accordion-header {
    padding: 16px 20px;
    background: #ffffff;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: #F5F5F5;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.accordion-title i {
    color: #E91B84;
    font-size: 18px;
}

.accordion-chevron {
    font-size: 18px;
    color: #666666;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 2000px;
}

.accordion-body {
    padding: 0 20px 20px;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
}

/* 7. Section code promo */
.promo-section {
    padding: 20px;
    background: #ffffff;
    border-top: 8px solid #F5F5F5;
}

.promo-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #E91B84;
    margin-bottom: 12px;
}

.promo-title i {
    font-size: 16px;
}

.promo-input-group {
    display: flex;
    gap: 8px;
}

.promo-input {
    flex: 1;
    border: 1.5px solid #E0E0E0;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.promo-input:focus {
    border-color: #E91B84;
}

.promo-input::placeholder {
    color: #999999;
}

.promo-btn {
    background: #000D8C;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.promo-btn:hover {
    background: #000a6b;
}

.promo-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

.promo-message {
    margin-top: 8px;
    font-size: 12px;
}

.promo-message.success {
    color: #2e7d32;
}

.promo-message.error {
    color: #c62828;
}

/* 8. Récapitulatif de prix */
.price-summary {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #E0E0E0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.price-label {
    color: #666666;
    font-weight: 400;
}

.price-value {
    color: #000000;
    font-weight: 600;
}

.price-row.total {
    border-top: 1px solid #E0E0E0;
    margin-top: 8px;
    padding-top: 16px;
}

.price-row.total .price-label,
.price-row.total .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.price-row.discount .price-value {
    color: #2e7d32;
}

/* 9. CTA primaire (Continuer) */
.sticky-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 20px;
    border-top: 1px solid #E0E0E0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.cta-primary {
    width: 100%;
    background: #E91B84;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 27, 132, 0.25);
    text-transform: capitalize;
}

.cta-primary:hover:not(:disabled) {
    background: #D01676;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 27, 132, 0.35);
}

.cta-primary:active:not(:disabled) {
    transform: translateY(0);
}

.cta-primary:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .event-detail-container {
        max-width: 700px;
    }
    
    .event-hero-image {
        height: 320px;
    }
    
    .event-main-title {
        font-size: 28px;
    }
    
    .event-meta-row {
        font-size: 14px;
    }
    
    .sticky-footer {
        position: relative;
        box-shadow: none;
        border-top: none;
        padding-top: 24px;
    }
}

@media (min-width: 1024px) {
    .event-detail-container {
        max-width: 800px;
    }
    
    .event-hero-image {
        height: 400px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-card-new {
    animation: slideIn 0.3s ease;
}

/* États vides */
.no-tickets-message {
    padding: 40px 20px;
    text-align: center;
    color: #666666;
    font-size: 14px;
}

.booking-closed {
    background: #ffebee;
    color: #c62828;
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    margin: 20px;
}
