/* ==========================================================================
   WP Events Engine - Premium Front-end Design System
   ========================================================================== */

/* Police Inter chargée via PHP (wp_enqueue_style) — pas d'@import ici */

:root {
    --wee-primary: #002741;
    --wee-primary-soft: #0f3d5e;
    --wee-accent: #f28b23;
    --wee-accent-soft: #ffdcc3;
    --wee-success: #0f766e;
    --wee-success-soft: #dff7f2;
    --wee-danger: #ba1a1a;
    --wee-danger-soft: #ffdad6;
    --wee-ink: #0b1c30;
    --wee-ink-soft: #42566d;
    --wee-muted: #5d7086;
    --wee-surface: #f8f9ff;
    --wee-surface-low: #eff4ff;
    --wee-surface-mid: #e5eeff;
    --wee-surface-high: #dce9ff;
    --wee-shell-bg: #c0dcef;
    --wee-shell-bg-soft: rgba(192, 220, 239, 0.6);
    --wee-shell-bg-strong: rgba(192, 220, 239, 0.6);
    --wee-shell-glow: rgba(255, 255, 255, 0.42);
    --wee-white: #ffffff;
    --wee-outline: rgba(114, 119, 126, 0.18);
    --wee-outline-strong: rgba(15, 61, 94, 0.16);
    --wee-shadow-sm: 0 10px 20px rgba(0, 29, 51, 0.06);
    --wee-shadow-md: 0 24px 50px rgba(0, 29, 51, 0.09);
    --wee-shadow-lg: 0 36px 80px rgba(0, 29, 51, 0.12);
    --wee-radius-sm: 14px;
    --wee-radius: 24px;
    --wee-radius-lg: 34px;
    --wee-transition: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Police premium — Inter (Google Fonts) avec fallbacks système de qualité */
    --wee-font: "Inter", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
                BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", sans-serif;
    /* Échelle typographique — ratio 1.215 (Major Second étendu) */
    --wee-text-2xs:   0.6875rem;   /*  11px — étiquettes très petites */
    --wee-text-xs:    0.75rem;     /*  12px — annotations, statuts */
    --wee-text-sm:    0.8125rem;   /*  13px — métadonnées (heure, lieu) */
    --wee-text-base:  0.9375rem;   /*  15px — corps, extrait */
    --wee-text-md:    1.0625rem;   /*  17px — titre carte (grille) */
    --wee-text-lg:    1.1875rem;   /*  19px — titre carte (liste) */
    --wee-text-xl:    1.4375rem;   /*  23px — titre carte (catalogue) */
    --wee-text-2xl:   1.75rem;     /*  28px — numéro du jour (badge compact) */
    --wee-text-3xl:   2.25rem;     /*  36px — numéro du jour (badge liste) */
    --wee-text-hero:  clamp(2.5rem, 5vw, 4.2rem); /* titres héros */
    --wee-date-day-size: var(--wee-text-2xl);
    --wee-date-month-size: var(--wee-text-2xs);
    --wee-date-year-size: var(--wee-text-xs);
    --wee-date-day-size-list: var(--wee-text-3xl);
    --wee-date-month-size-list: 0.95rem;
    --wee-date-year-size-list: 0.88rem;
    --wee-date-day-size-condensed: 2.1rem;
    --wee-date-month-size-condensed: 0.84rem;
    --wee-date-year-size-condensed: 0.84rem;
    --wee-shell-max-width: 1584px;
    --wee-shell-width-desktop: 85vw;
    --wee-shell-width-mobile: 95vw;
    --wee-filter-pill-width: clamp(152px, 20vw, 210px);
    --wee-columns: 3;
    /* Ombre du badge date — surchargée par chaque template (valeur horizon par défaut) */
    --wee-date-badge-shadow: 0 14px 30px rgba(0, 39, 65, 0.30);
}

.wee-template-horizon {
    --wee-primary:              #002741;
    --wee-primary-soft:         #0f3d5e;
    --wee-accent:               #f28b23;
    --wee-accent-soft:          #ffdcc3;
    --wee-surface:              #f8f9ff;
    --wee-surface-low:          #eff4ff;
    --wee-surface-mid:          #e5eeff;
    --wee-surface-high:         #dce9ff;
    --wee-shell-bg:             #c0dcef;
    --wee-shell-bg-soft:        rgba(192, 220, 239, 0.60);
    --wee-shell-bg-strong:      rgba(192, 220, 239, 0.85);
    --wee-shell-glow:           rgba(255, 255, 255, 0.42);
    --wee-date-badge-shadow:    0 14px 30px rgba(0, 39, 65, 0.30);
}

/* ──────────────────────────────────────────────────
   Template : Museum — Institution culturelle & arts
   Palette chaude : brun profond + ambre doré
   ────────────────────────────────────────────────── */
.wee-template-museum {
    --wee-primary:              #3b1f0a;
    --wee-primary-soft:         #5c3317;
    --wee-accent:               #b8722a;
    --wee-accent-soft:          #f5e3c8;
    --wee-ink:                  #2c1505;
    --wee-ink-soft:             #6b4423;
    --wee-muted:                #9b6e50;
    --wee-surface:              #fdfaf6;
    --wee-surface-low:          #f9f2e8;
    --wee-surface-mid:          #f2e8d8;
    --wee-surface-high:         #ecddd0;
    --wee-shell-bg:             #ede0cc;
    --wee-shell-bg-soft:        rgba(237, 224, 204, 0.60);
    --wee-shell-bg-strong:      rgba(237, 224, 204, 0.85);
    --wee-shell-glow:           rgba(255, 248, 235, 0.50);
    --wee-outline:              rgba(59, 31, 10, 0.12);
    --wee-outline-strong:       rgba(59, 31, 10, 0.20);
    --wee-shadow-sm:            0 10px 20px rgba(59, 31, 10, 0.07);
    --wee-shadow-md:            0 24px 50px rgba(59, 31, 10, 0.10);
    --wee-shadow-lg:            0 36px 80px rgba(59, 31, 10, 0.13);
    --wee-date-badge-shadow:    0 14px 30px rgba(59, 31, 10, 0.30);
}

/* ──────────────────────────────────────────────────
   Template : Club — Soirée & entertainment raffiné
   Palette sombre & cool : teal profond + émeraude
   ────────────────────────────────────────────────── */
.wee-template-club {
    --wee-primary:              #0a1f1c;
    --wee-primary-soft:         #143330;
    --wee-accent:               #0d9488;
    --wee-accent-soft:          #ccf0ee;
    --wee-ink:                  #061412;
    --wee-ink-soft:             #1f4d49;
    --wee-muted:                #4d8b86;
    --wee-surface:              #f3faf9;
    --wee-surface-low:          #e8f5f4;
    --wee-surface-mid:          #d5edeb;
    --wee-surface-high:         #c2e5e2;
    --wee-shell-bg:             #b0dbd7;
    --wee-shell-bg-soft:        rgba(176, 219, 215, 0.60);
    --wee-shell-bg-strong:      rgba(176, 219, 215, 0.85);
    --wee-shell-glow:           rgba(240, 255, 253, 0.45);
    --wee-outline:              rgba(10, 31, 28, 0.12);
    --wee-outline-strong:       rgba(10, 31, 28, 0.20);
    --wee-shadow-sm:            0 10px 20px rgba(10, 31, 28, 0.07);
    --wee-shadow-md:            0 24px 50px rgba(10, 31, 28, 0.10);
    --wee-shadow-lg:            0 36px 80px rgba(10, 31, 28, 0.13);
    --wee-date-badge-shadow:    0 14px 30px rgba(10, 31, 28, 0.30);
}

/* ──────────────────────────────────────────────────
   Template : Festival — Événement festif & vibrant
   Palette intense : bordeaux + corail vif
   ────────────────────────────────────────────────── */
.wee-template-festival {
    --wee-primary:              #5c1a1a;
    --wee-primary-soft:         #7a2828;
    --wee-accent:               #dc3545;
    --wee-accent-soft:          #fde0e0;
    --wee-ink:                  #3b0a0a;
    --wee-ink-soft:             #7a3030;
    --wee-muted:                #a06060;
    --wee-surface:              #fffbfb;
    --wee-surface-low:          #fef4f4;
    --wee-surface-mid:          #fce6e6;
    --wee-surface-high:         #f9d4d4;
    --wee-shell-bg:             #f5c0c0;
    --wee-shell-bg-soft:        rgba(245, 192, 192, 0.60);
    --wee-shell-bg-strong:      rgba(245, 192, 192, 0.85);
    --wee-shell-glow:           rgba(255, 248, 248, 0.50);
    --wee-outline:              rgba(92, 26, 26, 0.12);
    --wee-outline-strong:       rgba(92, 26, 26, 0.20);
    --wee-shadow-sm:            0 10px 20px rgba(92, 26, 26, 0.07);
    --wee-shadow-md:            0 24px 50px rgba(92, 26, 26, 0.10);
    --wee-shadow-lg:            0 36px 80px rgba(92, 26, 26, 0.13);
    --wee-date-badge-shadow:    0 14px 30px rgba(92, 26, 26, 0.30);
}

/* ──────────────────────────────────────────────────
   Template : Modern — SaaS / Tech / Dashboard
   Palette froide & nette : navy ardoise + bleu électrique
   ────────────────────────────────────────────────── */
.wee-template-modern {
    --wee-primary:              #1e3a5f;
    --wee-primary-soft:         #2d5080;
    --wee-accent:               #2563eb;
    --wee-accent-soft:          #dbeafe;
    --wee-ink:                  #0f2040;
    --wee-ink-soft:             #2d4a70;
    --wee-muted:                #64748b;
    --wee-surface:              #f8faff;
    --wee-surface-low:          #f0f5ff;
    --wee-surface-mid:          #e2ecff;
    --wee-surface-high:         #d4e3ff;
    --wee-shell-bg:             #c2d8ff;
    --wee-shell-bg-soft:        rgba(194, 216, 255, 0.60);
    --wee-shell-bg-strong:      rgba(194, 216, 255, 0.85);
    --wee-shell-glow:           rgba(248, 252, 255, 0.50);
    --wee-outline:              rgba(30, 58, 95, 0.12);
    --wee-outline-strong:       rgba(30, 58, 95, 0.20);
    --wee-shadow-sm:            0 10px 20px rgba(30, 58, 95, 0.07);
    --wee-shadow-md:            0 24px 50px rgba(30, 58, 95, 0.10);
    --wee-shadow-lg:            0 36px 80px rgba(30, 58, 95, 0.13);
    --wee-date-badge-shadow:    0 14px 30px rgba(30, 58, 95, 0.30);
}

