/**
 * VTT Événements - Styles publics
 * Couleurs du club : #4b8499, #d4a22c, #d8eaee
 */

:root {
    --vtt-evt-primary: #4b8499;
    --vtt-evt-primary-dark: #3a6a7a;
    --vtt-evt-accent: #d4a22c;
    --vtt-evt-accent-dark: #b8901f;
    --vtt-evt-light: #d8eaee;
    --vtt-evt-light-alt: #e8f4f7;
    --vtt-evt-dark: #2c3e50;
    --vtt-evt-text: #333;
    --vtt-evt-text-light: #666;
    --vtt-evt-border: #ddd;
    --vtt-evt-white: #fff;
    --vtt-evt-shadow: rgba(75, 132, 153, 0.15);
}

/* Container */
.vtt-events-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vtt-events-content.vtt-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.vtt-events-content.vtt-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--vtt-evt-light);
    border-top-color: var(--vtt-evt-primary);
    border-radius: 50%;
    animation: vtt-evt-spin 0.8s linear infinite;
}

@keyframes vtt-evt-spin {
    to { transform: rotate(360deg); }
}

/* Sélecteur de vue */
.vtt-events-view-selector {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    padding: 5px;
    background: var(--vtt-evt-light);
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.vtt-evt-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    color: var(--vtt-evt-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vtt-evt-view-btn:hover {
    background: var(--vtt-evt-white);
}

.vtt-evt-view-btn.active {
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
    box-shadow: 0 2px 10px var(--vtt-evt-shadow);
}

/* Filtres */
.vtt-events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--vtt-evt-light-alt);
    border-radius: 12px;
}

.vtt-filter-group {
    flex: 1;
    min-width: 180px;
}

.vtt-filter-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vtt-evt-primary);
}

.vtt-evt-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--vtt-evt-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtt-evt-filter-select:focus {
    outline: none;
    border-color: var(--vtt-evt-primary);
}

/* ========================================
   VUE LISTE
   ======================================== */
.vtt-events-month-header {
    margin: 30px 0 15px 0;
}

.vtt-events-month-header:first-child {
    margin-top: 0;
}

.vtt-events-month-header h3 {
    display: inline-block;
    margin: 0;
    padding: 8px 20px;
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.vtt-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vtt-event-card {
    display: flex;
    background: var(--vtt-evt-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.vtt-event-card.vtt-animated {
    opacity: 1;
    transform: translateY(0);
}

.vtt-event-card:hover {
    box-shadow: 0 8px 35px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.vtt-event-image {
    position: relative;
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
}

.vtt-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtt-event-type-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--vtt-evt-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vtt-event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 20px 15px;
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
}

.vtt-date-day {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.vtt-date-month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.vtt-date-range {
    font-size: 11px;
    margin-top: 8px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.vtt-event-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.vtt-event-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.vtt-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 15px;
    color: var(--vtt-evt-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vtt-event-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--vtt-evt-text-light);
    font-size: 14px;
}

.vtt-event-time .dashicons {
    color: var(--vtt-evt-accent);
}

.vtt-event-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--vtt-evt-dark);
}

.vtt-event-lieu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    color: var(--vtt-evt-text-light);
    font-size: 14px;
}

.vtt-event-lieu .dashicons {
    color: var(--vtt-evt-primary);
}

.vtt-maps-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 5px;
    background: var(--vtt-evt-light);
    border-radius: 50%;
    color: var(--vtt-evt-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.vtt-maps-link:hover {
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
}

.vtt-event-infos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.vtt-info-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--vtt-evt-light-alt);
    border-radius: 20px;
    font-size: 13px;
    color: var(--vtt-evt-dark);
}

.vtt-info-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--vtt-evt-primary);
}

.vtt-diff-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vtt-evt-white);
}

.vtt-event-excerpt {
    margin: 0 0 15px 0;
    color: var(--vtt-evt-text-light);
    font-size: 14px;
    line-height: 1.6;
}

.vtt-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--vtt-evt-border);
}

.vtt-event-price {
    display: flex;
    flex-direction: column;
}

.vtt-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--vtt-evt-accent);
}

.vtt-price.vtt-free {
    color: var(--vtt-evt-primary);
}

