/* Card Styling */
.card.event-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Image */
.card.event-card .card-img-top {
    height: 200px;
    border-radius: 0.75rem;
    position: relative;
    z-index: 1;
}

/* Blurred background behind card image */
.card.event-card .position-relative {
    overflow: hidden;
}

.card.event-card .position-relative::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.9);
    transform: scale(1.1);
    z-index: 0;
}

/* Generic blurred background container (used on detail page) */
.card.event-card .card-body {
    padding: 15px;
}

.card.event-card .card-body > div:first-child {
    max-width: 100%; /* Ou une valeur fixe comme 250px */
}

.card.event-card .card-body a {
    display: block; /* ou inline-block */
    max-width: 100%; /* Limite la largeur de l'élément <a> */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

/* Title */
.card.event-card .card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
    text-transform: uppercase;
    max-width: 100%; /* S'adapte à la largeur du conteneur parent */
    display: block; /* Nécessaire pour que text-overflow fonctionne */
}

/* Date and Location */
.card.event-card .card-text {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

/* Price */
.card.event-card .price {
    font-size: 1rem;
    font-weight: bold;
    color: #28a745;
}

/* Button */
.card.event-card .btn-danger {
    font-size: 0.9rem;
    font-weight: bold;
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 2rem;
    padding: 0.3rem;
    width: 100%;
}

/* Badges */
.badge-verified,
.badge-type {
    position: absolute;
    color: #fff;
    font-size: 12px;
    z-index: 3;
}

.badge-promo {
    top: 12px;
    right: 12px;
    position: absolute;
    color: #fff;
    font-weight: 700;
    padding: 6px 16px;
    line-height: 1.1;
    z-index: 4;
    background: linear-gradient(135deg, #0f9d58 0%, #12d064 100%);
    border-radius: 999px;
    box-shadow: 0 6px 15px rgba(15, 157, 88, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-verified {
    /* background-color: #28a745; */
    top: 10px;
    left: 10px;
}

.badge-type {
    background-color: var(--complementary1);
    bottom: 10px;
    right: 10px;
}

/* Style pour le conteneur principal */
.publisher-container {
    width: 100%; /* Prend toute la largeur disponible */
}

/* Style pour le texte "Publié par" */
.publisher-container .publisher-text {
    margin-bottom: 0; /* Supprime la marge inférieure */
    font-size: 0.9rem; /* Taille de police */
    color: #555; /* Couleur du texte */
}

/* Style pour le lien "@prestataire02325" */
.publisher-container .publisher-username {
    color: #333; /* Couleur du lien */
    text-decoration: none; /* Supprime le soulignement */
    transition: color 0.3s ease; /* Transition fluide */
}

.publisher-container .publisher-username:hover {
    color: var(--primary); /* Couleur au survol */
}

/* Style pour le bouton "S'abonner" */
.publisher-container .subscribe-btn {
    font-size: 0.8rem; /* Taille de police */
    padding: 0.25rem 0.75rem; /* Padding du bouton */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition fluide */
}

.publisher-container .subscribe-btn:hover {
    background-color: var(--secondary); /* Couleur de fond au survol */
    color: #fff; /* Couleur du texte au survol */
}

/* Like Button */
.like-button {
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    margin-bottom: -5px;
    background: none;
    border: none;
    padding: 0;
    display: block;
    outline: none;
}

.like-button i {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    font-size: 1.2rem;
}

.like-button:hover i {
    transform: scale(1.1);
}

.like-button.liked i {
    color: var(--primary);
    font-weight: 900;
}

.likes-count {
    font-size: 1rem;
    display: block;
    margin-top: 2px;
    transition: all 0.3s ease;
}

/* Animation lorsque le bouton est désactivé */
.like-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Accordion Button */
.accordion-button:not(.collapsed) {
    background-color: rgba(192, 192, 192, 0.5);
    color: #212529;
}

.accordion-button:hover {
    background-color: rgba(192, 192, 192, 0.5);
    color: #212529;
}

.accordion-button {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Calendar Toolbar */
.fc-toolbar-chunk {
    margin-right: 20px;
}

.fc-toolbar-chunk:last-child {
    margin-right: 0;
}

.fc-toolbar-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    margin: 0 10px;
    white-space: nowrap;
}

/* Loading Spinner */
#calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.description-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
	line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-btn {
    color: #000;
    font-weight: 500;
}

.toggle-btn:focus,
.toggle-btn:hover,
.toggle-btn:active {
    background-color: transparent !important;
    color: inherit !important;
    border-color: inherit !important;
}


.read-more-btn:hover {
    color: #f0151f;
}

@media (max-width: 768px) {
    .fc-toolbar-title {
        font-size: 1.25rem !important;
    }
}