/* Styles personnalisés pour les tickets dans le formulaire de création d'événement */

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    padding: 15px 20px;
    flex: 1;
}

.accordion-button:not(.collapsed) {
    background-color: #fff;
    color: #0b1568;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.accordion-header {
    position: relative;
}

.accordion-body {
    padding: 20px;
}

/* Fix pour l'accordion FAQ - s'assurer que le contenu est visible */
#accordion2 .collapse.show {
    display: block !important;
    visibility: visible !important;
}

#accordion2 .collapse:not(.show) {
    display: none;
}

/* Fix pour l'accordion de paiement - s'assurer que le contenu est visible */
#acdflush .collapse.show {
    display: block !important;
    visibility: visible !important;
}

#acdflush .collapse:not(.show) {
    display: none;
}

/* Style pour les icônes de tickets - remplace les images pour améliorer les performances */
.ticket-icon-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-icon-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(11, 21, 104, 0.15);
}

.btn-remove-ticket {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-remove-ticket:hover {
    background: #c82333;
}

.ht-100 {
    min-height: 100px;
}

.dashboard-list-wraps {
    width: 100%;
}

/* Tronquer le nom de l'événement sur une ligne */
.Goodup-caption h4 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Tronquer le texte "publié par" */
.Goodup-ft-first .cats-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Cacher les badges au hover sur l'image */
.Goodup-grid-upper:hover .Goodup-pos {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.Goodup-grid-upper {
    position: relative;
}

.Goodup-pos {
    transition: opacity 0.3s ease;
}

/* Style hover pour le bouton CTA */
.cta-publish-btn:hover {
    background-color: rgba(255, 210, 20, 70%);
    transition: all 0.3s ease;
}

/* Styles pour les filtres actifs */
.btn-outline-secondary.active {
    background-color: #ffd214 !important;
    border-color: #ffd214 !important;
    color: #000000 !important;
}

.btn-outline-secondary.active:hover {
    background-color: #e6bd12 !important;
    border-color: #e6bd12 !important;
    color: #000000 !important;
}

/* Style pour les items du dropdown actifs */
.dropdown-item.active {
    background-color: #ffd214 !important;
    color: #000000 !important;
}

.dropdown-item.active:hover {
    background-color: #e6bd12 !important;
    color: #000000 !important;
}

/* Styles pour la bannière d'événement */
.event-banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    /* Ratio recommandé : 16:9 pour une bannière horizontale */
    aspect-ratio: 16 / 9;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Amélioration de la qualité d'affichage */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Transition douce au chargement */
    transition: opacity 0.3s ease;
}

/* Pour les images verticales (portrait) */
.event-banner-image[style*="height"] {
    object-fit: contain;
    background-color: #000;
}

/* Responsive : ajuster la hauteur sur mobile */
@media (max-width: 768px) {
    .event-banner-container {
        aspect-ratio: 4 / 3;
        min-height: 300px;
        max-height: 400px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 576px) {
    .event-banner-container {
        aspect-ratio: 1 / 1;
        min-height: 250px;
        max-height: 350px;
    }
}

/* Styles pour les inputs de quantité dans guests-box */
.guests-box input[type="text"] {
    border: none;
    width: 100px;
    text-align: center;
    color: #333c56;
    background: transparent;
    font-weight: 600;
    outline: none;
}

.guests-box .counter-btn {
    position: absolute;
}

.guests-box [id^="decrease-"] {
    position: absolute;
    top: 6px;
    left: 6px;
}

.guests-box [id^="increase-"] {
    position: absolute;
    top: 6px;
    right: 6px;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #ffd214 !important;
}

@media (min-width: 992px) {
    .header .container {
        max-width: 1080px;
    }
}

@media (min-width: 1400px) {
    .header .container {
        max-width: 1320px;
    }
}

@media (max-width: 415px) {
    .mobile-add-event {
        display: none !important;
    }

    .mobile_nav ul li:first-child {
        position: relative;
        top: 5px;
        right: 5px;
    }
}