/* =========================================
   WP Events — Single Event Page
   ========================================= */

:root {
    --wpe-accent: #e84040;
    --wpe-radius: 16px;
    --wpe-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.wpe-single-event {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: -apple-system, 'Segoe UI', sans-serif;
}

/* ---- Hero with image ---- */
.wpe-event-hero {
    position: relative;
    border-radius: var(--wpe-radius);
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16 / 6;
    background: #1a1a2e;
}

.wpe-event-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpe-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 40%, transparent 100%);
}

.wpe-hero-content {
    position: absolute;
    bottom: 28px;
    left: 32px;
    color: #fff;
}

.wpe-hero-tag {
    display: inline-block;
    background: var(--wpe-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.wpe-event-title {
    margin: 0;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

/* ---- Simple header (no image) ---- */
.wpe-event-header-simple {
    padding: 40px 0 20px;
    border-bottom: 2px solid #f0f0f4;
    margin-bottom: 36px;
}

.wpe-event-header-simple .wpe-event-title {
    color: #1a1a2e;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    margin: 10px 0 0;
}

/* ---- Two-column body ---- */
.wpe-event-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 640px) {
    .wpe-event-body { grid-template-columns: 1fr; }
}

/* ---- Meta card ---- */
.wpe-event-meta-card {
    background: #fff;
    border-radius: var(--wpe-radius);
    box-shadow: var(--wpe-shadow);
    padding: 20px 18px;
    position: sticky;
    top: 24px;
}

.wpe-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f4;
}
.wpe-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
.wpe-meta-item:first-child { padding-top: 0; }

.wpe-meta-icon {
    width: 36px;
    height: 36px;
    background: color-mix(in srgb, var(--wpe-accent) 12%, white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wpe-meta-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--wpe-accent);
}

.wpe-meta-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #a0a0b0;
    margin-bottom: 2px;
}

.wpe-meta-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ---- Inscription CTA ---- */
.wpe-meta-item--cta {
    border-bottom: none !important;
    padding-top: 12px;
    margin-top: 4px;
}

.wpe-inscription-btn {
    display: block;
    text-align: center;
    background: var(--wpe-accent);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 8px;
    transition: opacity .15s, transform .1s;
    letter-spacing: .3px;
}
.wpe-inscription-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}
.wpe-event-content {
    font-size: 15px;
    line-height: 1.75;
    color: #3d3d4f;
}

.wpe-event-content p { margin-top: 0; margin-bottom: 1.2em; }

.wpe-event-content h2,
.wpe-event-content h3 {
    color: #1a1a2e;
    font-weight: 700;
    margin: 1.8em 0 .6em;
}