.wee-events-wrapper,
.wee-calendar-wrapper,
.wee-single-event,
.wee-upcoming-events,
.wee-event-categories,
.wee-booking-section {
    font-family: var(--wee-font);
    color: var(--wee-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wee-events-wrapper *,
.wee-calendar-wrapper *,
.wee-single-event *,
.wee-upcoming-events *,
.wee-event-categories *,
.wee-booking-section * {
    box-sizing: border-box;
}

.wee-events-wrapper .screen-reader-text,
.wee-calendar-wrapper .screen-reader-text,
.wee-single-event .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wee-kicker,
.wee-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
    color: var(--wee-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wee-kicker::before,
.wee-panel-kicker::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-accent) 0%, #f7b067 100%);
}

.wee-section-title {
    margin: 0 0 1.2rem;
    color: var(--wee-primary);
    font-size: clamp(1.3rem, 1.6vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.wee-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wee-badge-category {
    background: var(--wee-accent-soft);
    color: var(--wee-primary);
    text-decoration: none;
}

.wee-badge-category:hover,
.wee-badge-category:focus-visible {
    filter: brightness(0.97);
}

.wee-badge-cancelled {
    background: var(--wee-danger-soft);
    color: var(--wee-danger);
}

.wee-button,
.wee-card-cta,
.wee-calendar-sidebar-cta,
.wee-widget-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    border: 0;
    font-weight: 600;
    font-size: var(--wee-text-sm);    /* 0.8125rem — boutons compacts */
    line-height: 1;
    text-decoration: none;
    transition: transform var(--wee-transition), background var(--wee-transition), box-shadow var(--wee-transition), color var(--wee-transition), border-color var(--wee-transition);
    cursor: pointer;
}

.wee-button:hover,
.wee-button:focus-visible,
.wee-card-cta:hover,
.wee-card-cta:focus-visible,
.wee-calendar-sidebar-cta:hover,
.wee-calendar-sidebar-cta:focus-visible,
.wee-widget-all-link:hover,
.wee-widget-all-link:focus-visible {
    transform: translateY(-1px);
}

.wee-button-primary,
.wee-card-cta-primary,
.wee-calendar-sidebar-cta {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 16px 30px rgba(15, 61, 94, 0.18);
}

.wee-button-primary:hover,
.wee-button-primary:focus-visible,
.wee-card-cta-primary:hover,
.wee-card-cta-primary:focus-visible,
.wee-calendar-sidebar-cta:hover,
.wee-calendar-sidebar-cta:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    color: var(--wee-primary);
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.16),
        0 14px 26px rgba(15, 61, 94, 0.1);
}

.wee-button-secondary,
.wee-card-cta-secondary {
    border: 1px solid rgba(15, 61, 94, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 252, 0.96) 100%);
    color: var(--wee-primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.32),
        0 12px 22px rgba(15, 61, 94, 0.12);
}

.wee-button-secondary:hover,
.wee-button-secondary:focus-visible,
.wee-card-cta-secondary:hover,
.wee-card-cta-secondary:focus-visible {
    border-color: rgba(15, 61, 94, 0.22);
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow:
        0 16px 30px rgba(15, 61, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wee-card-cta.is-disabled {
    background: #f7d3ce;
    color: #b94032;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.wee-card-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.68rem;
    height: 1.68rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow:
        0 12px 22px rgba(15, 61, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font-size: 0;
    line-height: 0;
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), background var(--wee-transition), color var(--wee-transition);
}

.wee-card-link-icon svg,
.wee-card-button-icon svg {
    display: block;
    width: 55%;
    height: 55%;
}

.wee-card-link-icon i,
.wee-card-button-icon i,
.wee-pagination-btn-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55%;
    height: 55%;
    font-size: 0.9rem;
    line-height: 1;
}

.wee-card-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
    line-height: 0;
}

.wee-card-button-icon svg,
.wee-card-button-icon i {
    color: currentColor;
    stroke: currentColor;
}

.wee-icon-position-left {
    flex-direction: row;
}

.wee-icon-position-right {
    flex-direction: row;
}

.wee-icon-position-left .wee-card-link-icon,
.wee-icon-position-left .wee-card-button-icon {
    order: -1;
}

.wee-icon-position-right .wee-card-link-icon,
.wee-icon-position-right .wee-card-button-icon {
    order: 2;
}

.wee-card-cta-secondary:hover .wee-card-link-icon,
.wee-card-cta-secondary:focus-visible .wee-card-link-icon {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white) !important;
    box-shadow:
        0 12px 20px rgba(15, 61, 94, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: scale(1.05);
}

.wee-card-cta-secondary:focus-visible .wee-card-link-icon {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        0 0 0 6px rgba(47, 96, 130, 0.2),
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 12px 22px rgba(15, 61, 94, 0.16);
}

.wee-error {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--wee-radius-sm);
    background: var(--wee-danger-soft);
    color: var(--wee-danger);
    font-size: 0.95rem;
    font-weight: 700;
}

.wee-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem;
    opacity: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.24) 42%, rgba(255, 255, 255, 0) 72%);
    backdrop-filter: blur(6px);
    transition: opacity var(--wee-transition);
}

.wee-loading.active {
    opacity: 1;
}

.wee-spinner {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: conic-gradient(from -90deg, rgba(242, 139, 35, 0.18) 0deg, rgba(242, 139, 35, 0.98) 95deg, rgba(15, 61, 94, 0.98) 250deg, rgba(15, 61, 94, 0.08) 360deg);
    box-shadow: 0 18px 34px rgba(15, 61, 94, 0.16);
    animation: wee-spin 1s linear infinite;
}

.wee-spinner::before,
.wee-spinner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.wee-spinner::before {
    inset: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
}

.wee-spinner::after {
    inset: -4px;
    border: 1px dashed rgba(255, 255, 255, 0.72);
    opacity: 0.85;
}

.wee-loading-copy {
    display: grid;
    gap: 0.18rem;
}

