/**
 * Styles pour la page single event
 */

/* Conteneur principal */
.evo-single-event-container {
    margin: 2rem auto;
    max-width: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* En-tête de l'événement */
.evo-single-event-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .evo-single-event-header {
        flex-direction: row;
    }
}

/* Image à la une */
.evo-single-event-featured-image {
    position: relative;
    flex: 1;
    min-height: 300px;
}

@media (min-width: 768px) {
    .evo-single-event-featured-image {
        max-width: 50%;
    }
}

.evo-single-event-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evo-single-event-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.evo-single-event-category {
    padding: 0.25rem 0.75rem;
    background-color: #fff;
    color: #000 !important;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.evo-single-event-category:hover {
    background-color: #fff;
    color: #000;
}

/* Contenu de l'en-tête */
.evo-single-event-header-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.evo-single-event-title {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

.evo-single-event-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.evo-single-event-meta {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
}

.evo-single-event-date,
.evo-single-event-time,
.evo-single-event-location,
.evo-single-event-cost {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.evo-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    margin-top: 3px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.evo-icon-calendar {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path fill="%23555" d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>');
}

.evo-icon-clock {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path fill="%23555" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>');
}

.evo-icon-location {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path fill="%23555" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.evo-icon-ticket {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path fill="%23555" d="M22 10V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-2-1.46c-1.19.69-2 1.99-2 3.46s.81 2.77 2 3.46V18H4v-2.54c1.19-.69 2-1.99 2-3.46 0-1.48-.8-2.77-1.99-3.46L4 6h16v2.54zM11 15h2v2h-2zm0-4h2v2h-2zm0-4h2v2h-2z"/></svg>');
}

.evo-single-event-map-link {
    margin-left: 1rem;
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9rem !important;
    transition: color 0.2s ease;
}

.evo-single-event-map-link:hover {
    color: #005d87;
    text-decoration: underline;
}

.evo-single-event-registration {
    margin-top: auto;
}

.evo-single-event-register-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.evo-single-event-register-button:hover {
    background-color: #005d87;
    color: #fff;
}

/* Contenu principal et barre latérale */
.evo-single-event-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .evo-single-event-content-wrapper {
        flex-direction: row;
    }
}

.evo-single-event-main-content {
    flex: 2;
}

.evo-single-event-sidebar {
    flex: 1;
}

/* Description de l'événement */
.evo-single-event-description {
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.evo-single-event-description h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Tags */
.evo-single-event-tags {
    padding: 1.5rem 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.evo-single-event-tags h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
}

.evo-single-event-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.evo-single-event-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f1f1f1;
    color: #333;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.evo-single-event-tag:hover {
    background-color: #e5e5e5;
    color: #0073aa;
}

/* Boîte d'informations */
.evo-single-event-info-box {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.evo-single-event-info-box h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.evo-single-event-info-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.evo-single-event-info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.evo-single-event-info-section h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.evo-single-event-info-section p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.evo-single-event-info-section strong {
    color: #333;
}

.evo-single-event-terms-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.evo-single-event-terms-list li {
    margin-bottom: 0.5rem;
}

.evo-single-event-terms-list li:last-child {
    margin-bottom: 0;
}

.evo-single-event-terms-list a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.evo-single-event-terms-list a:hover {
    color: #005d87;
    text-decoration: underline;
}

.evo-single-event-registration-section {
    text-align: center;
}

/* Navigation entre événements */
.evo-single-event-navigation {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.evo-single-event-navigation h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.evo-single-event-nav-item {
    margin-bottom: 1.25rem;
}

.evo-single-event-nav-item:last-child {
    margin-bottom: 0;
}

.evo-single-event-nav-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.evo-single-event-nav-link {
    display: block;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.evo-single-event-nav-link:hover {
    background-color: #f1f1f1;
}

.evo-single-event-nav-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.evo-single-event-nav-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
}
