
:root {
  --main-color: #112855;
}


.com-gp-event-form {
    padding: 2rem 0;
}

.card-header {
    padding: 1.5rem;
}

.card-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.text-danger {
    color: #dc3545;
}

#address-suggestions {
    max-width: 100%;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.leaflet-container {
    font-family: inherit;
}

@media (max-width: 768px) {
    #map {
        height: 300px;
    }
}

#address-suggestions{
    background: #ffffff;
    border: 1px solid #ced4da;
    width: 80%;
    z-index: 10000;
    display: none; 
    position: absolute; 
    max-height: 200px; 
    overflow-y: auto;
    padding: 10px;
}

.autocomplete-item{
    cursor: pointer;
}

#search_event .row{
    margin-bottom: 10px;
}

#search_event .btn{
    display: block;
    width: 100%;
}

#search_event .pl-0{
    padding-left: 0;
}

#search_event .pr-0{
    padding-right: 0;
}

#save_search_name{
    display: none;
}

/* LISTE EVENTS */

#j-main-container{
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.category_title{
    font-size: 15px;
}

.event-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    overflow: hidden;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.event-image {
    object-fit: cover;
    height: 100%;
}
.event-meta {
    font-size: 0.875rem;
}
.event-meta i {
    width: 18px;
    text-align: center;
}
.badge-custom {
    font-weight: 500;
    padding: 0.35em 0.65em;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
}
.short-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* EVENT DETAILS */

.event-detail h1, .event-detail h2, .event-detail h3 {
    color: #212529;
}

.event-longtext {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
}

.event-longtext p {
    margin-bottom: 1rem;
}

.event-longtext h2, .event-longtext h3, .event-longtext h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #212529;
}

.event-longtext ul, .event-longtext ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.event-longtext img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.event-longtext blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

@media (max-width: 991px) {
    .event-detail .col-lg-5 img {
        height: 250px !important;
    }
}

.fa-solid.fa-crown {
    color: gold;
}

/* Liste des inscrits */

.registered-users-section {
    padding: 20px 0;
}

.registered-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.user-card:hover .user-avatar {
    border-color: #007bff;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-wrap: break-word;
    max-width: 100%;
}

.user-card:hover .user-name {
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .registered-users-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .registered-users-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .user-card {
        padding: 10px;
    }
}

#comments h4{
    display: none;
}

/* Conteneur principal */
.js-stools-container-bar {
    margin-bottom: 1rem;
}

.js-stools-container-bar .btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Barre de recherche */
.filter-search-bar {
    flex: 1;
    min-width: 250px;
}

.filter-search-bar .input-group {
    display: flex;
    width: 100%;
}

.filter-search-bar input[type="text"] {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-search-bar__button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

/* Bouton Effacer */
.filter-search-actions {
    flex-shrink: 0;
}

/* Selects de tri */
.ordering-select {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ordering-select .js-stools-field-list {
    flex-shrink: 0;
}

.ordering-select select {
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .js-stools-container-bar .btn-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search-bar,
    .filter-search-actions,
    .ordering-select {
        width: 100%;
    }
    
    .ordering-select {
        flex-direction: column;
    }
    
    .ordering-select select {
        width: 100%;
    }
}

.event-img-edit {
    max-width: 200px;
    max-height: 300px;
    display: block;
    margin-bottom: 20px;
}

body.site #content .event_premium,
body.site #content .event_premium:hover{
    transition: none !important;
    border-radius: 12px;
    box-shadow: 
        0 0 0 6px #d4af37,
        0 0 16px 6px rgba(212, 175, 55, 0.5);
    animation: glow-pulse 4s linear infinite;
}

@keyframes glow-pulse {
    0%   { box-shadow: 0 0 0 6px #d4af37, 0 0 16px 6px rgba(212,175,55,0.4); }
    50%  { box-shadow: 0 0 0 6px #ffd700, 0 0 24px 8px rgba(255,215,0,0.7); }
    100% { box-shadow: 0 0 0 6px #d4af37, 0 0 16px 6px rgba(212,175,55,0.4); }
}