.wee-loading-title {
    color: var(--wee-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wee-loading-subtitle {
    color: var(--wee-primary-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes wee-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Archive
   ========================================================================== */

.wee-archive-events {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(206, 229, 255, 0.9) 0%, rgba(206, 229, 255, 0) 32%),
        radial-gradient(circle at bottom right, rgba(255, 220, 195, 0.6) 0%, rgba(255, 220, 195, 0) 30%),
        var(--wee-surface);
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.wee-archive-shell {
    width: min(100%, var(--wee-shell-max-width), var(--wee-shell-width-desktop));
    max-width: none;
    margin: 0 auto;
}

.wee-archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.wee-archive-copy,
.wee-archive-highlight-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--wee-radius-lg);
    box-shadow: var(--wee-shadow-md);
}

.wee-archive-copy {
    padding: clamp(1.8rem, 4vw, 3.1rem);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, #ffffff 0%, #eff4ff 58%, #dae3ed 100%);
}

.wee-archive-title {
    margin: 0;
    color: var(--wee-primary);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.wee-archive-description {
    max-width: 52ch;
    margin: 1.2rem 0 0;
    color: var(--wee-ink-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.wee-archive-highlight-card {
    height: 100%;
    padding: 1.8rem;
    color: var(--wee-white);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(145deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
}

.wee-archive-highlight-label {
    display: inline-flex;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wee-archive-highlight-month {
    margin-bottom: 1.5rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.1;
}

.wee-archive-highlight-stat {
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
}

.wee-archive-highlight-copy {
    max-width: 28ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

/* ==========================================================================
   Event Listing Shell
   ========================================================================== */

.wee-events-wrapper {
    position: relative;
    /* min(100%) empêche le débordement dans un conteneur Elementor plus étroit que la valeur vw */
    width: min(100%, var(--wee-shell-max-width), var(--wee-shell-width-desktop));
    max-width: none;
    margin-inline: auto;
    padding: clamp(0.9rem, 1.6vw, 1.35rem);
    border-radius: var(--wee-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(180deg, var(--wee-shell-bg-soft) 0%, var(--wee-shell-bg-strong) 100%);
    box-shadow: var(--wee-shadow-sm);
}

/*
 * Pont Elementor -> wrapper interne du widget.
 * Sans ça, le rayon/bordure réglé dans l'onglet Avancé s'applique au conteneur
 * Elementor, alors que le fond visible est dessiné par le wrapper interne du plugin.
 */
.elementor-widget-wee-events-list > .elementor-widget-container,
.elementor-widget-wee-events-grid > .elementor-widget-container,
.elementor-widget-wee-events-featured > .elementor-widget-container,
.elementor-widget-wee-events-calendar > .elementor-widget-container,
.elementor-widget-wee-events-upcoming > .elementor-widget-container {
    border-radius: var(--wee-radius-lg);
}

.elementor-widget-wee-events-list > .elementor-widget-container > .wee-events-wrapper,
.elementor-widget-wee-events-grid > .elementor-widget-container > .wee-events-wrapper,
.elementor-widget-wee-events-featured > .elementor-widget-container > .wee-events-wrapper,
.elementor-widget-wee-events-calendar > .elementor-widget-container > .wee-calendar-wrapper,
.elementor-widget-wee-events-upcoming > .elementor-widget-container > .wee-upcoming-widget {
    border-radius: inherit;
}

.wee-events-wrapper::before {
    content: "";
    position: absolute;
    inset: 22px 14px auto;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--wee-shell-glow) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(18px);
    pointer-events: none;
}

.wee-events-wrapper > * {
    position: relative;
    z-index: 1;
}

.wee-event-list-heading {
    margin: 0 0 1.2rem;
    color: var(--wee-primary);
    font-size: clamp(1.32rem, 1.8vw, 1.82rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.wee-top-banner {
    margin-bottom: 24px;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 39, 65, 0.08), rgba(242, 139, 35, 0.12));
    border: 1px solid rgba(15, 61, 94, 0.08);
    box-shadow: var(--wee-shadow-sm);
}

.wee-top-banner-title {
    margin: 0 0 0;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.wee-events-topbar {
    display: grid;
    gap: 0.95rem 1rem;
    margin-bottom: 1rem;
}

/* Pagination block — top of wrapper, centered, below page title */
.wee-events-pagination-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}

.wee-events-topbar.has-filters {
    grid-template-columns: 1fr;
    grid-template-areas:
        "period"
        "filters";
    align-items: start;
}

.wee-events-topbar.no-filters {
    grid-template-columns: 1fr;
    grid-template-areas: "period";
    align-items: start;
}

.wee-events-nav-shell {
    display: flex;
    justify-content: center;
}

.wee-events-topbar.has-filters .wee-events-nav-shell,
.wee-events-topbar.has-filters .wee-events-nav,
.wee-events-topbar.no-filters .wee-events-nav-shell,
.wee-events-topbar.no-filters .wee-events-nav {
    display: contents;
}

.wee-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wee-events-topbar.has-filters .wee-filters {
    grid-area: filters;
    width: 100%;
    min-width: 0;
    align-self: center;
}

.wee-filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.wee-filters-right {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.wee-events-topbar.has-filters .wee-filters-left {
    min-width: 0;
}

.wee-events-topbar.has-filters .wee-filters-right {
    flex: 0 0 auto;
}

.wee-filter-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.wee-field-label,
.wee-filter-summary-label {
    display: none;
}

.wee-input,
.wee-select {
    width: auto;
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--wee-ink);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
    font: inherit;
    font-size: 0.86rem;
}

/* Champ catégorie — largeur automatique au contenu */
.wee-filter-field-category {
    flex: 0 0 auto;
    min-width: 0;
}

.wee-filter-field-category .wee-select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0.36rem 2rem 0.36rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Champ période preset */
.wee-filter-field-period .wee-select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0.36rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Zone de recherche */
.wee-filter-field-search {
    flex: 1 1 auto;
    min-width: 0;
}

.wee-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wee-search-icon {
    position: absolute;
    right: 0.62rem;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    color: var(--wee-muted);
    pointer-events: none;
    flex-shrink: 0;
    z-index: 1;
    opacity: 0.55;
}

/* Masquer la loupe quand le bouton ✕ est visible */
.wee-search-wrap:has(.wee-search-clear:not(.is-hidden)) .wee-search-icon {
    display: none;
}

.wee-search-input {
    width: clamp(130px, 18vw, 220px);
    padding-left: 0.75rem;
    padding-right: 2.2rem;
    min-height: 38px;
    font-size: 0.84rem;
}

.wee-search-input::-webkit-search-cancel-button {
    display: none;
}

.wee-search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 61, 94, 0.08);
    color: var(--wee-muted);
    cursor: pointer;
    transition: background var(--wee-transition), color var(--wee-transition);
}

.wee-search-clear.is-hidden {
    display: none;
}

.wee-search-clear:hover,
.wee-search-clear:focus-visible {
    background: rgba(242, 139, 35, 0.15);
    color: var(--wee-accent);
    outline: 2px solid var(--wee-accent);
    outline-offset: 2px;
}

.wee-input::placeholder {
    color: #8a99aa;
}

.wee-view-toggle {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
    width: auto;
    justify-content: flex-end;
}

.wee-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wee-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--wee-transition), color var(--wee-transition), transform var(--wee-transition);
}

.wee-view-btn svg,
.wee-view-btn span {
    color: inherit;
    transition: color var(--wee-transition);
}

.wee-view-btn:hover,
.wee-view-btn:focus-visible {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 14px 24px rgba(15, 61, 94, 0.2);
    transform: translateY(-1px);
}

.wee-view-btn.active,
.wee-view-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 14px 24px rgba(15, 61, 94, 0.2);
}

.wee-events-nav-shell.is-hidden {
    display: none;
}

.wee-events-nav {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.wee-events-nav-copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

/* Filtre mois/annee */
.wee-events-period-control {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 0 0 auto;
    min-width: 0;
    grid-area: period;
    align-self: start;
    padding-bottom: 0.1rem;
}

.wee-events-period-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
    color: var(--wee-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wee-events-period-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    cursor: pointer;
}

/* Icône hamburger ☰ à gauche */
.wee-events-period-field::before {
    content: "\2630";
    font-size: 1rem;
    color: var(--wee-muted);
    line-height: 1;
    pointer-events: none;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Supprimer l'ancienne flèche chevron */
.wee-events-period-field::after {
    display: none;
}

.wee-events-nav-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

/* Nav-actions are ONLY shown in the top pagination block — never inside the nav-shell/nav grid */
.wee-events-nav-shell .wee-events-nav-actions,
.wee-events-nav .wee-events-nav-actions {
    display: none !important;
}

.wee-events-nav-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--wee-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wee-events-month {
    flex: 0 1 auto;
    color: var(--wee-primary);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-align: left;
    text-transform: uppercase;
}

.wee-events-period-select {
    width: auto;
    min-width: 185px;
    max-width: none;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: var(--wee-primary);
    box-shadow: none;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    cursor: pointer;
    font-family: var(--wee-font);
}

.wee-events-period-select option {
    font-size: 0.875rem;
}

.wee-events-period-select:hover {
    color: var(--wee-primary-soft);
}

.wee-events-period-select:focus-visible {
    outline: 3px solid var(--wee-accent);
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(242, 139, 35, 0.14);
}

.wee-events-page-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    min-height: 2rem;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--wee-primary);
    opacity: 0.82;
    transition: opacity var(--wee-transition), background var(--wee-transition);
}

.wee-events-page-reset {
    background: transparent;
}

.wee-events-page-next {
    background: transparent;
}

.wee-events-page-label {
    color: var(--wee-primary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.wee-events-nav-actions {
    gap: 2.4rem;
}

.wee-events-page-btn:hover:not(.is-disabled),
.wee-events-page-btn:focus-visible:not(.is-disabled) {
    opacity: 1;
    background: rgba(15, 61, 94, 0.07);
    box-shadow: none;
}

.wee-events-nav .wee-events-month-btn,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow,
.wee-events-pagination-top .wee-pagination-btn.wee-pagination-btn-arrow,
.wee-calendar-nav .wee-cal-prev,
.wee-calendar-nav .wee-cal-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wee-primary);
    cursor: pointer;
    transition: transform var(--wee-transition), opacity var(--wee-transition);
}

.wee-events-nav .wee-events-page-btn.wee-pagination-btn-arrow,
.wee-events-pagination-top .wee-events-page-btn.wee-pagination-btn-arrow {
    width: auto;
    height: auto;
    flex: 0 0 auto;
}

.wee-events-nav .wee-events-month-btn:hover,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:hover:not(.is-disabled),
.wee-events-pagination-top .wee-pagination-btn.wee-pagination-btn-arrow:hover:not(.is-disabled),
.wee-calendar-nav .wee-cal-prev:hover,
.wee-calendar-nav .wee-cal-next:hover {
    transform: translateY(-1px);
}

.wee-pagination-btn.is-disabled,
.wee-pagination-btn:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.wee-events-nav .wee-pagination-btn-icon,
.wee-events-pagination-top .wee-pagination-btn-icon,
.wee-calendar-nav .wee-month-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow:
        0 8px 20px rgba(15, 61, 94, 0.28),
        0 2px 6px rgba(15, 61, 94, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 0;
    line-height: 0;
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), background var(--wee-transition), color var(--wee-transition);
}

.wee-events-page-reset .wee-pagination-btn-icon {
    background: linear-gradient(145deg, rgba(15, 61, 94, 0.55) 0%, rgba(15, 61, 94, 0.85) 100%);
    color: var(--wee-white);
    box-shadow:
        0 8px 20px rgba(15, 61, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wee-events-nav .wee-pagination-btn-icon svg,
.wee-events-pagination-top .wee-pagination-btn-icon svg,
.wee-events-nav .wee-pagination-btn-icon i,
.wee-events-pagination-top .wee-pagination-btn-icon i,
.wee-calendar-nav .wee-month-nav-icon svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55%;
    height: 55%;
    font-size: 0.9rem;
    line-height: 1;
    color: currentColor;
    stroke: currentColor;
}

.wee-events-page-btn .wee-pagination-btn-icon {
    color: var(--wee-white) !important;
}

.wee-events-page-btn .wee-pagination-btn-icon svg,
.wee-events-page-btn .wee-pagination-btn-icon i {
    color: inherit !important;
    stroke: currentColor !important;
}

.wee-events-page-btn .wee-pagination-btn-icon svg path:not([fill="none"]),
.wee-events-page-btn .wee-pagination-btn-icon svg rect:not([fill="none"]),
.wee-events-page-btn .wee-pagination-btn-icon svg circle:not([fill="none"]) {
    fill: currentColor !important;
}

.wee-events-nav .wee-events-month-btn:hover .wee-pagination-btn-icon,
.wee-events-nav .wee-events-month-btn:focus-visible .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:hover:not(.is-disabled) .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:focus-visible:not(.is-disabled) .wee-pagination-btn-icon,
.wee-events-pagination-top .wee-pagination-btn.wee-pagination-btn-arrow:hover:not(.is-disabled) .wee-pagination-btn-icon,
.wee-events-pagination-top .wee-pagination-btn.wee-pagination-btn-arrow:focus-visible:not(.is-disabled) .wee-pagination-btn-icon {
    background: rgba(255, 255, 255, 0.98);
    color: var(--wee-primary) !important;
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.18),
        0 12px 28px rgba(15, 61, 94, 0.22);
    transform: translateY(-2px) scale(1.06);
}

.wee-calendar-nav .wee-cal-prev:hover .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-prev:focus-visible .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-next:hover .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-next:focus-visible .wee-month-nav-icon {
    background: rgba(255, 255, 255, 0.98);
    color: var(--wee-primary);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.14);
    transform: scale(1.05);
}

.wee-events-nav .wee-events-month-btn:focus-visible .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:focus-visible:not(.is-disabled) .wee-pagination-btn-icon,
.wee-calendar-nav .wee-cal-prev:focus-visible .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-next:focus-visible .wee-month-nav-icon {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        0 0 0 6px rgba(47, 96, 130, 0.2),
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 12px 22px rgba(15, 61, 94, 0.16);
}

.wee-events-nav .wee-pagination-btn.is-disabled .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn:disabled .wee-pagination-btn-icon,
.wee-events-pagination-top .wee-pagination-btn.is-disabled .wee-pagination-btn-icon,
.wee-events-pagination-top .wee-pagination-btn:disabled .wee-pagination-btn-icon {
    background: rgba(15, 61, 94, 0.08);
    color: rgba(15, 61, 94, 0.42) !important;
    box-shadow: none;
    transform: none;
}

.wee-events-nav .wee-pagination-btn:disabled .wee-events-page-label,
.wee-events-nav .wee-pagination-btn.is-disabled .wee-events-page-label,
.wee-events-pagination-top .wee-pagination-btn:disabled .wee-events-page-label,
.wee-events-pagination-top .wee-pagination-btn.is-disabled .wee-events-page-label {
    color: rgba(15, 61, 94, 0.6);
}

.wee-events-nav .wee-events-page-reset:disabled .wee-pagination-btn-icon,
.wee-events-nav .wee-events-page-reset.is-disabled .wee-pagination-btn-icon,
.wee-events-pagination-top .wee-events-page-reset:disabled .wee-pagination-btn-icon,
.wee-events-pagination-top .wee-events-page-reset.is-disabled .wee-pagination-btn-icon {
    background: rgba(15, 61, 94, 0.05);
    color: rgba(15, 61, 94, 0.42) !important;
    box-shadow: none;
}

.wee-events-container {
    display: grid;
    grid-template-columns: repeat(var(--wee-columns), minmax(0, 1fr));
    gap: 1.5rem;
}

.wee-events-display {
    display: grid;
    position: relative;
    width: 100%;
    gap: 0;
}

.wee-events-panel.is-hidden,
.wee-events-calendar-panel.is-hidden {
    display: none;
}

.wee-events-panel,
.wee-events-calendar-panel {
    width: 100%;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease, filter 320ms ease;
}

.wee-events-wrapper.is-transitioning .wee-events-panel:not(.is-hidden),
.wee-events-wrapper.is-transitioning .wee-events-calendar-panel:not(.is-hidden) {
    opacity: 0.24;
    filter: blur(5px);
    transform: translate3d(var(--wee-panel-shift, 0), 0, 0) scale(0.985);
}

.wee-events-wrapper.is-loading-prev {
    --wee-panel-shift: 28px;
}

.wee-events-wrapper.is-loading-next {
    --wee-panel-shift: -28px;
}

.wee-events-wrapper.is-transitioning .wee-events-month-btn,
.wee-events-wrapper.is-transitioning .wee-events-page-btn {
    pointer-events: none;
}

.wee-no-events {
    grid-column: 1 / -1;
    margin: 0;
    padding: 3rem 1.5rem;
    border-radius: var(--wee-radius);
    text-align: center;
    color: var(--wee-ink-soft);
    background: linear-gradient(135deg, rgba(192, 220, 239, 0.45) 0%, rgba(192, 220, 239, 0.62) 100%);
}

.wee-events-wrapper[data-fixed-view="true"] .wee-events-container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ==========================================================================
   Event Card
   ========================================================================== */

.wee-event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: calc(var(--wee-radius) + 4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 254, 255, 0.98) 100%);
    box-shadow: var(--wee-shadow-sm);
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), filter var(--wee-transition);
}

.wee-event-card:hover,
.wee-event-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--wee-shadow-md);
}

.wee-card-media {
    position: relative;
    min-width: 0;
}

.wee-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--wee-card-image-ratio, 16 / 10);
    background: var(--wee-card-image-bg, transparent);
    overflow: hidden;
    text-decoration: none;
}

/* Placeholder quand aucune image à la une n'est définie sur l'événement */
.wee-card-image--no-thumb {
    background: linear-gradient(135deg, var(--wee-surface, #f2f6fb) 0%, rgba(15, 61, 94, 0.06) 100%);
    pointer-events: none;
}

/* Supprime le gradient overlay sur les placeholders vides */
.wee-card-image--no-thumb::after { display: none; }

.wee-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 29, 49, 0.05) 0%, rgba(8, 29, 49, 0) 40%, rgba(8, 29, 49, 0.24) 100%);
    pointer-events: none;
}

.wee-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(var(--wee-card-image-shift-x, 0px), var(--wee-card-image-shift-y, 0px), 0) scale(var(--wee-card-image-scale, 1));
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wee-event-card:hover .wee-card-image img,
.wee-event-card:focus-within .wee-card-image img {
    transform: translate3d(var(--wee-card-image-shift-x, 0px), var(--wee-card-image-shift-y, 0px), 0) scale(calc(var(--wee-card-image-scale, 1) * 1.06));
}

.wee-card-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    min-width: 72px;
    padding: 0.8rem 0.9rem;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    text-align: center;
    box-shadow: 0 18px 36px rgba(15, 61, 94, 0.24);
}

