/* Styles généraux */
.ghem-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ghem-event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ghem-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.ghem-event-image {
    height: 200px;
    overflow: hidden;
}

.ghem-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ghem-event-card:hover .ghem-event-image img {
    transform: scale(1.05);
}

.ghem-event-content {
    padding: 1.5rem;
}

.ghem-event-category {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.ghem-event-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.ghem-event-title a {
    color: #333;
    text-decoration: none;
}

.ghem-event-title a:hover {
    color: #0073aa;
}

.ghem-event-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ghem-event-meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

.ghem-event-meta .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    color: #0073aa;
    vertical-align: middle;
}

.ghem-event-time {
    margin-left: 0.5rem;
    opacity: 0.8;
}

.ghem-event-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ghem-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.ghem-event-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.ghem-event-more:hover {
    color: #005177;
    text-decoration: underline;
}

.ghem-event-full {
    background: #ffebee;
    color: #c62828;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Page d'un événement unique */
.ghem-event-details {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ghem-event-header {
    padding: 2rem;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.ghem-event-title {
    margin: 0 0 1.5rem;
    font-size: 2rem;
    color: #222;
}

.ghem-event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ghem-event-date,
.ghem-event-location,
.ghem-event-participants,
.ghem-event-deadline {
    display: flex;
    align-items: flex-start;
    color: #444;
    line-height: 1.6;
}

.ghem-event-date .dashicons,
.ghem-event-location .dashicons,
.ghem-event-participants .dashicons,
.ghem-event-deadline .dashicons {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    color: #0073aa;
}

.ghem-event-date-label,
.ghem-event-location-label,
.ghem-event-participants-label,
.ghem-event-deadline-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.ghem-event-content {
    padding: 2rem;
}

.ghem-event-content h2,
.ghem-event-content h3,
.ghem-event-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.ghem-event-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

/* Intervenants */
.ghem-speakers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ghem-speaker {
    display: flex;
    align-items: flex-start;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ghem-speaker:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ghem-speaker-photo {
    flex: 0 0 80px;
    margin-right: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ghem-speaker-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.ghem-speaker-details {
    flex: 1;
}

.ghem-speaker-name {
    margin: 0 0 0.5rem;
    color: #222;
    font-size: 1.1rem;
}

.ghem-speaker-title,
.ghem-speaker-company {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.ghem-speaker-company {
    font-weight: 600;
    color: #0073aa;
}

/* Carte */
.ghem-event-map {
    margin: 3rem 0;
}

.ghem-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.ghem-map-address {
    background: #f9f9f9;
    padding: 1rem;
    margin: 0;
    border-top: 1px solid #eee;
    color: #555;
}

.ghem-map-address .dashicons {
    color: #0073aa;
    margin-right: 0.5rem;
}

/* Formulaire d'inscription */
.ghem-event-registration {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border: 1px solid #eee;
}

.ghem-event-registration h3 {
    margin-top: 0;
    color: #222;
    font-size: 1.5rem;
}

.ghem-form-group {
    margin-bottom: 1.5rem;
}

.ghem-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.ghem-form-group input[type="text"],
.ghem-form-group input[type="email"],
.ghem-form-group input[type="number"],
.ghem-form-group select,
.ghem-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.ghem-form-group input[type="text"]:focus,
.ghem-form-group input[type="email"]:focus,
.ghem-form-group input[type="number"]:focus,
.ghem-form-group select:focus,
.ghem-form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.ghem-form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Alertes */
.ghem-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ghem-alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.ghem-alert-warning {
    background-color: #fff8e1;
    color: #ff8f00;
    border: 1px solid #ffe082;
}

.ghem-alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* Boutons */
.button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: #005177;
    color: #fff;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    background: #0073aa;
}

.button-primary:hover {
    background: #005177;
}

.button-secondary {
    background: #f0f0f0;
    color: #333;
}

.button-secondary:hover {
    background: #e0e0e0;
    color: #111;
}

/* Responsive */
@media (max-width: 768px) {
    .ghem-events-list {
        grid-template-columns: 1fr;
    }
    
    .ghem-event-meta {
        grid-template-columns: 1fr;
    }
    
    .ghem-speakers-list {
        grid-template-columns: 1fr;
    }
    
    .ghem-event-header,
    .ghem-event-content {
        padding: 1.5rem;
    }
}

/* Animation de chargement */
@keyframes ghem-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ghem-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ghem-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Admin */
.ghem-admin-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.ghem-admin-actions h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #555;
}
