/* Styles pour la page Calendrier Kid VTT */

.calendar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 40px;
}

.calendar-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.calendar-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.calendar-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 18px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    display: flex;
    align-items: center;
    margin: 30px auto;
    max-width: 80%;
    box-shadow: var(--box-shadow);
}

.calendar-notice i {
    color: #ffc107;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.calendar-notice p {
    margin: 0;
    font-style: italic;
}

.event-timeline {
    position: relative;
    margin: 50px 0;
}

.event-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 120px;
    border-radius: 2px;
}

.timeline-month {
    position: relative;
    margin-bottom: 30px;
    padding-left: 160px;
}

.month-label {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 30px;
    padding: 10px 18px;
    display: inline-block;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    line-height: 1.2;
    text-align: center;
    position: relative;
}

.month-label::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.event-card {
    position: relative;
    margin-bottom: 25px;
    padding-left: 160px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-card::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 4px solid #e9ecef;
    border-radius: 50%;
    left: 114px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.event-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #e9ecef;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

.event-details {
    padding: 20px;
}

.event-details h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.event-federation {
    display: flex;
    align-items: center;
}

.federation-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
}

.fsgt {
    background-color: #d4f1f9;
    color: #0288d1;
}

.ufolep {
    background-color: #e1f5fe;
    color: #039be5;
}

.event-tag {
    margin-top: 10px;
}

.confirm-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.75rem;
    font-style: italic;
}

.special-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.final-event {
    position: relative;
}

.final-event::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #e74c3c;
    border-radius: 50%;
    left: 112px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid white;
    z-index: 1;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-badge {
    width: 40px;
    height: 20px;
    border-radius: 20px;
    margin-right: 10px;
    border: 1px solid;
}

.legend-badge.fsgt {
    background-color: #d4f1f9;
    border-color: #0288d1;
}

.legend-badge.ufolep {
    background-color: #e1f5fe;
    border-color: #039be5;
}

.legend-icon {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.legend-icon i {
    color: #666;
}

.calendar-download {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--box-shadow);
}

.download-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.download-button i {
    margin-right: 10px;
}

/* Map section */
.map-section {
    margin-top: 60px;
}

.map-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.map-header h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.map-header p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Media queries */
@media (max-width: 768px) {
    .event-timeline::before {
        left: 80px;
    }
    
    .timeline-month {
        padding-left: 120px;
    }
    
    .month-label::before {
        left: -25px;
    }
    
    .event-card {
        padding-left: 120px;
    }
    
    .event-card::before {
        left: 74px;
    }
    
    .event-date {
        width: 70px;
    }
    
    .final-event::after {
        left: 72px;
    }
    
    .calendar-legend {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .event-timeline::before {
        left: 60px;
    }
    
    .timeline-month {
        padding-left: 90px;
    }
    
    .month-label::before {
        left: -22px;
        width: 16px;
        height: 16px;
    }
    
    .event-card {
        padding-left: 90px;
    }
    
    .event-card::before {
        left: 54px;
        width: 12px;
        height: 12px;
    }
    
    .event-date {
        width: 50px;
    }
    
    .event-date .day {
        font-size: 1.4rem;
    }
    
    .event-date .month {
        font-size: 0.75rem;
    }
    
    .final-event::after {
        left: 52px;
        width: 16px;
        height: 16px;
    }
    
    .calendar-notice {
        max-width: 100%;
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-notice i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
}