/* Zone date */
.wee-card-date-day {
    font-size: var(--wee-date-day-size);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

.wee-card-date-month {
    font-size: var(--wee-date-month-size);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wee-card-date-year {
    font-size: var(--wee-date-year-size);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    opacity: 0.88;
    text-transform: uppercase;
}

.wee-card-date-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.wee-card-date-rail {
    display: none;
    position: relative; /* contexte pour .wee-card-badges-date */
}

.wee-card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wee-card-status-soldout {
    background: rgba(186, 26, 26, 0.94);
    color: var(--wee-white);
}

.wee-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.82rem;
    min-width: 0;
    padding: 1.45rem;
}

.wee-card-topline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    order: var(--wee-topline-order, 0);
    overflow: hidden;
}

/* Ligne badge + periodicite */
.wee-card-category-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--wee-accent-soft);
    color: var(--wee-primary);
    font-size: var(--wee-text-2xs);   /* 0.6875rem — tag compact */
    font-weight: 700;
    letter-spacing: 0.1em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.wee-card-title {
    margin: 0;
    color: var(--wee-primary);
    font-size: clamp(var(--wee-text-md), 1.3vw, 1.35rem);  /* ~17–21.6px selon la grille */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    order: var(--wee-title-order, 1);
}

.wee-card-title a {
    color: inherit;
    text-decoration: none;
}

.wee-card-title a:hover,
.wee-card-title a:focus-visible {
    color: var(--wee-primary-soft);
}

.wee-card-time-row {
    display: flex;
    align-items: center;
    gap: 0.32em;
    margin: 0;
    color: var(--wee-primary-soft);
    font-size: var(--wee-text-sm);    /* 0.8125rem — métadonnée secondaire */
    font-weight: 600;
    line-height: 1.25;
    order: var(--wee-time-order, 2);
}

.wee-card-excerpt {
    margin: 0;
    color: var(--wee-ink-soft);
    font-size: var(--wee-text-base);  /* 0.9375rem — corps de texte */
    font-weight: 400;
    line-height: 1.7;
    order: var(--wee-excerpt-order, 3);
}

.wee-card-topline:empty,
.wee-card-meta:empty,
.wee-card-footer:empty {
    display: none;
}

.wee-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    order: var(--wee-meta-order, 4);
}

.wee-card-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    background: rgba(239, 244, 255, 0.96);
    color: var(--wee-primary-soft);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.wee-card-price {
    background: rgba(255, 220, 195, 0.72);
}

.wee-card-capacity {
    background: rgba(223, 247, 242, 0.86);
    color: var(--wee-success);
}

.wee-event-card.is-sold-out .wee-card-capacity {
    background: var(--wee-danger-soft);
    color: var(--wee-danger);
}

.wee-card-bottomline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
    min-width: 0;
    order: var(--wee-bottom-order, 5);
    overflow: hidden;
}

.wee-card-bottomline-main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.wee-card-bottomline-main.is-empty {
    display: none;
}

.wee-card-bottomline-action {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
}

/* Ligne lieu + voir detail */
.wee-card-venue-line {
    display: flex;
    align-items: center;
    gap: 0.32em;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--wee-primary);
    font-size: var(--wee-text-sm);    /* 0.8125rem — même niveau que l'heure */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wee-card-venue-line.is-empty {
    display: none;
}

/* ── Badges superposés zone date ── */
.wee-card-badges-date {
    display: none; /* caché par défaut — activé via Elementor */
    position: absolute;
    z-index: 4;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.25rem 0.2rem;
    left: 0;
    right: 0;
    bottom: 0.3rem;
    top: auto;
}

.wee-card-badges-date .wee-card-category-label,
.wee-card-badges-date .wee-badge-recurring {
    font-size: 0.5rem;
    padding: 0.12rem 0.32rem;
    min-height: 14px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Badge récurrence — styles de base */
.wee-badge-recurring {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 61, 94, 0.12);
    color: var(--wee-primary-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Icônes inline dans les cartes (horloge, localisation) */
.wee-card-icon {
    display: inline-block;
    width: 0.88em;
    height: 0.88em;
    flex-shrink: 0;
    vertical-align: middle;
    opacity: 0.6;
}

.wee-card-detail-link {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-height: 42px;
    border-color: rgba(15, 61, 94, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(242, 247, 251, 0.98) 100%);
    color: var(--wee-primary);
    box-shadow:
        0 12px 26px rgba(15, 61, 94, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 0 0 1px rgba(15, 61, 94, 0.06);
    white-space: nowrap;
}

.wee-card-detail-link:hover,
.wee-card-detail-link:focus-visible {
    border-color: rgba(0, 39, 65, 0.78);
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow:
        0 16px 34px rgba(0, 39, 65, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wee-card-detail-link .wee-card-link-icon {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white) !important;
    box-shadow:
        0 10px 18px rgba(0, 39, 65, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wee-card-detail-link:hover .wee-card-link-icon,
.wee-card-detail-link:focus-visible .wee-card-link-icon {
    background: rgba(255, 255, 255, 0.98);
    color: var(--wee-primary) !important;
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 10px 18px rgba(0, 0, 0, 0.18);
}

.wee-card-detail-link .wee-card-link-icon svg,
.wee-card-detail-link .wee-card-link-icon i {
    color: inherit !important;
    stroke: currentColor !important;
}

.wee-card-detail-link .wee-card-link-icon svg path:not([fill="none"]),
.wee-card-detail-link .wee-card-link-icon svg rect:not([fill="none"]),
.wee-card-detail-link .wee-card-link-icon svg circle:not([fill="none"]) {
    fill: currentColor !important;
}

.wee-card-detail-text {
    display: inline-flex;
    align-items: center;
}

.wee-card-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
    order: var(--wee-footer-order, 6);
}

/* ==========================================================================
   Card UI Improvements — hiérarchie visuelle, lisibilité, alignements
   ========================================================================== */

/* Ligne d'accent colorée en haut de chaque carte (identité du template) */
.wee-event-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--wee-accent) 0%, var(--wee-primary-soft) 100%);
    border-radius: var(--wee-radius) var(--wee-radius) 0 0;
    opacity: 0.75;
    flex-shrink: 0;
    order: -1;
}

/* Heure : pill semi-transparent pour mieux détacher l'info horaire */
.wee-card-time-row {
    display: inline-flex;
    align-self: flex-start;
    background: var(--wee-surface-low);
    border: 1px solid var(--wee-outline);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    gap: 0.38em;
    color: var(--wee-primary);
    font-size: var(--wee-text-sm);
    font-weight: 600;
    line-height: 1.25;
}

/* Icône horloge dans le pill horaire */
.wee-card-time-row .wee-card-icon {
    opacity: 0.55;
    color: var(--wee-accent);
}

/* Badge catégorie : texte couleur accent pour plus de vivacité */
.wee-card-category-label {
    color: var(--wee-accent);
    background: var(--wee-accent-soft);
}

/* Séparateur visuel avant la zone action (bottomline) */
.wee-card-bottomline {
    padding-top: 0.85rem;
    border-top: 1px solid var(--wee-outline);
}

/* Titre : taille et contraste légèrement améliorés */
.wee-card-title {
    line-height: 1.25;
    letter-spacing: -0.028em;
}

/* Extrait : meilleure lisibilité */
.wee-card-excerpt {
    font-size: var(--wee-text-sm);
    line-height: 1.65;
    color: var(--wee-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Date badge : ombre adaptée au template via variable --wee-date-badge-shadow.
   Définie dans :root puis surchargée par chaque template (évite color-mix CSS4). */
.wee-card-date {
    box-shadow: var(--wee-date-badge-shadow, 0 14px 30px rgba(0, 39, 65, 0.30));
}

/* Icône venue : légèrement colorée pour mieux la percevoir */
.wee-card-venue-line .wee-card-icon {
    opacity: 0.65;
    color: var(--wee-accent);
}

/* Badge récurrence : utilise la couleur primaire du template */
.wee-badge-recurring {
    background: rgba(0, 0, 0, 0.06);
    color: var(--wee-primary);
}

/* Vue liste : pas d'accent-line verticale (elle serait sur le côté) */
.wee-view-list .wee-event-card::before {
    display: none;
}

/* Vue liste : time-row en ligne simple, sans pill */
.wee-view-list .wee-card-time-row {
    background: transparent;
    border: none;
    padding: 0;
    align-self: auto;
}

/* Mobile : time-row en plein width */
@media (max-width: 600px) {
    .wee-card-time-row {
        align-self: stretch;
        justify-content: center;
    }
}

.wee-view-list {
    grid-template-columns: 1fr !important;
}

.wee-view-list .wee-event-card {
    display: grid;
    /* Variables pilotées par les contrôles Elementor "Largeur zone date + image" */
    --wee-list-media-width: clamp(240px, 30%, 285px);
    --wee-list-date-width: 92px;
    --wee-tablet-list-media-width: 270px;
    --wee-tablet-list-date-width: 84px;
    --wee-tablet-card-height: min(210px, var(--wee-event-list-max-height, 250px));
    --wee-tablet-body-padding: 0.85rem 1rem 0.8rem;
    --wee-mobile-list-date-width: 74px;
    --wee-mobile-card-height: min(132px, var(--wee-mobile-list-max-height));
    --wee-mobile-body-padding: 0.68rem 0.82rem 0.64rem;
    grid-template-columns: minmax(210px, var(--wee-list-media-width)) minmax(0, 1fr);
    min-height: var(--wee-event-list-min-height, 0px);
    max-height: var(--wee-event-list-max-height, 250px);
}

.wee-view-list .wee-card-media {
    display: grid;
    /* La colonne date est pilotée par --wee-list-date-width */
    grid-template-columns: minmax(74px, var(--wee-list-date-width)) minmax(0, 1fr);
    align-items: stretch;
    height: 100%;
}

.wee-view-list .wee-card-date-rail {
    display: inline-flex;
    min-height: 100%;
    border-radius: 0;
    border-top-left-radius: calc(var(--wee-radius) + 4px);
    border-bottom-left-radius: calc(var(--wee-radius) + 4px);
}

.wee-view-list .wee-card-date {
    padding: 0.65rem 0.5rem;
    gap: 0.2rem;
    --wee-date-day-size: var(--wee-date-day-size-list);
    --wee-date-month-size: var(--wee-date-month-size-list);
    --wee-date-year-size: var(--wee-date-year-size-list);
}

.wee-view-list .wee-card-image {
    aspect-ratio: auto;
    height: calc(100% - 10px);
    min-height: 0;
    margin: 5px 4px 5px 0;
    border-radius: 16px;
    overflow: hidden;
}

.wee-view-list .wee-card-date-overlay {
    display: none;
}

.wee-view-list .wee-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "topline"
        "title"
        "time"
        "excerpt"
        "meta"
        "bottom"
        "footer";
    grid-template-areas: var(
        --wee-list-template-areas,
        "topline"
        "title"
        "time"
        "excerpt"
        "meta"
        "bottom"
        "footer"
    );
    align-content: var(--wee-list-body-align, center);
    gap: var(--wee-list-body-gap, 0.45rem);
    padding: 1.15rem 1.3rem;
    height: 100%;
    overflow: hidden;
}

.wee-view-list .wee-card-topline {
    grid-area: topline;
}

.wee-view-list .wee-card-title {
    grid-area: title;
    font-size: clamp(var(--wee-text-lg), 1.5vw, 1.55rem);  /* ~19–24.8px — plus grand en liste */
}

.wee-view-list .wee-card-time-row {
    grid-area: time;
}

.wee-view-list .wee-card-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--wee-card-title-lines, 2);
    max-height: calc(1.18em * var(--wee-card-title-lines, 2));
}

.wee-view-list .wee-card-excerpt {
    grid-area: excerpt;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--wee-card-excerpt-lines, 3);
    line-height: var(--wee-card-excerpt-line-height, 1.58);
    max-height: calc(1em * var(--wee-card-excerpt-line-height, 1.58) * var(--wee-card-excerpt-lines, 3));
}