.vtt-places {
    font-size: 12px;
    color: var(--vtt-evt-text-light);
}

.vtt-btn-inscription {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 25px;
    background: var(--vtt-evt-accent);
    color: var(--vtt-evt-white);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vtt-btn-inscription:hover {
    background: var(--vtt-evt-accent-dark);
    color: var(--vtt-evt-white);
    transform: translateY(-2px);
}

.vtt-no-events {
    text-align: center;
    padding: 60px 20px;
    background: var(--vtt-evt-light-alt);
    border-radius: 12px;
}

.vtt-no-events .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--vtt-evt-primary);
    opacity: 0.5;
}

/* ========================================
   VUE GRILLE
   ======================================== */
.vtt-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.vtt-event-grid-card {
    background: var(--vtt-evt-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.vtt-event-grid-card.vtt-animated {
    opacity: 1;
    transform: translateY(0);
}

.vtt-event-grid-card:hover {
    box-shadow: 0 8px 35px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.vtt-grid-card-image {
    position: relative;
    height: 180px;
}

.vtt-grid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtt-grid-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtt-grid-no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.5);
}

.vtt-grid-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--vtt-evt-white);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vtt-grid-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--vtt-evt-primary);
    line-height: 1;
}

.vtt-grid-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--vtt-evt-text-light);
}

.vtt-grid-type {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    color: var(--vtt-evt-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vtt-grid-card-content {
    padding: 20px;
}

.vtt-grid-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--vtt-evt-dark);
}

.vtt-grid-lieu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    color: var(--vtt-evt-text-light);
    font-size: 13px;
}

.vtt-grid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.vtt-grid-meta span {
    padding: 3px 10px;
    background: var(--vtt-evt-light-alt);
    border-radius: 12px;
    font-size: 12px;
    color: var(--vtt-evt-dark);
}

.vtt-grid-diff {
    font-weight: 600;
}

.vtt-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--vtt-evt-border);
}

.vtt-grid-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--vtt-evt-accent);
}

.vtt-grid-btn {
    padding: 8px 18px;
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vtt-grid-btn:hover {
    background: var(--vtt-evt-primary-dark);
    color: var(--vtt-evt-white);
}

/* ========================================
   VUE CALENDRIER
   ======================================== */
.vtt-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.vtt-cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--vtt-evt-light);
    border-radius: 50%;
    color: var(--vtt-evt-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.vtt-cal-nav-btn:hover {
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
}

.vtt-cal-title {
    margin: 0;
    font-size: 24px;
    color: var(--vtt-evt-dark);
    text-transform: capitalize;
}

.vtt-cal-grid {
    background: var(--vtt-evt-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.vtt-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--vtt-evt-primary);
}

.vtt-cal-day-header {
    padding: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vtt-evt-white);
}

.vtt-cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.vtt-cal-cell {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid var(--vtt-evt-border);
    border-bottom: 1px solid var(--vtt-evt-border);
    background: var(--vtt-evt-white);
}

.vtt-cal-cell:nth-child(7n) {
    border-right: none;
}

.vtt-cal-empty {
    background: #f8f9fa;
}

.vtt-cal-today {
    background: var(--vtt-evt-light-alt);
}

.vtt-cal-today .vtt-cal-day-num {
    background: var(--vtt-evt-accent);
    color: var(--vtt-evt-white);
}

.vtt-cal-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--vtt-evt-dark);
}

.vtt-cal-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vtt-cal-event {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--vtt-evt-white);
    font-size: 10px;
    cursor: default;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.vtt-cal-event:hover {
    transform: scale(1.02);
}

.vtt-cal-evt-time {
    font-weight: 700;
    flex-shrink: 0;
}

.vtt-cal-evt-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Détails mobile */
.vtt-cal-details {
    display: none;
    margin-top: 25px;
}

.vtt-cal-details h4 {
    margin: 0 0 15px 0;
    color: var(--vtt-evt-primary);
}

.vtt-cal-details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vtt-cal-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--vtt-evt-white);
    border-left: 4px solid var(--vtt-evt-primary);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vtt-cal-detail-date {
    min-width: 60px;
    font-weight: 700;
    color: var(--vtt-evt-primary);
    text-align: center;
}

.vtt-cal-detail-info {
    flex: 1;
}

