/**
 * Agenda Page Styles
 * Custom styling for events calendar and event cards
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.agenda-hero {
    min-height: 70vh;
}

/* ==========================================================================
   Calendar Styles (Events Manager Override)
   ========================================================================== */

.em-calendar {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(146, 77, 64, 0.1);
}

.em-calendar table {
    width: 100%;
    border-collapse: collapse;
}

.em-calendar th {
    color: #924D40;
    font-weight: 700;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 2px solid #F6E3D6;
}

.em-calendar td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #F6E3D6;
    transition: all 0.3s ease;
}

.em-calendar-day {
    color: #6B5A4D;
    font-size: 1.05rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.em-calendar-day:hover {
    background: #F6E3D6;
    cursor: pointer;
}

.em-calendar-day.has-events,
.em-calendar td.eventful {
    background: linear-gradient(135deg, #C09144, #E6B860);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    position: relative;
}

.em-calendar-day.has-events:hover,
.em-calendar td.eventful:hover {
    background: linear-gradient(135deg, #E6B860, #F6E3D6);
    color: #924D40;
    transform: scale(1.05);
}

.em-calendar td.eventful a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
}

.em-calendar td.eventful:hover a {
    color: #924D40;
}

/* Current day highlight */
.em-calendar td.today {
    border: 3px solid #924D40;
    font-weight: 700;
}

/* Month/Year navigation */
.em-calendar-wrapper .em-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #F6E3D6;
    border-radius: 20px;
}

.em-calendar-wrapper .em-cal-nav a {
    color: #C09144;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.em-calendar-wrapper .em-cal-nav a:hover {
    background: #C09144;
    color: white;
}

/* ==========================================================================
   Event Cards
   ========================================================================== */

.event-card {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(146, 77, 64, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(146, 77, 64, 0.2);
}

.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.event-date {
    background: linear-gradient(135deg, #C09144, #E6B860);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.event-time {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    opacity: 0.95;
}

.event-type {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #F6E3D6;
    color: #C09144;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-type.formation {
    background: linear-gradient(135deg, #C09144, #E6B860);
    color: white;
}

.event-type.atelier {
    background: #F6E3D6;
    color: #924D40;
}

.event-type.session {
    background: #E6D7B2;
    color: #6B5A4D;
}

.event-title {
    color: #924D40;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin: 1rem 0;
    line-height: 1.3;
    flex-grow: 1;
}

.event-description {
    color: #6B5A4D;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #F6E3D6;
}

.event-price {
    font-size: 2rem;
    color: #C09144;
    font-weight: 700;
    font-family: var(--font-heading);
}

.event-price-label {
    display: block;
    font-size: 0.85rem;
    color: #6B5A4D;
    font-weight: 400;
    margin-top: 0.2rem;
}

.btn-inscription {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #C09144, #E6B860);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-inscription:hover {
    background: linear-gradient(135deg, #924D40, #C09144);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(192, 145, 68, 0.3);
}

/* ==========================================================================
   Event Types Section
   ========================================================================== */

.event-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-type-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(146, 77, 64, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.event-type-card:hover {
    transform: translateY(-5px);
}

.event-type-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Single Event Page Styles
   ========================================================================== */

.event-sidebar {
    position: sticky;
    top: 2rem;
}

.info-card,
.price-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(146, 77, 64, 0.1);
    margin-bottom: 2rem;
}

.info-card h3,
.price-card h3 {
    color: #924D40;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    border-bottom: 2px solid #F6E3D6;
    padding-bottom: 0.8rem;
}

.info-card p {
    color: #6B5A4D;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-card strong {
    color: #924D40;
    display: inline-block;
    min-width: 120px;
}

.price-card .price {
    font-size: 3rem;
    color: #C09144;
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0;
    font-family: var(--font-heading);
}

.event-details-content {
    color: #6B5A4D;
    font-size: 1.1rem;
    line-height: 2;
}

.event-details-content h2,
.event-details-content h3 {
    color: #924D40;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.event-details-content ul,
.event-details-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.event-details-content li {
    margin-bottom: 0.8rem;
}

/* Event meta info pills */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #F6E3D6;
    border-radius: 25px;
    color: #924D40;
    font-weight: 600;
}

.event-meta-item span {
    font-size: 1.2rem;
}

/* Places disponibles indicator */
.places-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
}

.places-indicator.high {
    background: #D4EDDA;
    color: #155724;
}

.places-indicator.medium {
    background: #FFF3CD;
    color: #856404;
}

.places-indicator.low {
    background: #F8D7DA;
    color: #721C24;
}

/* ==========================================================================
   Events Manager Booking Form Styling
   ========================================================================== */

.em-booking-form {
    margin-top: 2rem;
}

.em-booking-form input[type="text"],
.em-booking-form input[type="email"],
.em-booking-form input[type="tel"],
.em-booking-form textarea,
.em-booking-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #F6E3D6;
    border-radius: 15px;
    font-size: 1rem;
    color: #6B5A4D;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.em-booking-form input:focus,
.em-booking-form textarea:focus,
.em-booking-form select:focus {
    outline: none;
    border-color: #C09144;
}

.em-booking-form label {
    display: block;
    color: #924D40;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.em-booking-form .em-booking-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #C09144, #E6B860);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.em-booking-form .em-booking-submit:hover {
    background: linear-gradient(135deg, #924D40, #C09144);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 145, 68, 0.3);
}

/* Success/Error messages */
.em-booking-message {
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.em-booking-message.em-booking-message-success {
    background: #D4EDDA;
    color: #155724;
    border: 2px solid #C3E6CB;
}

.em-booking-message.em-booking-message-error {
    background: #F8D7DA;
    color: #721C24;
    border: 2px solid #F5C6CB;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .event-types-grid {
        grid-template-columns: 1fr;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-sidebar {
        position: relative;
        top: 0;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .event-card {
        padding: 1.5rem;
    }

    .event-price {
        font-size: 1.5rem;
    }

    .btn-inscription {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .em-calendar th,
    .em-calendar td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .event-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .btn-inscription {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 3rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .event-card-image {
        height: 150px;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .em-calendar {
        padding: 1rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card[data-animate="fade"] {
    animation: fadeInUp 0.6s ease forwards;
}

.event-card.delay-1 {
    animation-delay: 0.1s;
}

.event-card.delay-2 {
    animation-delay: 0.2s;
}

.event-card.delay-3 {
    animation-delay: 0.3s;
}