.wee-view-list .wee-card-excerpt,
.wee-view-catalogue .wee-card-excerpt {
    max-width: 62ch;
}

.wee-view-list .wee-card-excerpt {
    margin-bottom: 0;
}

.wee-view-list .wee-card-meta {
    grid-area: meta;
    align-self: start;
    margin-top: 0;
}

.wee-view-list .wee-card-bottomline {
    grid-area: bottom;
}

.wee-view-list .wee-card-footer {
    grid-area: footer;
    align-self: start;
    justify-self: start;
    margin-top: 0;
    gap: 0.55rem;
}

.wee-view-list .wee-card-meta > span,
.wee-view-catalogue .wee-card-meta > span {
    font-size: 1rem;
}

.wee-view-list .wee-card-meta > span {
    min-height: 36px;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
}

.wee-view-list .wee-card-cta {
    min-height: 42px;
    padding: 0.75rem 1.1rem;
    font-size: 0.82rem;
}

.wee-view-catalogue {
    grid-template-columns: 1fr !important;
}

.wee-view-catalogue .wee-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, var(--wee-catalogue-media-width, 260px));
    grid-template-areas: "body media";
    align-items: center;
    column-gap: var(--wee-catalogue-card-gap, 1rem);
    min-height: 220px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 55%, rgba(206, 229, 255, 0.32) 100%);
    box-shadow: 0 24px 48px rgba(15, 61, 94, 0.12);
    overflow: hidden;
}

.wee-view-catalogue .wee-card-media {
    grid-area: media;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 0;
    padding: var(--wee-catalogue-media-padding, 0.55rem);
    background: linear-gradient(180deg, rgba(0, 39, 65, 0.05) 0%, rgba(15, 61, 94, 0.12) 100%);
}

.wee-view-catalogue .wee-card-image {
    width: 100%;
    max-width: 100%;
    height: var(--wee-catalogue-image-height, 100%);
    min-height: var(--wee-catalogue-image-min-height, 170px);
    border-radius: calc(var(--wee-radius) + 2px);
}

.wee-view-catalogue .wee-card-date-rail {
    display: none;
}

.wee-view-catalogue .wee-card-body {
    grid-area: body;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: var(--wee-catalogue-body-padding, 0.95rem 1.1rem);
    text-align: left;
}

.wee-view-catalogue .wee-card-title {
    font-size: clamp(1.02rem, 1.45vw, 1.3rem);
    letter-spacing: -0.03em;
}

.wee-view-catalogue .wee-card-title a,
.wee-view-catalogue .wee-card-excerpt,
.wee-view-catalogue .wee-card-time-row,
.wee-view-catalogue .wee-card-meta,
.wee-view-catalogue .wee-card-bottomline,
.wee-view-catalogue .wee-card-footer,
.wee-view-catalogue .wee-card-topline {
    max-width: 100%;
}

.wee-view-catalogue .wee-card-time-row {
    font-size: 0.92rem;
}

.wee-view-catalogue .wee-card-excerpt {
    max-width: var(--wee-catalogue-excerpt-width, 42ch);
    font-size: 0.9rem;
    line-height: 1.5;
}

.wee-view-catalogue .wee-card-footer .wee-card-cta-secondary {
    margin-left: 0;
}

.wee-view-catalogue .wee-card-topline,
.wee-view-catalogue .wee-card-bottomline,
.wee-view-catalogue .wee-card-footer {
    justify-content: flex-start;
}

.wee-view-catalogue .wee-card-bottomline {
    gap: 0.7rem;
}

.wee-view-catalogue .wee-card-bottomline-main,
.wee-view-catalogue .wee-card-bottomline-action {
    min-width: 0;
}

.wee-view-catalogue .wee-card-bottomline-action {
    margin-inline-start: 0;
}

.wee-view-catalogue .wee-card-venue-line {
    white-space: normal;
    overflow-wrap: anywhere;
}

.wee-view-catalogue .wee-card-detail-link,
.wee-view-catalogue .wee-card-cta {
    min-height: 40px;
}

.wee-view-catalogue .wee-card-image:focus-visible,
.wee-view-catalogue .wee-card-title a:focus-visible,
.wee-view-catalogue .wee-card-detail-link:focus-visible,
.wee-view-catalogue .wee-card-cta:focus-visible {
    outline-offset: 3px;
}

.wee-view-grid .wee-event-card.no-image .wee-card-media,
.wee-events-wrapper[data-fixed-view="true"] .wee-event-card.no-image .wee-card-media {
    padding: 1rem 1rem 0;
}

.wee-view-grid .wee-event-card.no-image .wee-card-date-rail,
.wee-events-wrapper[data-fixed-view="true"] .wee-event-card.no-image .wee-card-date-rail {
    display: inline-flex;
}

/* ==========================================================================
   Calendar
   ========================================================================== */

.wee-calendar-wrapper {
    position: relative;
    width: min(100%, var(--wee-shell-max-width), var(--wee-shell-width-desktop));
    max-width: none;
    margin-inline: auto;
}

.wee-calendar-shell {
    width: 100%;
    padding: clamp(0.9rem, 1.6vw, 1.15rem);
    border-radius: var(--wee-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
        radial-gradient(circle at top left, var(--wee-shell-glow) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, var(--wee-shell-bg-soft) 0%, var(--wee-shell-bg-strong) 100%);
    box-shadow: var(--wee-shadow-sm);
}

.wee-events-wrapper .wee-events-calendar-panel .wee-calendar-nav {
    display: none;
}

.wee-events-wrapper .wee-events-calendar-panel .wee-calendar-toolbar {
    justify-content: flex-start;
}

.wee-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: calc(var(--wee-radius) + 2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(234, 245, 255, 0.84) 100%);
    box-shadow: inset 0 0 0 1px rgba(47, 96, 130, 0.08);
}

.wee-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.05rem;
    align-items: center;
}

.wee-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wee-primary);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wee-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7);
}

.wee-legend-dot-primary {
    background: linear-gradient(135deg, var(--wee-primary) 0%, var(--wee-primary-soft) 100%);
    box-shadow: 0 0 0 5px rgba(15, 61, 94, 0.16);
}

.wee-legend-dot-today {
    background: #8bb8d8;
    box-shadow: 0 0 0 5px rgba(139, 184, 216, 0.26);
}

.wee-legend-dot-selected {
    background: #2f6082;
    box-shadow: 0 0 0 5px rgba(47, 96, 130, 0.24);
}

.wee-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}

.wee-cal-month-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--wee-primary);
    font-size: 1em;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wee-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) 340px;
    gap: 1.15rem;
}

.wee-calendar-board,
.wee-calendar-selection {
    padding: 1rem;
    border-radius: calc(var(--wee-radius) + 2px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
}

.wee-calendar-selection {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 246, 255, 0.94) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(47, 96, 130, 0.14),
        0 18px 34px rgba(15, 61, 94, 0.08);
}

.wee-calendar-selection .wee-kicker {
    color: var(--wee-primary-soft);
}

.wee-calendar-selection .wee-kicker::before {
    background: linear-gradient(135deg, #2f6082 0%, #8bb8d8 100%);
}

.wee-calendar-header,
.wee-calendar-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.wee-calendar-header {
    margin-bottom: 0.7rem;
}

.wee-calendar-header > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--wee-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-cal-day {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0.8rem;
    min-height: 124px;
    padding: 0.85rem 0.8rem 0.8rem;
    border: 1px solid rgba(15, 61, 94, 0.06);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 253, 255, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    color: var(--wee-primary);
}

.wee-cal-empty {
    background: transparent;
    box-shadow: none;
}

.wee-cal-has-events {
    cursor: pointer;
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), background var(--wee-transition);
}

.wee-cal-has-events:hover,
.wee-cal-has-events:focus-visible {
    z-index: 2;
    transform: translateY(-2px);
    border-color: rgba(47, 96, 130, 0.2);
    box-shadow: 0 14px 26px rgba(15, 61, 94, 0.1);
}

.wee-cal-day.is-selected {
    z-index: 2;
    border-color: rgba(15, 61, 94, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 242, 251, 0.98) 100%);
    box-shadow:
        0 18px 28px rgba(15, 61, 94, 0.12),
        inset 0 0 0 1px rgba(47, 96, 130, 0.18);
}

.wee-cal-today {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 244, 254, 0.92) 100%);
}

.wee-cal-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(139, 184, 216, 0.88);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(232, 244, 254, 0.96) 0%, rgba(244, 250, 255, 0.96) 100%);
    color: var(--wee-primary-soft);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wee-cal-today .wee-cal-day-num {
    border-color: rgba(139, 184, 216, 0.96);
    background: linear-gradient(180deg, rgba(192, 220, 239, 0.95) 0%, rgba(232, 244, 254, 0.98) 100%);
    color: var(--wee-primary);
}

.wee-cal-day.is-selected .wee-cal-day-num {
    border-color: rgba(0, 39, 65, 0.96);
    background: linear-gradient(180deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow:
        0 12px 20px rgba(15, 61, 94, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wee-cal-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.wee-cal-marker {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 10px 16px rgba(15, 61, 94, 0.12);
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), filter var(--wee-transition);
}

.wee-cal-marker:hover {
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 16px 24px rgba(15, 61, 94, 0.18);
    filter: saturate(1.04);
}

.wee-cal-marker::before,
.wee-cal-marker::after {
    position: absolute;
    left: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--wee-transition), transform var(--wee-transition);
}

.wee-cal-marker::before {
    content: "";
    bottom: calc(100% + 6px);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(47, 96, 130, 0.16);
    border-bottom: 1px solid rgba(47, 96, 130, 0.16);
    transform: translate(-50%, 10px) rotate(45deg);
    box-shadow: 0 14px 26px rgba(15, 61, 94, 0.1);
    z-index: 3;
}

.wee-cal-marker::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 12px);
    min-width: 108px;
    max-width: 160px;
    padding: 0.62rem 0.78rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 96, 130, 0.16);
    color: var(--wee-primary);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    transform: translate(-50%, 12px);
    box-shadow: 0 20px 36px rgba(15, 61, 94, 0.14);
    z-index: 4;
}

.wee-cal-marker:hover::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.wee-cal-marker:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wee-cal-marker-1 {
    background: linear-gradient(135deg, var(--wee-primary) 0%, var(--wee-primary-soft) 100%);
}