.vtt-cal-detail-lieu {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    font-size: 12px;
    color: var(--vtt-evt-text-light);
}

.vtt-cal-detail-meta {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    font-size: 12px;
}

.vtt-cal-detail-price {
    font-weight: 700;
    color: var(--vtt-evt-accent);
}

/* ========================================
   SINGLE EVENT
   ======================================== */
.vtt-single-event {
    max-width: 1000px;
    margin: 0 auto;
}

.vtt-single-hero {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.vtt-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtt-single-hero-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.vtt-single-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--vtt-evt-white);
    font-weight: 600;
}

.vtt-single-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.vtt-single-header {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.vtt-single-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 20px;
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
    border-radius: 12px;
}

.vtt-single-day {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.vtt-single-month {
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.vtt-single-year {
    font-size: 12px;
    opacity: 0.8;
}

.vtt-single-title-block h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: var(--vtt-evt-dark);
}

.vtt-single-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vtt-evt-text-light);
    font-size: 16px;
}

.vtt-single-section {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--vtt-evt-white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.vtt-single-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    color: var(--vtt-evt-primary);
    font-size: 18px;
}

.vtt-lieu-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.vtt-lieu-address {
    color: var(--vtt-evt-text-light);
    margin: 0 0 15px 0;
}

.vtt-btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--vtt-evt-light);
    color: var(--vtt-evt-primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vtt-btn-maps:hover {
    background: var(--vtt-evt-primary);
    color: var(--vtt-evt-white);
}

.vtt-parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.vtt-parcours-item {
    text-align: center;
    padding: 20px;
    background: var(--vtt-evt-light-alt);
    border-radius: 12px;
}

.vtt-parcours-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--vtt-evt-primary);
}

.vtt-parcours-label {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--vtt-evt-text-light);
}

/* Sidebar */
.vtt-single-box {
    padding: 25px;
    background: var(--vtt-evt-white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.vtt-single-box h4 {
    margin: 0 0 15px 0;
    color: var(--vtt-evt-primary);
}

.vtt-box-inscription {
    background: var(--vtt-evt-light-alt);
}

.vtt-box-price {
    text-align: center;
    margin-bottom: 20px;
}

.vtt-price-amount {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--vtt-evt-accent);
}

.vtt-price-amount.vtt-free {
    color: var(--vtt-evt-primary);
}

.vtt-places-info {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--vtt-evt-text-light);
}

.vtt-tarif-details {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--vtt-evt-white);
    border-radius: 8px;
    font-size: 14px;
}

.vtt-btn-inscription-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 25px;
    background: var(--vtt-evt-accent);
    color: var(--vtt-evt-white);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vtt-btn-inscription-large:hover {
    background: var(--vtt-evt-accent-dark);
    color: var(--vtt-evt-white);
    transform: translateY(-2px);
}

.vtt-organisateur-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.vtt-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: var(--vtt-evt-text);
}

.vtt-contact-item a {
    color: var(--vtt-evt-primary);
    text-decoration: none;
}

.vtt-contact-item a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media screen and (max-width: 900px) {
    .vtt-single-content {
        grid-template-columns: 1fr;
    }
    
    .vtt-single-sidebar {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .vtt-events-wrapper {
        padding: 15px;
    }

    .vtt-evt-view-btn .vtt-view-label {
        display: none;
    }

    .vtt-events-filters {
        flex-direction: column;
    }

    .vtt-event-card {
        flex-direction: column;
    }

    .vtt-event-image {
        width: 100%;
        height: 200px;
    }

    .vtt-event-date-badge {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
    }

    .vtt-date-day {
        font-size: 28px;
    }

    .vtt-events-grid {
        grid-template-columns: 1fr;
    }

    .vtt-cal-grid {
        display: none;
    }

    .vtt-cal-details {
        display: block;
    }

    .vtt-single-header {
        flex-direction: column;
    }

    .vtt-single-date-badge {
        flex-direction: row;
        gap: 15px;
    }

    .vtt-single-title-block h1 {
        font-size: 24px;
    }
}

/* Print */
@media print {
    .vtt-events-view-selector,
    .vtt-events-filters,
    .vtt-btn-inscription,
    .vtt-maps-link {
        display: none !important;
    }
}

