/* ================================================== */
/* 🎯 STYLES POUR LE PLUGIN CITOYEN ÉVÉNEMENTS */
/* ================================================== */

/* Styles pour le shortcode d'agenda */
.agenda-evenements {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-item {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #e8f5e8;
    border-left: 4px solid #2C5F2D;
    position: relative;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 95, 45, 0.15);
    border-color: #FFB400;
}

.event-date {
    text-align: center;
    background: linear-gradient(135deg, #2C5F2D 0%, #3a7a3c 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 90px;
    margin-right: 25px;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

.event-day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    font-family: 'Open Sans', sans-serif;
}

.event-month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    margin-top: 5px;
}

.event-content {
    flex: 1;
}

.event-title {
    margin: 0 0 12px 0;
    color: #2C5F2D;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #FFB400;
}

.event-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Roboto', sans-serif;
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-time::before {
    content: '⏰';
    font-size: 12px;
}

.event-location::before {
    content: '📍';
    font-size: 12px;
}

.event-excerpt {
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.event-action {
    margin-left: 20px;
}

.event-link {
    background: linear-gradient(135deg, #FFB400 0%, #ffc730 100%);
    color: #333333;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.3);
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.event-link:hover {
    background: #FFFFFF;
    color: #FFB400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
    border-color: #FFB400;
}

.event-today-badge {
    display: block;
    background: #FFB400;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    margin-top: 5px;
}

.event-today .event-date {
    background: linear-gradient(135deg, #FFB400 0%, #ffc730 100%);
}

.no-events-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-family: Roboto, sans-serif;
}

.no-events-icon {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-events-text {
    font-size: 16px;
    margin: 0;
}

/* ================================================== */
/* 📱 RESPONSIVE AGENDA */
/* ================================================== */

@media (max-width: 968px) {
    .agenda-evenements {
        padding: 0 15px;
    }
    
    .event-item {
        padding: 20px;
    }
    
    .event-date {
        min-width: 80px;
        margin-right: 20px;
        padding: 15px;
    }
    
    .event-day {
        font-size: 24px;
    }
    
    .event-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
        max-width: 120px;
    }
    
    .event-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .event-action {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .event-link {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .agenda-evenements {
        padding: 0 10px;
    }
    
    .event-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-excerpt {
        font-size: 14px;
    }
}

/* ================================================== */
/* 🎯 STYLES POUR LES WIDGETS DE PARTICIPATION */
/* ================================================== */

.event-participation-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    border: 2px solid #e8f5e8;
}

.participation-count {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #2C5F2D 0%, #3a7a3c 100%);
    color: white;
    border-radius: 8px;
}

.count-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}

.count-text {
    font-size: 0.9em;
    opacity: 0.9;
    font-family: 'Roboto', sans-serif;
}

.participation-btn {
    background: linear-gradient(135deg, #FFB400 0%, #ffc730 100%);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.3);
    width: 100%;
    max-width: 300px;
}

.participation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
}

.participation-form-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.participation-form h4 {
    color: #2C5F2D;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2C5F2D;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8f5e8;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #2C5F2D;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.phone-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8em;
    font-family: 'Roboto', sans-serif;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn, .submit-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.submit-btn {
    background: #2C5F2D;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-btn:hover {
    background: #245829;
}

.participation-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
}

.participation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.participation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================================================== */
/* 🎯 STYLES POUR LES DÉTAILS ÉVÉNEMENTS */
/* ================================================== */

.event-details-elementor {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.event-basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2C5F2D;
}

.info-icon {
    font-size: 24px;
    color: #2C5F2D;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content strong {
    color: #2C5F2D;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-content span {
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.event-gallery-elementor h3 {
    color: #2C5F2D;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFB400;
    padding-bottom: 10px;
}

.event-images {
    display: grid;
    gap: 15px;
}

.event-main-image {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ================================================== */
/* 🌟 EFFETS SPÉCIAUX */
/* ================================================== */

.event-item.featured::before {
    content: '⭐';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #FFB400;
}

.event-item.urgent {
    animation: pulse 2s infinite;
    border-left-color: #e74c3c;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
    50% { box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3); }
    100% { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
}

/* ================================================== */
/* 🎨 STYLES POUR LA META BOX ADMIN */
/* ================================================== */

.event-meta-fields {
    padding: 20px 0;
}

.meta-field {
    margin-bottom: 20px;
}

.event-meta-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C5F2D;
    font-family: 'Open Sans', sans-serif;
}

.event-meta-fields input[type="date"],
.event-meta-fields input[type="time"],
.event-meta-fields input[type="text"],
.event-meta-fields input[type="url"] {
    padding: 12px 15px;
    border: 2px solid #e8f5e8;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
}

.event-meta-fields input:focus {
    border-color: #2C5F2D;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
    outline: none;
}

.event-features-fields {
    padding: 10px 0;
}

.feature-field {
    margin-bottom: 15px;
}

.feature-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2C5F2D;
}

.feature-field .description {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}