.wee-cal-marker-2 {
    background: linear-gradient(135deg, #2f6082 0%, #447aa0 100%);
}

.wee-cal-marker-3 {
    background: linear-gradient(135deg, #6ea7cd 0%, #8bb8d8 100%);
}

.wee-cal-marker-4 {
    background: linear-gradient(135deg, #c0dcef 0%, #e4f1fb 100%);
}

.wee-cal-day.is-selected .wee-cal-marker {
    box-shadow: 0 14px 20px rgba(15, 61, 94, 0.16);
}

.wee-calendar-selected-date {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
}

.wee-calendar-selected-day-number {
    color: var(--wee-primary);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.wee-calendar-selected-label {
    color: var(--wee-primary-soft);
    font-size: 1.05rem;
    font-weight: 700;
}

.wee-calendar-sidebar-body {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.wee-calendar-side-event {
    padding-left: 1.05rem;
    border-left: 3px solid rgba(47, 96, 130, 0.28);
}

.wee-calendar-side-event.is-cancelled {
    opacity: 0.72;
}

.wee-calendar-side-time {
    margin: 0 0 0.25rem;
    color: var(--wee-primary-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wee-calendar-side-title {
    margin: 0 0 0.3rem;
    color: var(--wee-primary);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

.wee-calendar-side-category,
.wee-calendar-side-venue {
    margin: 0.15rem 0 0;
    color: var(--wee-ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.wee-calendar-side-note {
    margin-top: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(232, 244, 254, 0.96) 0%, rgba(239, 244, 255, 0.92) 100%);
    color: var(--wee-primary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.wee-calendar-empty {
    margin: 0;
    color: var(--wee-ink-soft);
    line-height: 1.65;
}

.wee-calendar-help-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(238, 247, 255, 0.98) 0%, rgba(220, 233, 255, 0.88) 100%);
    box-shadow: inset 0 0 0 1px rgba(47, 96, 130, 0.12);
}

.wee-calendar-help-card h3 {
    margin: 0 0 0.35rem;
    color: var(--wee-primary);
    font-size: 1rem;
}

.wee-calendar-help-card p {
    margin: 0;
    color: var(--wee-ink-soft);
    line-height: 1.6;
}

.wee-calendar-sidebar-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
}

/* ==========================================================================
   Single Event
   ========================================================================== */

.wee-single-event {
    background:
        radial-gradient(circle at top left, rgba(206, 229, 255, 0.88) 0%, rgba(206, 229, 255, 0) 28%),
        radial-gradient(circle at bottom right, rgba(255, 220, 195, 0.5) 0%, rgba(255, 220, 195, 0) 22%),
        var(--wee-surface);
    padding: clamp(1.2rem, 3vw, 2.4rem);
}

.wee-single-shell {
    width: min(var(--wee-shell-max-width), calc(100% - 20px));
    margin: 0 auto;
}

.wee-single-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    margin-bottom: 1.6rem;
}

.wee-single-hero-copy,
.wee-single-hero-media,
.wee-content-panel {
    border-radius: var(--wee-radius-lg);
    box-shadow: var(--wee-shadow-sm);
}

.wee-single-hero-copy {
    padding: clamp(1.8rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 244, 255, 0.98) 100%);
}

.wee-event-title {
    margin: 0;
    color: var(--wee-primary);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.wee-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.wee-event-intro {
    max-width: 50ch;
    margin: 1.1rem 0 0;
    color: var(--wee-ink-soft);
    font-size: 1.08rem;
    line-height: 1.75;
}

.wee-event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.35rem;
}

.wee-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(239, 244, 255, 0.95);
    color: var(--wee-primary-soft);
    font-size: 0.85rem;
    font-weight: 700;
}

.wee-hero-pill-accent {
    background: var(--wee-accent-soft);
    color: #8a4a11;
}

.wee-event-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.45rem;
}

.wee-single-hero-media {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(220, 233, 255, 0.98) 100%);
}

.wee-event-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--wee-radius) + 4px);
    min-height: 100%;
}

.wee-event-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.wee-event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wee-single-date-card {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 102px;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(11, 28, 48, 0.82);
    color: var(--wee-white);
    backdrop-filter: blur(14px);
}

.wee-single-date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

.wee-single-date-month {
    margin-top: 0.25rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.2rem;
}

.wee-single-main,
.wee-single-sidebar {
    display: grid;
    gap: 1.2rem;
}

.wee-content-panel {
    padding: clamp(1.3rem, 3vw, 1.8rem);
    background: rgba(255, 255, 255, 0.94);
}

.wee-event-description {
    color: var(--wee-ink);
    font-size: 1rem;
    line-height: 1.86;
}

.wee-event-description > *:first-child {
    margin-top: 0;
}

.wee-event-description > *:last-child {
    margin-bottom: 0;
}

.wee-event-meta {
    display: grid;
    gap: 0.95rem;
}

.wee-meta-item {
    display: grid;
    gap: 0.25rem;
}

.wee-meta-item strong {
    color: var(--wee-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-meta-item span,
.wee-meta-item a {
    color: var(--wee-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
}

.wee-meta-item a:hover,
.wee-meta-item a:focus-visible {
    color: var(--wee-primary-soft);
}

.wee-dates-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-date-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(239, 244, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.wee-date-item-main,
.wee-date-item-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.wee-date-day {
    color: var(--wee-primary);
    font-size: 0.96rem;
    font-weight: 800;
}

.wee-date-time,
.wee-date-note {
    color: var(--wee-ink-soft);
    font-size: 0.9rem;
}

.wee-date-cancelled {
    opacity: 0.72;
}

.wee-event-map .acf-map {
    width: 100%;
    min-height: 360px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(220, 233, 255, 0.94) 0%, rgba(239, 244, 255, 1) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
}

/* ==========================================================================
   Booking
   ========================================================================== */

.wee-booking-section {
    padding: clamp(1.3rem, 3vw, 1.8rem);
    border-radius: var(--wee-radius-lg);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(145deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: var(--wee-shadow-md);
}

.wee-booking-section .wee-panel-kicker,
.wee-booking-section .wee-panel-kicker::before,
.wee-booking-section .wee-section-title,
.wee-booking-section .wee-booking-label,
.wee-booking-section .wee-price-caption,
.wee-booking-section .wee-availability,
.wee-booking-section .wee-booking-empty,
.wee-booking-section .wee-booking-empty p {
    color: var(--wee-white);
}

.wee-booking-section .wee-panel-kicker::before {
    background: rgba(255, 255, 255, 0.82);
}

.wee-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.wee-price-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.wee-price-caption {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wee-availability {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    width: fit-content;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.84rem;
    font-weight: 800;
}

.wee-booking-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.wee-booking-field {
    display: grid;
    gap: 0.45rem;
}

.wee-booking-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-booking-form input {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--wee-ink);
    font: inherit;
}

.wee-book-button {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--wee-white);
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform var(--wee-transition), filter var(--wee-transition);
}

.wee-book-button:hover,
.wee-book-button:focus-visible {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.wee-booking-empty {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
}

.wee-booking-empty-title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 800;
}

/* ==========================================================================
   Widgets / Upcoming / Categories / Messages
   ========================================================================== */

.wee-widget-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-widget-item {
    padding: 0;
}

.wee-widget-link {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--wee-primary);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
    transition: transform var(--wee-transition), box-shadow var(--wee-transition);
}

.wee-widget-link:hover,
.wee-widget-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--wee-shadow-sm);
}

.wee-widget-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
}

.wee-widget-info {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.wee-widget-title {
    color: var(--wee-primary);
    font-weight: 800;
    line-height: 1.35;
}

.wee-widget-date,
.wee-widget-empty {
    color: var(--wee-ink-soft);
    font-size: 0.84rem;
}

.wee-widget-all-link {
    margin-top: 0.85rem;
    background: rgba(239, 244, 255, 0.96);
    color: var(--wee-primary);
}

.wee-upcoming-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-upcoming-item {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
}

.wee-upcoming-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
}

.wee-upcoming-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.wee-upcoming-month {
    margin-top: 0.18rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wee-upcoming-content h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
}

.wee-upcoming-content h4 a {
    color: var(--wee-primary);
    text-decoration: none;
}

.wee-upcoming-content h4 a:hover,
.wee-upcoming-content h4 a:focus-visible {
    color: var(--wee-primary-soft);
}

.wee-upcoming-time {
    color: var(--wee-ink-soft);
    font-size: 0.86rem;
}

.wee-event-categories.wee-category-buttons,
.wee-event-categories.wee-category-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-category-button,
.wee-event-categories.wee-category-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--wee-primary);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform var(--wee-transition), background var(--wee-transition), color var(--wee-transition);
}

.wee-category-button:hover,
.wee-category-button:focus-visible,
.wee-event-categories.wee-category-list a:hover,
.wee-event-categories.wee-category-list a:focus-visible {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    transform: translateY(-1px);
}

.wee-message {
    z-index: 10000;
}

.wee-message-success {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: min(92vw, 360px);
    border-radius: 20px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: var(--wee-white);
    box-shadow: var(--wee-shadow-lg);
}

.wee-message-error {
    margin-top: 0.85rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--wee-white);
}

.wee-message-inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
}

.wee-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.wee-ai-shell {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.wee-ai-recommendations {
    display: none;
    width: min(92vw, 380px);
}

.wee-ai-panel {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--wee-shadow-lg);
    border: 1px solid rgba(15, 61, 94, 0.08);
}

.wee-ai-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
}

.wee-ai-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.wee-ai-header p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    line-height: 1.5;
}

.wee-ai-events {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.wee-ai-event-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 244, 255, 0.86) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
}

.wee-ai-event-card h4 {
    margin: 0;
    color: var(--wee-primary);
    font-size: 1rem;
    font-weight: 800;
}

.wee-ai-insight {
    color: var(--wee-ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.wee-ai-event-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.wee-ai-match {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.88);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
}

.wee-ai-event-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-accent) 0%, #d97706 100%);
    color: var(--wee-white);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.wee-ai-event-link:hover,
.wee-ai-event-link:focus-visible {
    transform: translateY(-1px);
}

.wee-ai-recommend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 16px 30px rgba(15, 61, 94, 0.24);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.wee-ai-recommend-btn:hover,
.wee-ai-recommend-btn:focus-visible {
    transform: translateY(-1px);
}

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

@media (max-width: 1199px) {
    .wee-events-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wee-calendar-layout,
    .wee-single-layout {
        grid-template-columns: 1fr;
    }

    .wee-calendar-sidebar,
    .wee-single-sidebar {
        order: 2;
    }
}

@media (max-width: 899px) {
    .wee-archive-shell,
    .wee-events-wrapper,
    .wee-calendar-wrapper {
        width: min(100%, calc(100vw - 20px));
        max-width: none;
    }

    .wee-events-wrapper {
        padding: 10px;
    }

    .wee-archive-hero,
    .wee-single-hero {
        grid-template-columns: 1fr;
    }

    .wee-view-list .wee-event-card,
    .wee-view-catalogue .wee-event-card {
        grid-template-columns: 1fr;
    }

    .wee-view-list .wee-card-media {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .wee-view-list .wee-card-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topline"
            "title"
            "excerpt"
            "meta"
            "footer";
    }

    .wee-view-list .wee-card-footer {
        justify-self: stretch;
    }

    .wee-view-catalogue .wee-card-media {
        padding: 0;
        background: transparent;
    }

    .wee-events-container {
        grid-template-columns: 1fr;
    }

    .wee-filters {
        padding: 0;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.7rem;
    }

    .wee-filters-left,
    .wee-filters-right {
        width: 100%;
        justify-content: flex-start;
    }

    .wee-filter-field-category,
    .wee-filter-field-period,
    .wee-view-toggle {
        width: min(100%, var(--wee-filter-pill-width));
        min-width: min(100%, var(--wee-filter-pill-width));
    }

    .wee-input,
    .wee-select {
        width: 100%;
    }

    .wee-filter-field-category .wee-select,
    .wee-filter-field-period .wee-select {
        font-size: 0.82rem;
        font-weight: 600;
    }

    .wee-view-calendar {
        display: none;
    }

    .wee-view-toggle {
        width: min(100%, var(--wee-filter-pill-width));
        padding: 0.2rem;
    }

    .wee-view-btn {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 699px) {
    .wee-archive-events,
    .wee-single-event {
        padding: 10px;
    }

    .wee-events-wrapper,
    .wee-calendar-shell,
    .wee-content-panel,
    .wee-booking-section,
    .wee-single-hero-copy,
    .wee-single-hero-media {
        border-radius: 20px;
    }

    .wee-archive-title,
    .wee-event-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .wee-ai-shell {
        right: 16px;
        bottom: 16px;
        left: 16px;
        align-items: stretch;
    }

    .wee-ai-recommendations {
        width: 100%;
    }

    .wee-ai-recommend-btn {
        align-self: flex-end;
    }

    .wee-filters-left,
    .wee-calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .wee-filters-right {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        width: auto;
    }

    .wee-events-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .wee-events-nav-shell {
        width: 100%;
    }

    .wee-events-month {
        font-size: clamp(1rem, 5.5vw, 1.35rem);
        text-align: center;
    }

    .wee-events-nav .wee-events-month-btn,
    .wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow,
    .wee-calendar-nav .wee-cal-prev,
    .wee-calendar-nav .wee-cal-next {
        width: 2.25rem;
        height: 2.25rem;
        flex: 0 0 2.25rem;
    }

    .wee-events-nav-copy {
        justify-items: center;
    }

    .wee-events-page-btn {
        width: auto;
        justify-content: center;
    }

    .wee-events-nav .wee-events-page-btn.wee-pagination-btn-arrow {
        width: auto;
        height: auto;
        flex: 0 0 auto;
        min-height: 2.4rem;
    }

    .wee-view-toggle {
        width: 100%;
    }

    .wee-calendar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .wee-view-btn {
        flex: 1;
        justify-content: center;
        min-height: 44px;
    }

    .wee-view-list .wee-card-media,
    .wee-view-list .wee-event-card,
    .wee-view-catalogue .wee-event-card {
        grid-template-columns: 1fr;
    }

    .wee-view-list .wee-card-date-rail {
        display: none;
    }

    .wee-view-list .wee-card-date-overlay {
        display: inline-flex;
    }

    .wee-view-list .wee-event-card {
        height: auto;
    }

    .wee-view-list .wee-card-media,
    .wee-view-list .wee-card-body,
    .wee-view-list .wee-card-image {
        height: auto;
        overflow: visible;
    }

    .wee-events-wrapper,
    .wee-calendar-shell,
    .wee-card-body,
    .wee-content-panel,
    .wee-booking-section {
        padding: 10px;
    }

    .wee-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .wee-card-footer .wee-card-cta-secondary {
        margin-left: 0;
    }

    .wee-calendar-header,
    .wee-calendar-body {
        gap: 0.35rem;
    }

    .wee-cal-day {
        min-height: 92px;
        padding: 0.7rem 0.55rem;
        border-radius: 18px;
    }

    .wee-cal-day-num {
        min-width: 2rem;
        min-height: 2rem;
        padding-inline: 0.7rem;
        font-size: 0.9rem;
    }

    .wee-cal-markers {
        gap: 0.35rem;
    }

    .wee-cal-marker {
        width: 10px;
        height: 10px;
    }

    .wee-cal-marker::after {
        min-width: 94px;
        max-width: 122px;
        padding: 0.5rem 0.62rem;
        font-size: 0.64rem;
    }

    .wee-event-image {
        min-height: 280px;
    }

    .wee-single-date-card {
        min-width: 86px;
        padding: 0.8rem;
    }

    .wee-calendar-selected-day-number {
        font-size: 2.8rem;
    }
}

@media (min-width: 900px) and (max-width: 1024px) {
    .wee-archive-shell,
    .wee-events-wrapper,
    .wee-calendar-wrapper {
        width: min(100%, calc(100vw - 20px));
        max-width: none;
    }

    .wee-events-wrapper {
        --wee-mobile-list-max-height: 146px; /* utilisé uniquement en mobile (≤ 699 px) */
        padding: 10px;
    }

    .wee-events-topbar {
        gap: 0.75rem;
    }

    .wee-events-topbar.has-filters {
        grid-template-columns: 1fr;
        grid-template-areas:
            "period"
            "filters";
    }

    .wee-events-topbar.no-filters {
        grid-template-columns: 1fr auto;
        grid-template-areas: "period actions";
    }

    .wee-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.75rem;
    }

    .wee-filters-left,
    .wee-filters-right {
        width: 100%;
        justify-content: flex-start;
    }

    .wee-filter-field-category,
    .wee-filter-field-period,
    .wee-view-toggle {
        width: min(100%, var(--wee-filter-pill-width));
        min-width: min(100%, var(--wee-filter-pill-width));
    }

    .wee-filter-field-category .wee-select,
    .wee-filter-field-period .wee-select {
        width: 100%;
        font-size: 0.82rem;
        font-weight: 600;
    }

    .wee-view-toggle {
        display: inline-flex;
        justify-content: stretch;
        padding: 0.2rem;
    }

    .wee-view-btn {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .wee-events-nav {
        align-items: end;
        gap: 0.9rem;
    }

    .wee-events-period-control {
        flex-basis: auto;
    }

    .wee-events-period-field {
        width: auto;
    }

    .wee-events-period-select {
        width: auto;
        min-width: 185px;
        max-width: none;
        min-height: 0;
        padding: 0;
        font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    }

    .wee-events-nav-actions {
        gap: 0;
    }

    .wee-events-page-btn {
        min-height: 40px;
        padding: 0.22rem 0.34rem 0.22rem 0.58rem;
    }

    .wee-events-container {
        grid-template-columns: 1fr !important;
        gap: 0.9rem;
        margin-inline: 0;
        width: 100%;
    }

    /* ── Tablette (≤ 1024 px) — carte horizontale AVEC image par défaut ──
       Les variables --wee-list-media-width / --wee-list-date-width sont
       pilotées par les contrôles Elementor ; les overrides !important des
       contrôles hide/force_show_image_by_device respectent ces variables. */
    .wee-events-container.wee-view-list .wee-event-card {
        display: grid;
        --wee-list-media-width: var(--wee-tablet-list-media-width, 270px);
        --wee-list-date-width: var(--wee-tablet-list-date-width, 84px);
        grid-template-columns: minmax(200px, var(--wee-list-media-width, var(--wee-tablet-list-media-width))) minmax(0, 1fr);
        align-items: stretch;
        min-height: 170px;
        height: auto;
        min-height: var(--wee-responsive-card-height, var(--wee-tablet-card-height));
        max-height: none;
        border-radius: 26px;
    }

    .wee-events-container.wee-view-list .wee-card-media {
        display: grid;
        grid-template-columns: minmax(72px, var(--wee-list-date-width, var(--wee-tablet-list-date-width))) minmax(0, 1fr);
        height: 100%;
    }

    .wee-events-container.wee-view-list .wee-card-date-rail {
        display: inline-flex;
        min-width: 72px;
        min-height: 100%;
        padding: 0.72rem 0.4rem;
        border-radius: 0;
        border-top-left-radius: 26px;
        border-bottom-left-radius: 26px;
        box-shadow: none;
        --wee-date-day-size: var(--wee-date-day-size-condensed);
        --wee-date-month-size: var(--wee-date-month-size-condensed);
        --wee-date-year-size: var(--wee-date-year-size-condensed);
    }

    /* Image visible par défaut sur tablette — style horizontal compact */
    .wee-events-container.wee-view-list .wee-card-image {
        display: block;         /* visible par défaut sur tablette */
        aspect-ratio: auto;
        height: calc(100% - 8px);
        min-height: 0;
        margin: 4px 4px 4px 0;
        border-radius: 14px;
        overflow: hidden;
    }

    /* Placeholder (no-thumb) : fond neutre, aucune interaction */
    .wee-events-container.wee-view-list .wee-card-image--no-thumb {
        background: linear-gradient(135deg, var(--wee-surface, #f2f6fb), rgba(15, 61, 94, 0.05));
    }

    .wee-events-container.wee-view-list .wee-card-date-overlay,
    .wee-events-container.wee-view-list .wee-card-status {
        display: none !important;
    }

    .wee-events-container.wee-view-list .wee-card-excerpt {
        display: block;
    }

    .wee-events-container.wee-view-list .wee-card-meta,
    .wee-events-container.wee-view-list .wee-card-footer {
        display: flex;
    }

    .wee-events-wrapper[data-tablet-show-excerpt="false"] .wee-events-container.wee-view-list .wee-card-excerpt {
        display: none !important;
    }

    .wee-events-wrapper[data-tablet-show-meta="false"] .wee-events-container.wee-view-list .wee-card-meta {
        display: none !important;
    }

    .wee-events-wrapper[data-tablet-show-footer="false"] .wee-events-container.wee-view-list .wee-card-footer {
        display: none !important;
    }

    /* Corps de carte — colonne 2 (après la zone media) */
    .wee-events-container.wee-view-list .wee-card-body {
        display: grid;
        grid-column: 2 / -1;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "topline"
            "title"
            "time"
            "excerpt"
            "meta"
            "bottom"
            "footer";
        align-content: start;
        gap: 0.28rem;
        padding: var(--wee-responsive-body-padding, var(--wee-tablet-body-padding));
        height: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .wee-events-container.wee-view-list .wee-card-topline {
        grid-area: topline;
        gap: 0.35rem;
        min-height: 0;
        flex-wrap: wrap;
        align-items: center;
        overflow: hidden;
    }

    .wee-events-container.wee-view-list .wee-card-category-label,
    .wee-events-container.wee-view-list .wee-badge {
        min-height: 22px;
        padding: 0.2rem 0.52rem;
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .wee-events-container.wee-view-list .wee-card-title {
        grid-area: title;
        font-size: clamp(0.78rem, 2.1vw, 0.94rem);
        line-height: 1.16;
    }

    .wee-events-container.wee-view-list .wee-card-title a {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: none;
    }

    .wee-events-container.wee-view-list .wee-card-time-row {
        grid-area: time;
        font-size: 0.8rem;
    }

    .wee-events-container.wee-view-list .wee-card-excerpt {
        grid-area: excerpt;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .wee-events-container.wee-view-list .wee-card-meta {
        grid-area: meta;
        gap: 0.35rem;
    }

    .wee-events-container.wee-view-list .wee-card-meta > span {
        min-height: 28px;
        padding: 0.28rem 0.62rem;
        font-size: 0.68rem;
    }

    .wee-events-container.wee-view-list .wee-card-bottomline {
        grid-area: bottom;
        align-self: end;
        min-width: 0;
        gap: 0.7rem;
        flex-wrap: wrap;
        align-items: flex-start;
        overflow: hidden;
    }

    .wee-events-container.wee-view-list .wee-card-venue-line {
        font-size: 0.76rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .wee-events-container.wee-view-list .wee-card-detail-link {
        min-height: 31px;
        padding: 0.28rem 0.56rem;
        box-shadow: none;
        max-width: 100%;
    }

    .wee-events-container.wee-view-list .wee-card-detail-text {
        font-size: 0.7rem;
    }

    .wee-events-container.wee-view-list .wee-card-detail-link .wee-card-link-icon {
        width: 1.48rem;
        height: 1.48rem;
        margin: 0;
    }

    .wee-events-container.wee-view-list .wee-card-footer {
        grid-area: footer;
        margin-top: 0;
        flex-wrap: wrap;
    }

    .wee-events-container.wee-view-list .wee-card-cta {
        min-height: 34px;
        padding: 0.55rem 0.82rem;
        font-size: 0.73rem;
        box-shadow: none;
    }

    .wee-events-container.wee-view-list .wee-card-bottomline-action {
        margin-inline-start: auto;
    }

    .wee-events-container.wee-view-list .wee-card-title a,
    .wee-view-catalogue .wee-card-title a {
        word-break: break-word;
    }

    .wee-view-catalogue .wee-card-body {
        min-width: 0;
    }

    .wee-view-catalogue .wee-card-topline,
    .wee-view-catalogue .wee-card-bottomline,
    .wee-view-catalogue .wee-card-footer {
        flex-wrap: wrap;
    }

    .wee-view-catalogue .wee-card-venue-line {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .wee-events-container.wee-view-list .wee-event-card,
    .wee-events-container.wee-view-catalogue .wee-event-card {
        grid-template-columns: 1fr;
        min-height: 0;
        max-height: none;
        height: auto;
    }

    .wee-events-container.wee-view-list .wee-card-media {
        grid-template-columns: minmax(82px, var(--wee-list-date-width, 92px)) minmax(0, 1fr);
        min-height: 228px;
        height: auto;
    }

    .wee-events-container.wee-view-list .wee-card-date-rail {
        min-height: 100%;
    }

    .wee-events-container.wee-view-list .wee-card-image {
        height: auto;
        min-height: 220px;
        margin: 0;
        border-radius: 0;
        border-top-right-radius: calc(var(--wee-radius) + 4px);
    }

    .wee-events-container.wee-view-list .wee-card-body,
    .wee-events-container.wee-view-catalogue .wee-card-body {
        grid-column: auto;
        padding: 1.05rem 1.15rem 1.15rem;
        min-width: 0;
        height: auto;
        overflow: visible;
    }

    .wee-events-container.wee-view-list .wee-card-body {
        gap: 0.45rem;
        grid-template-areas:
            "topline"
            "title"
            "time"
            "excerpt"
            "meta"
            "bottom"
            "footer";
    }

    .wee-events-container.wee-view-list .wee-card-title {
        font-size: clamp(1.12rem, 2.5vw, 1.42rem);
        line-height: 1.2;
    }

    .wee-events-container.wee-view-list .wee-card-time-row,
    .wee-events-container.wee-view-list .wee-card-venue-line,
    .wee-events-container.wee-view-list .wee-card-excerpt,
    .wee-events-container.wee-view-list .wee-card-meta > span,
    .wee-events-container.wee-view-list .wee-card-detail-text,
    .wee-events-container.wee-view-list .wee-card-cta {
        font-size: inherit;
    }

    .wee-events-container.wee-view-list .wee-card-bottomline,
    .wee-events-container.wee-view-list .wee-card-footer,
    .wee-events-container.wee-view-catalogue .wee-card-bottomline,
    .wee-events-container.wee-view-catalogue .wee-card-footer {
        flex-wrap: wrap;
    }

    .wee-events-container.wee-view-list .wee-card-bottomline-action {
        margin-inline-start: 0;
    }

    .wee-events-container.wee-view-catalogue .wee-card-media {
        padding: 0.85rem;
    }

    .wee-events-container.wee-view-catalogue .wee-card-image {
        min-height: 260px;
    }
}

@media (min-width: 900px) {
    .wee-view-catalogue .wee-card-body {
        overflow: visible;
    }

    .wee-view-catalogue .wee-card-media,
    .wee-view-catalogue .wee-card-body {
        align-self: stretch;
    }
}

@media (max-width: 699px) {
    .wee-archive-shell,
    .wee-events-wrapper,
    .wee-calendar-wrapper {
        width: min(100%, calc(100vw - 20px));
        max-width: none;
    }

    .wee-events-wrapper {
        padding: 10px;
    }

    .wee-events-nav {
        align-items: center;
        gap: 0.8rem;
    }

    .wee-events-period-select {
        min-height: 0;
        font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    }

    .wee-events-nav-actions {
        display: flex;
        width: auto;
        margin-left: 0;
        gap: 0;
    }

    .wee-events-page-btn {
        width: auto;
        justify-content: center;
        min-height: 38px;
        padding: 0.2rem 0.3rem 0.2rem 0.52rem;
    }

    .wee-events-page-label {
        font-size: 0.7rem;
    }

    .wee-filters {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.6rem;
    }

    .wee-filters-left,
    .wee-filters-right {
        width: 100%;
    }

    .wee-filter-field-category,
    .wee-filter-field-period,
    .wee-view-toggle {
        width: 100%;
        min-width: 0;
    }

    .wee-filter-field-category .wee-select,
    .wee-filter-field-period .wee-select {
        min-width: 0;
        width: 100%;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 0.38rem 0.8rem;
    }

    .wee-view-toggle {
        padding: 0.2rem;
        justify-content: stretch;
    }

    .wee-view-btn {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        font-size: 0.82rem;
    }

    .wee-view-toggle .wee-view-btn:not(.wee-view-grid) {
        display: none !important;
    }

    /* ── Mobile (≤ 699 px) — carte compacte SANS image par défaut ──
       Le contrôle Elementor "Forcer l'affichage" sur Smartphone peut
       réactiver l'image ; les variables permettent au layout de s'adapter. */
    .wee-events-container.wee-view-list .wee-event-card {
        --wee-list-media-width: 220px;  /* utilisé si force_show active sur mobile */
        --wee-list-date-width: var(--wee-mobile-list-date-width, 74px);
        grid-template-columns: 74px minmax(0, 1fr);
        min-height: 118px;
        height: auto;
        min-height: var(--wee-responsive-card-height, var(--wee-mobile-card-height));
        max-height: none;
    }

    /* Réinitialise le layout media grid hérité du breakpoint tablette */
    .wee-events-container.wee-view-list .wee-card-media {
        display: block;
        grid-template-columns: unset;
        min-width: 74px;
        height: 100%;
    }

    .wee-events-container.wee-view-list .wee-card-date-rail {
        min-width: 74px;
        border-radius: 0;
        border-top-left-radius: 26px;
        border-bottom-left-radius: 26px;
    }

    /* Image masquée par défaut sur mobile */
    .wee-events-container.wee-view-list .wee-card-image {
        display: none !important;
    }

    .wee-events-container.wee-view-list .wee-card-body {
        grid-column: 2 / -1;
        padding: var(--wee-responsive-body-padding, var(--wee-mobile-body-padding));
        gap: 0.2rem;
    }

    .wee-events-container.wee-view-list .wee-card-title {
        font-size: 0.72rem;
    }

    .wee-events-container.wee-view-list .wee-card-time-row {
        font-size: 0.76rem;
    }

    .wee-events-container.wee-view-list .wee-card-venue-line {
        font-size: 0.72rem;
    }

    .wee-events-container.wee-view-list .wee-card-detail-link {
        min-height: 29px;
        padding: 0.2rem 0.46rem;
    }

    .wee-events-container.wee-view-list .wee-card-detail-text {
        font-size: 0.66rem;
    }

    .wee-events-container.wee-view-list .wee-card-bottomline,
    .wee-view-catalogue .wee-card-bottomline,
    .wee-view-catalogue .wee-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .wee-events-container.wee-view-list .wee-card-bottomline-action {
        margin-inline-start: 0;
    }

    .wee-events-container.wee-view-list .wee-card-detail-link,
    .wee-view-catalogue .wee-card-detail-link {
        align-self: flex-start;
    }

    .wee-view-catalogue .wee-card-title a {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .wee-events-container.wee-view-list .wee-card-excerpt,
    .wee-events-container.wee-view-list .wee-card-meta,
    .wee-events-container.wee-view-list .wee-card-footer {
        display: none !important;
    }

    .wee-events-wrapper[data-mobile-show-excerpt="true"] .wee-events-container.wee-view-list .wee-card-excerpt {
        display: block !important;
    }

    .wee-events-wrapper[data-mobile-show-meta="true"] .wee-events-container.wee-view-list .wee-card-meta,
    .wee-events-wrapper[data-mobile-show-footer="true"] .wee-events-container.wee-view-list .wee-card-footer {
        display: flex !important;
    }

    .wee-events-wrapper[data-force-show-image="true"] .wee-events-container.wee-view-list .wee-event-card,
    .wee-events-wrapper[data-force-show-image-mobile="true"] .wee-events-container.wee-view-list .wee-event-card {
        grid-template-columns: minmax(180px, var(--wee-list-media-width, 220px)) minmax(0, 1fr);
    }

    .wee-events-wrapper[data-force-show-image="true"] .wee-events-container.wee-view-list .wee-card-media,
    .wee-events-wrapper[data-force-show-image-mobile="true"] .wee-events-container.wee-view-list .wee-card-media {
        display: grid;
        grid-template-columns: minmax(72px, var(--wee-list-date-width, var(--wee-mobile-list-date-width))) minmax(0, 1fr);
        min-width: 0;
    }

    .wee-events-wrapper[data-force-show-image="true"] .wee-events-container.wee-view-list .wee-card-image,
    .wee-events-wrapper[data-force-show-image-mobile="true"] .wee-events-container.wee-view-list .wee-card-image {
        display: block !important;
        height: calc(100% - 8px);
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wee-event-card,
    .wee-card-image img,
    .wee-button,
    .wee-card-cta,
    .wee-view-btn,
    .wee-pagination-btn,
    .wee-cal-has-events,
    .wee-book-button,
    .wee-widget-link,
    .wee-calendar-sidebar-cta,
    .wee-category-button,
    .wee-event-categories.wee-category-list a {
        transition: none !important;
    }

    .wee-spinner {
        animation-duration: 1.5s;
    }
}

/* ==========================================================================
   Accessibilité — Focus orange unifié (WCAG 2.4.11 / 2.4.12)
   Tous les éléments interactifs du plugin reçoivent un focus orange visible
   au clavier. outline:none est interdit ici sauf si un équivalent meilleur
   est fourni dans le même sélecteur.
   ========================================================================== */

/* Règle de base pour TOUS les interactifs dans le plugin */
.wee-events-wrapper *:focus-visible,
.wee-calendar-wrapper *:focus-visible,
.wee-single-event *:focus-visible,
.wee-upcoming-events *:focus-visible,
.wee-event-categories *:focus-visible,
.wee-booking-section *:focus-visible,
.wee-archive-events *:focus-visible {
    outline: 3px solid var(--wee-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Boutons ronds — outline suit le rayon */
.wee-events-wrapper .wee-button:focus-visible,
.wee-events-wrapper .wee-card-cta:focus-visible,
.wee-events-wrapper .wee-view-btn:focus-visible,
.wee-events-wrapper .wee-events-page-btn:focus-visible,
.wee-events-wrapper .wee-events-month-btn:focus-visible,
.wee-events-wrapper .wee-pagination-btn:focus-visible,
.wee-calendar-wrapper .wee-cal-prev:focus-visible,
.wee-calendar-wrapper .wee-cal-next:focus-visible,
.wee-calendar-wrapper .wee-calendar-sidebar-cta:focus-visible,
.wee-booking-section .wee-book-button:focus-visible {
    outline: 3px solid var(--wee-accent);
    outline-offset: 4px;
    border-radius: 999px;
    /* Halo doux autour des boutons ronds */
    box-shadow:
        0 0 0 6px rgba(242, 139, 35, 0.16),
        var(--wee-shadow-sm, 0 10px 20px rgba(0,29,51,.06));
}

/* Liens texte dans les cartes */
.wee-event-card a:focus-visible,
.wee-upcoming-events a:focus-visible {
    outline: 3px solid var(--wee-accent);
    outline-offset: 2px;
    border-radius: 3px;
    text-decoration: underline;
}

/* Champs de formulaire / filtres */
.wee-input:focus-visible,
.wee-select:focus-visible,
.wee-events-period-select:focus-visible {
    outline: 3px solid var(--wee-accent) !important;
    outline-offset: 2px !important;
    box-shadow:
        inset 0 0 0 2px rgba(242, 139, 35, 0.3),
        0 0 0 5px rgba(242, 139, 35, 0.12) !important;
    border-radius: 999px;
}

/* Cellules de calendrier cliquables */
.wee-calendar-wrapper .wee-cal-has-events:focus-visible,
.wee-calendar-wrapper td[data-date]:focus-visible,
.wee-calendar-wrapper .wee-cal-day:focus-visible {
    outline: 3px solid var(--wee-accent);
    outline-offset: 2px;
    border-radius: var(--wee-radius-sm, 14px);
    background: rgba(242, 139, 35, 0.08);
}

/* Icône de lien carte */
.wee-card-detail-link:focus-visible .wee-card-link-icon {
    box-shadow:
        0 0 0 3px var(--wee-accent),
        0 0 0 6px rgba(242, 139, 35, 0.18);
}

/* Badge catégorie */
.wee-badge-category:focus-visible {
    outline: 3px solid var(--wee-accent);
    outline-offset: 3px;
    border-radius: 999px;
}

/* Skip link accessible (hors écran → visible au focus) */
.wee-skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--wee-accent);
    color: var(--wee-white);
    font-weight: 700;
    border-radius: 0 0 var(--wee-radius-sm) var(--wee-radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    transition: top 0s;
}

.wee-skip-link:focus-visible {
    top: 0;
    outline: 3px solid var(--wee-primary);
    outline-offset: 3px;
}

/* Respect prefers-reduced-motion pour les animations focus */
@media (prefers-reduced-motion: reduce) {
    .wee-events-wrapper *:focus-visible,
    .wee-calendar-wrapper *:focus-visible {
        transition: none;
    }
}
