/* ==========================================================================
   AVD Events — Archive Page
   ========================================================================== */

/* ----------------------------------------
   1. Variables
   ---------------------------------------- */
:root {
    --ade-accent:        #F59E0B;
    --ade-accent-dark:   #D97706;
    --ade-accent-light:  #FEF3C7;
    --ade-dark:          #0F172A;
    --ade-mid:           #475569;
    --ade-muted:         #94A3B8;
    --ade-border:        #E2E8F0;
    --ade-bg:            #F1F5F9;
    --ade-card-bg:       #FFFFFF;
    --ade-live:          #EF4444;
    --ade-radius:        12px;
    --ade-radius-sm:     8px;
    --ade-shadow:        0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
    --ade-shadow-hover:  0 4px 12px rgba(0,0,0,.10), 0 12px 28px rgba(0,0,0,.10);
    --ade-transition:    .18s ease;
}

/* ----------------------------------------
   2. Layout
   ---------------------------------------- */
.ade-page {
    background: var(--ade-bg);
    min-height: 100vh;
}

.ade-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----------------------------------------
   3. Page Header
   ---------------------------------------- */
.ade-page-header {
    background: var(--ade-dark);
    padding: 48px 0 40px;
    margin-bottom: 0;
}

.ade-page-header__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.ade-page-header__kicker {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ade-accent);
    margin: 0 0 10px;
}

.ade-page-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    margin: 0;
    position: relative;
}

.ade-page-header__underline {
    display: block;
    width: 56px;
    height: 4px;
    background: var(--ade-accent);
    border-radius: 2px;
    margin-top: 12px;
}

.ade-page-header__date {
    font-size: .875rem;
    color: var(--ade-muted);
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

/* ----------------------------------------
   4. Hero — Prochain événement
   ---------------------------------------- */
.ade-hero {
    background: var(--ade-card-bg);
    border-radius: var(--ade-radius);
    box-shadow: var(--ade-shadow);
    display: grid;
    grid-template-columns: 1fr 600px;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--ade-border);
    transition: box-shadow var(--ade-transition);
}

.ade-hero--live {
    outline: 2px solid var(--ade-live);
    outline-offset: -2px;
}

.ade-hero__body {
    grid-column: 1;
    grid-row: 1;
    padding: 16px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.ade-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ade-accent-dark);
    background: var(--ade-accent-light);
    padding: 0 12px;
    border-radius: 100px;
    width: fit-content;
}

.ade-hero--live .ade-hero__badge {
    background: #FEE2E2;
    color: #B91C1C;
}

.ade-hero--live .ade-hero__body {
    justify-content: flex-start;
}

.ade-hero__live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--ade-accent);
    border-radius: 50%;
    animation: ade-pulse 1.4s ease-in-out infinite;
}

.ade-hero--live .ade-hero__live-dot {
    background: var(--ade-live);
}

@keyframes ade-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}

.ade-hero__type-sep {
    opacity: .5;
}

.ade-hero__title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ade-dark);
    margin: 0;
}

.ade-hero__title a {
    color: inherit;
    text-decoration: none;
}

.ade-hero__title a:hover {
    color: var(--ade-accent-dark);
}

.ade-hero__meta {
    font-size: .875rem;
    color: var(--ade-mid);
    margin: 0;
    line-height: 1.6;
}

.ade-hero__meta strong {
    color: var(--ade-dark);
    font-weight: 600;
}

.ade-hero__tz-note {
    font-size: 1rem;
    color: var(--ade-muted);
    margin: 0 0 0 4px;
}

.ade-hero__tz-note a {
    color: var(--ade-accent);
    font-weight: 600;
    text-decoration: none;
}

.ade-hero__tz-note a:hover {
    text-decoration: underline;
}

.ade-hero__reg-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ade-hero__registrations {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ade-hero__reg-count {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ade-mid);
}

/* Illustration — colonne droite */
.ade-hero__illustration {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 2;
    aspect-ratio: 1180 / 560;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    overflow: hidden;
    border-radius: calc(var(--ade-radius) - 2px);
    margin: 16px 16px 16px 0;
}

.ade-hero__illustration .ade-hero__img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    display: block;
}

.ade-hero__placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 50%, rgba(245,158,11,.15) 0%, transparent 70%);
}

/* Mode compact : dashboard widget — image droite (rows 1+2), cap row 2 gauche, CTA row 3 */
.ade-hero--compact {
    grid-template-columns: 1fr 150px;
    grid-template-rows: 1fr auto auto;
}
.ade-hero--compact .ade-hero__body {
    grid-column: 1;
    grid-row: 1;
    padding: 16px 12px 0 20px;
    justify-content: flex-start;
}
.ade-hero--compact .ade-hero__illustration {
    grid-column: 2;
    grid-row: 1 / span 2;
    aspect-ratio: auto;
    margin: 12px 12px 0 0;
    border-radius: calc(var(--ade-radius) - 2px);
    min-height: 160px;
    max-height: 160px;
}
.ade-hero--compact .ade-hero__reg-group {
    grid-column: 1;
    grid-row: 2;
    padding: 6px 12px 0 20px;
    align-self: start;
}
.ade-hero--compact .ade-hero__cta-bar {
    grid-column: 1 / span 2;
    grid-row: 3;
    padding: 10px 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.ade-hero--compact .ade-hero__other-current {
    grid-column: 1 / span 2;
    padding: 0 20px 14px;
}

/* Barre CTA — pleine largeur en bas */
.ade-hero__cta-bar {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
}

.ade-hero__cta-bar .ade-cal-share-group {
    margin-left: auto;
}

.ade-hero__cta-bar .ade-reg-btn,
[data-ade-hero-cta] .ade-reg-btn {
    padding: 8px 18px;
    border-radius: 20px;
    height: 36px;
    box-sizing: border-box;
}

.ade-hero__cta-bar .ade-reg--guest,
[data-ade-hero-cta] .ade-reg--guest {
    gap: 2px;
    margin: 0;
}

.ade-hero__cta-bar .ade-reg-notice,
[data-ade-hero-cta] .ade-reg-notice {
    margin-top: 0;
}

/* Hero CTA — registered state */
.ade-hero-cta__reg {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.ade-hcta__status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ade-hcta__check-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ade-hcta__status-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ade-hcta__label {
    font-weight: 700;
    color: #166534;
    font-size: .9375rem;
}

.ade-hcta__sub {
    font-size: .7rem;
    color: #374151;
}

.ade-hcta__divider {
    width: 1px;
    height: 32px;
    background: var(--ade-border, #e2e8f0);
    flex-shrink: 0;
}

/* Shared style for the three action buttons (dots / calendar / share) */
.ade-hcta__more-btn,
.ade-hero__cta-bar .ade-cal-picker summary,
[data-ade-hero-cta] .ade-cal-picker summary,
.ade-hcta__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    color: #374151;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
    height: 36px;
    box-sizing: border-box;
    white-space: nowrap;
    user-select: none;
    list-style: none;
    transition: background .1s, border-color .1s;
    text-decoration: none;
}

.ade-hcta__more-btn:hover,
.ade-hero__cta-bar .ade-cal-picker summary:hover,
[data-ade-hero-cta] .ade-cal-picker summary:hover,
.ade-hcta__share-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #374151;
}


/* Three-dots dropdown */
.ade-hcta__more {
    position: relative;
}

.ade-hcta__more-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    z-index: 200;
    overflow: hidden;
    min-width: 168px;
    white-space: nowrap;
}

.ade-hcta__unreg {
    display: flex !important;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px !important;
    text-align: left;
    font-size: .8125em !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.ade-hcta__unreg:hover { background: #fef2f2; color: #ef4444 !important; }

.ade-hcta__join-wrap { margin-top: 8px; }

/* Override the base .ade-cal-picker font-size wrapper so the summary matches */
.ade-hero__cta-bar .ade-cal-picker,
[data-ade-hero-cta] .ade-cal-picker { font-size: 1rem; }

/* Reset margin on the registration wrapper inside the hero bar */
.ade-hero__cta-bar .ade-registration,
[data-ade-hero-cta] .ade-registration { margin: 0; }

/* Copy-link is an <a> — inherits all .ade-cal-menu a styles, no overrides needed */

.ade-hero__cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ade-mid);
    background: transparent;
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius-sm);
    text-decoration: none;
    transition: color var(--ade-transition), border-color var(--ade-transition), background var(--ade-transition);
    white-space: nowrap;
}

.ade-hero__cal-btn:hover {
    color: var(--ade-dark);
    background: var(--ade-bg);
    border-color: var(--ade-mid);
}

/* ----------------------------------------
   5. Countdown
   ---------------------------------------- */
.ade-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.ade-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--ade-dark);
    border-radius: var(--ade-radius-sm);
    padding: 10px 14px 8px;
    min-width: 60px;
}

.ade-countdown__num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ade-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.ade-countdown__label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ade-muted);
    margin-top: 4px;
}

.ade-countdown__sep {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ade-muted);
    margin-bottom: 12px;
    padding: 0 2px;
}

/* ----------------------------------------
   6. Avatar Stack
   ---------------------------------------- */
.ade-avatar-stack {
    display: flex;
    align-items: center;
}

.ade-avatar-stack .ade-avatar,
.ade-avatar-stack img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--ade-card-bg);
    object-fit: cover;
    background: var(--ade-border);
    position: relative;
    z-index: 4;
}

/* 2nd+ avatars overlap behind the previous */
.ade-avatar-stack .ade-avatar + .ade-avatar,
.ade-avatar-stack img + img {
    margin-left: -8px;
    z-index: 3;
}

.ade-avatar-stack .ade-avatar + .ade-avatar + .ade-avatar,
.ade-avatar-stack img + img + img {
    z-index: 2;
}

.ade-avatar-stack .ade-avatar + .ade-avatar + .ade-avatar + .ade-avatar,
.ade-avatar-stack img + img + img + img {
    z-index: 1;
}

.ade-avatar-stack__extra {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--ade-card-bg);
    background: var(--ade-dark);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    position: relative;
    z-index: 0;
}

/* ----------------------------------------
   7. Stats Bar
   ---------------------------------------- */
.ade-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--ade-border);
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius);
    overflow: hidden;
    width: 100%;
    align-self: flex-start;
}

.ade-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 16px;
    background: var(--ade-card-bg);
    text-align: center;
}

.ade-stats__num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ade-dark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ade-stats__label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--ade-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ----------------------------------------
   8. Filters
   ---------------------------------------- */
.ade-filters {
    background: var(--ade-card-bg);
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius);
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--ade-shadow);
}

.ade-filters__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ade-filters__search-wrap {
    flex: 1;
    position: relative;
}

.ade-filters__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ade-muted);
    pointer-events: none;
}

.ade-filters__search {
    width: 100%;
    padding: 9px 12px 9px 38px;
    font-size: .875rem;
    color: var(--ade-dark);
    background: var(--ade-bg);
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius-sm);
    outline: none;
    transition: border-color var(--ade-transition), box-shadow var(--ade-transition);
}

.ade-filters__search:focus {
    border-color: var(--ade-accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

.ade-filters__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ade-view-toggle {
    display: flex;
    align-items: center;
    background: var(--ade-bg);
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius-sm);
    overflow: hidden;
}

.ade-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ade-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--ade-transition), background var(--ade-transition);
}

.ade-view-btn:hover {
    color: var(--ade-dark);
    background: var(--ade-border);
}

.ade-view-btn--active {
    color: var(--ade-dark);
    background: var(--ade-card-bg);
    box-shadow: inset 0 0 0 1px var(--ade-border);
}

/* Pills row */
.ade-filters__pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ade-filters__sep {
    width: 1px;
    height: 20px;
    background: var(--ade-border);
    flex-shrink: 0;
    margin: 0 4px;
}

.ade-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ade-mid);
    background: var(--ade-bg);
    border: 1px solid var(--ade-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--ade-transition);
    white-space: nowrap;
}

.ade-pill:hover {
    color: var(--ade-dark);
    background: var(--ade-border);
}

.ade-pill--active {
    color: var(--ade-dark);
    background: var(--ade-dark);
    border-color: var(--ade-dark);
    color: #fff;
}

.ade-pill__count {
    font-size: .6875rem;
    font-weight: 700;
    background: rgba(255,255,255,.15);
    padding: 1px 6px;
    border-radius: 100px;
}

.ade-pill:not(.ade-pill--active) .ade-pill__count {
    background: var(--ade-border);
    color: var(--ade-mid);
}

.ade-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ----------------------------------------
   9. Day Groups
   ---------------------------------------- */
.ade-events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 64px;
}

.ade-day-group[hidden] {
    display: none;
}

.ade-day-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ade-border);
}

.ade-day-header__label {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ade-dark);
    margin: 0;
}

.ade-day-header__date {
    font-size: .875rem;
    color: var(--ade-muted);
    font-weight: 500;
}

.ade-day-header__count {
    margin-left: auto;
    font-size: .8125rem;
    color: var(--ade-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ade-day-header__count-num {
    font-weight: 700;
    color: var(--ade-mid);
}

/* ----------------------------------------
   10. Cards Grid
   ---------------------------------------- */
.ade-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* List view override */
.ade-events-list[data-view="list"] .ade-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ----------------------------------------
   11. Event Card
   ---------------------------------------- */
.ade-event-card {
    background: var(--ade-card-bg);
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius);
    box-shadow: var(--ade-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--ade-transition), transform var(--ade-transition);
}

.ade-event-card:hover {
    box-shadow: var(--ade-shadow-hover);
    transform: translateY(-2px);
}

.ade-event-card[hidden] {
    display: none;
}

/* Card Header */
.ade-card__header {
    position: relative;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

.ade-card__header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: .08;
    z-index: 0;
}

.ade-card__type {
    position: relative;
    z-index: 1;
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
}

.ade-card__format-badge {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .6875rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.15);
    padding: 4px 10px;
    border-radius: 100px;
}

.ade-card__live-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    z-index: 1;
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--ade-live);
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ade-card__live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: ade-pulse 1.4s ease-in-out infinite;
}

.ade-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
}

.ade-card__illustration {
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: .15;
}

/* Card Body */
.ade-card__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ade-card__top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ade-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--ade-bg);
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius-sm);
    padding: 8px 10px 6px;
    min-width: 48px;
    flex-shrink: 0;
}

.ade-card__date-day {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ade-accent);
    line-height: 1;
}

.ade-card__date-num {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--ade-dark);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ade-card__date--multiday .ade-card__date-num {
    font-size: .9rem;
    letter-spacing: -.01em;
}

.ade-card__date--multiday .ade-card__date-day {
    color: var(--ade-mid);
}

.ade-card__date-mon {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ade-muted);
}

.ade-card__info {
    flex: 1;
    min-width: 0;
}

.ade-card__title {
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ade-dark);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ade-card__title a {
    color: inherit;
    text-decoration: none;
}

.ade-card__title a:hover {
    color: var(--ade-accent-dark);
}

.ade-card__meta {
    font-size: .8125rem;
    color: var(--ade-mid);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
}

.ade-card__meta-sep {
    color: var(--ade-muted);
}

/* Organizer row */
.ade-card__organizer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ade-card__org-avatar,
.ade-card__organizer img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ade-border);
    flex-shrink: 0;
}

.ade-card__org-name {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ade-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Capacity */
.ade-card__capacity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ade-card__cap-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--ade-mid);
    font-weight: 500;
}

.ade-card__remaining {
    font-weight: 700;
    color: var(--ade-accent-dark);
}

.ade-card__progress {
    height: 6px;
    background: var(--ade-border);
    border-radius: 3px;
    overflow: hidden;
}

.ade-card__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ade-accent) 0%, var(--ade-accent-dark) 100%);
    border-radius: 3px;
    transition: width .4s ease;
}

/* CTA */
.ade-card__cta {
    padding: 12px 18px 16px;
    border-top: 1px solid var(--ade-border);
    margin-top: auto;
}

/* ----------------------------------------
   List view card overrides
   ---------------------------------------- */
.ade-events-list[data-view="list"] .ade-event-card {
    flex-direction: row;
}

.ade-events-list[data-view="list"] .ade-card__header {
    width: 160px;
    min-width: 160px;
    height: auto;
    flex-shrink: 0;
    border-radius: 0;
    flex-direction: column;
    justify-content: flex-end;
}

.ade-events-list[data-view="list"] .ade-card__body {
    padding: 14px 18px;
    gap: 8px;
}

.ade-events-list[data-view="list"] .ade-card__cta {
    padding: 14px 18px;
    border-top: none;
    border-left: 1px solid var(--ade-border);
    margin-top: 0;
    display: flex;
    align-items: center;
    min-width: 160px;
    flex-shrink: 0;
}

/* ----------------------------------------
   12. Type Color System
   ---------------------------------------- */

/* — header backgrounds (light tint + colored top border) */
.ade-card__header.ade-type-bg-coworking-virtuel  { background: #EEF2FF; border-top: 4px solid #6366F1; }
.ade-card__header.ade-type-bg-cafe-virtuel        { background: #FDF2F8; border-top: 4px solid #EC4899; }
.ade-card__header.ade-type-bg-networking          { background: #F0FDFA; border-top: 4px solid #14B8A6; }
.ade-card__header.ade-type-bg-atelier             { background: #FFFBEB; border-top: 4px solid #F59E0B; }
.ade-card__header.ade-type-bg-workshop            { background: #F5F3FF; border-top: 4px solid #8B5CF6; }
.ade-card__header.ade-type-bg-interblogeur        { background: #FEF2F2; border-top: 4px solid #EF4444; }
.ade-card__header.ade-type-bg-defi-lecture        { background: #F0FDF4; border-top: 4px solid #10B981; }
.ade-card__header.ade-type-bg-default             { background: #F8FAFC; border-top: 4px solid #64748B; }

/* — type badge text colors */
.ade-card__type.ade-type-color-coworking-virtuel  { color: #4338CA; background: #EEF2FF; }
.ade-card__type.ade-type-color-cafe-virtuel        { color: #BE185D; background: #FDF2F8; }
.ade-card__type.ade-type-color-networking          { color: #0F766E; background: #F0FDFA; }
.ade-card__type.ade-type-color-atelier             { color: #B45309; background: #FFFBEB; }
.ade-card__type.ade-type-color-workshop            { color: #6D28D9; background: #F5F3FF; }
.ade-card__type.ade-type-color-interblogeur        { color: #B91C1C; background: #FEF2F2; }
.ade-card__type.ade-type-color-defi-lecture        { color: #047857; background: #F0FDF4; }

/* — pill dots and active state */
.ade-pill.ade-type-coworking-virtuel .ade-pill__dot  { background: #6366F1; }
.ade-pill.ade-type-cafe-virtuel .ade-pill__dot        { background: #EC4899; }
.ade-pill.ade-type-networking .ade-pill__dot          { background: #14B8A6; }
.ade-pill.ade-type-atelier .ade-pill__dot             { background: #F59E0B; }
.ade-pill.ade-type-workshop .ade-pill__dot            { background: #8B5CF6; }
.ade-pill.ade-type-interblogeur .ade-pill__dot        { background: #EF4444; }
.ade-pill.ade-type-defi-lecture .ade-pill__dot        { background: #10B981; }

.ade-pill.ade-pill--active.ade-type-coworking-virtuel  { background: #6366F1; border-color: #6366F1; }
.ade-pill.ade-pill--active.ade-type-cafe-virtuel        { background: #EC4899; border-color: #EC4899; }
.ade-pill.ade-pill--active.ade-type-networking          { background: #14B8A6; border-color: #14B8A6; }
.ade-pill.ade-pill--active.ade-type-atelier             { background: #F59E0B; border-color: #F59E0B; }
.ade-pill.ade-pill--active.ade-type-workshop            { background: #8B5CF6; border-color: #8B5CF6; }
.ade-pill.ade-pill--active.ade-type-interblogeur        { background: #EF4444; border-color: #EF4444; }
.ade-pill.ade-pill--active.ade-type-defi-lecture        { background: #10B981; border-color: #10B981; }

/* ----------------------------------------
   13. Registration Button (from Registration_UI)
   ---------------------------------------- */
.ade-reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: var(--ade-btn-pv, 10px) var(--ade-btn-ph, 18px);
    font-family: inherit;
    line-height: inherit;
    font-size: var(--ade-btn-font-size, .875rem);
    font-weight: 700;
    border-radius: var(--ade-btn-radius, var(--ade-radius-sm));
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ade-transition);
    white-space: nowrap;
}

.ade-reg-btn--register {
    background: var(--ade-accent);
    color: #fff;
}

.ade-reg-btn--register:hover {
    background: var(--ade-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,.4);
}

.ade-reg-btn--cancel {
    background: var(--ade-bg);
    color: var(--ade-mid);
    border: 1px solid var(--ade-border);
}

.ade-reg-btn--cancel:hover {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #FCA5A5;
}

.ade-reg-btn--live {
    background: var(--ade-live);
    color: #fff;
}

.ade-reg-btn--live:hover {
    background: #DC2626;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,68,68,.4);
}

.ade-reg-btn--waitlist {
    background: var(--ade-bg);
    color: var(--ade-mid);
    border: 1px dashed var(--ade-border);
}

.ade-reg-btn--paid {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    cursor: default;
}

.ade-reg-btn--login {
    background: var(--ade-dark);
    color: #fff;
}

.ade-reg-btn--login:hover {
    background: #1E293B;
    color: #fff;
}

.ade-reg-btn--full,
.ade-reg-btn--closed,
.ade-reg-btn--cancelled {
    background: var(--ade-bg);
    color: var(--ade-muted);
    border: 1px solid var(--ade-border);
    cursor: not-allowed;
}

.ade-reg-btn--loading {
    opacity: .65;
    cursor: wait;
}

.ade-reg-notice {
    font-size: .75rem;
    text-align: center;
    margin-top: 6px;
    color: var(--ade-muted);
}

/* Hero actions — registration button */
.ade-hero__actions .ade-reg-btn {
    width: auto;
    padding: 11px 24px;
    font-size: .9375rem;
}

/* ----------------------------------------
   14. Empty State
   ---------------------------------------- */
.ade-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--ade-muted);
}

.ade-empty p {
    font-size: 1rem;
    font-weight: 500;
}

.ade-no-results {
    display: none;
    text-align: center;
    padding: 48px 24px;
    color: var(--ade-muted);
    grid-column: 1 / -1;
}

.ade-no-results.is-visible {
    display: block;
}

/* ----------------------------------------
   15. Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
    .ade-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ade-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ade-container {
        padding: 0 16px;
    }

    .ade-page-header {
        padding: 32px 0 28px;
    }

    .ade-page-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ade-page-header__date {
        display: none;
    }

    .ade-hero {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .ade-hero__illustration {
        height: 200px;
        order: -1;
    }

    .ade-hero__body {
        padding: 20px 20px 0;
        justify-content: flex-start;
    }

    .ade-hero__cta-bar {
        padding: 12px 20px;
    }

    .ade-cards-grid {
        grid-template-columns: 1fr;
    }

    .ade-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ade-filters__search-wrap {
        width: 100%;
    }

    .ade-filters__top {
        flex-wrap: wrap;
    }

    .ade-view-btn span:not(:first-child) {
        display: none;
    }

    .ade-countdown__unit {
        min-width: 52px;
        padding: 8px 10px 6px;
    }

    .ade-countdown__num {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .ade-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ade-hero__cta-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ade-hero__cta-bar .ade-cal-share-group {
        margin-left: 0;
    }

    .ade-hero__cta-bar .ade-reg-btn,
    .ade-hero__cal-btn {
        justify-content: center;
    }
}

/* ==========================================================================
   Atomic Event Components
   ========================================================================== */

/* ---- Badge date ---- */
.ade-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    gap: 1px;
    background: var(--ade-card-bg, #fff);
    border: 1px solid var(--ade-border, #E2E8F0);
    border-radius: var(--ade-radius-sm, 8px);
    padding: 6px 10px;
    min-width: 44px;
}

.ade-date-badge__day {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ade-muted);
    text-transform: uppercase;
}

.ade-date-badge__num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ade-dark);
    line-height: 1;
}

.ade-date-badge--multiday .ade-date-badge__num {
    font-size: 1.1rem;
}

.ade-date-badge__mon {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ade-muted);
    text-transform: uppercase;
}

/* ---- Badge type ---- */
.ade-type-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: currentColor;
}

.ade-type-badge {
    color: var(--ade-accent);
}

/* ---- Badge format ---- */
.ade-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ade-mid);
}

/* ---- Barre capacité ---- */
.ade-capacity-bar {
    width: 100%;
}

.ade-capacity-bar__text {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--ade-mid);
    margin-bottom: 4px;
}

.ade-capacity-bar__remaining {
    color: var(--ade-accent-dark);
    font-weight: 600;
}

.ade-capacity-bar__track {
    height: 4px;
    background: var(--ade-border);
    border-radius: 2px;
    overflow: hidden;
}

.ade-capacity-bar__fill {
    height: 4px;
    background: var(--ade-accent, #F59E0B);
    border-radius: 2px;
    transition: width .3s ease;
}

/* ---- Horaires ---- */
.ade-time-range {
    font-size: .78rem;
    font-weight: 500;
    color: var(--ade-mid);
}

/* ---- Organisateur ---- */
.ade-organizer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ade-organizer__avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ade-organizer__name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ade-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Badge En direct ---- */
.ade-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ade-live);
    background: rgba(239,68,68,.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.ade-live-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ade-live);
    animation: ade-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

/* ---- Widget Participants ---- */
.ade-participants {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ade-participants__stack {
    display: flex;
    align-items: center;
}

.ade-participants__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    flex-shrink: 0;
    display: block;
}

.ade-participants__avatar + .ade-participants__avatar,
.ade-participants__extra {
    margin-left: -8px;
}

.ade-participants__extra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ade-border);
    color: var(--ade-mid);
    font-size: .7rem;
    font-weight: 700;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.ade-participants__count {
    font-size: .82rem;
    font-weight: 500;
    color: var(--ade-mid);
}

/* ==========================================================================
   Page complète — Mes événements
   ========================================================================== */

.ade-my-events-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ade-my-events-page__header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ade-my-events-page__notif-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ade-mid);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius-sm);
    transition: color var(--ade-transition), border-color var(--ade-transition), background var(--ade-transition);
}

.ade-my-events-page__notif-link:hover {
    color: var(--ade-dark);
    background: var(--ade-bg);
    border-color: var(--ade-mid);
}

.ade-my-events-page__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ade-dark);
    margin: 0;
}

.ade-my-events-page__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--ade-mid);
    margin: 0;
}

.ade-my-events-page__dot { color: var(--ade-muted); }
.ade-my-events-page__stat--muted { color: var(--ade-muted); }

.ade-my-events-page__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ade-my-events-page__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ade-dark);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ade-border);
}

.ade-my-events-page__section-count {
    font-size: .75rem;
    font-weight: 700;
    background: var(--ade-border);
    color: var(--ade-mid);
    padding: 2px 7px;
    border-radius: 100px;
}

.ade-my-events-page__section-count--muted {
    background: var(--ade-bg);
    color: var(--ade-muted);
}

.ade-my-events-page__section-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ade-my-events-page__section-dot--live {
    background: var(--ade-live);
    animation: ade-pulse 1.4s ease-in-out infinite;
}

.ade-my-events-page__empty {
    color: var(--ade-muted);
    font-size: .9rem;
    padding: 20px 0;
    margin: 0;
}

/* Item live */
.ade-my-events__item--live {
    border-left: 3px solid var(--ade-live);
    background: #FFF5F5;
}

/* Item past */
.ade-my-events__item--past {
    opacity: .75;
}

.ade-my-events__item--past:hover {
    opacity: 1;
}

.ade-my-events__date--past .ade-my-events__date-num {
    color: var(--ade-muted);
}

.ade-my-events__date--past .ade-my-events__date-day,
.ade-my-events__date--past .ade-my-events__date-mon {
    color: var(--ade-muted);
    opacity: .6;
}

/* Status checked_in */
.ade-my-events__status--checked {
    background: #EFF6FF;
    color: #1D4ED8;
}

/* Replay button */
.ade-my-events__replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ade-dark);
    text-decoration: none;
    padding: 4px 10px;
    background: var(--ade-accent-light);
    color: var(--ade-accent-dark);
    border-radius: 4px;
    transition: background var(--ade-transition);
}

.ade-my-events__replay-btn:hover {
    background: #FDE68A;
    color: var(--ade-accent-dark);
}

/* ==========================================================================
   Dashboard membre — Mes événements (widget compact)
   ========================================================================== */

.ade-my-events__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ade-my-events__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--ade-card-bg);
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius-sm);
    padding: 14px 16px;
    transition: box-shadow var(--ade-transition);
}

.ade-my-events__item:hover {
    box-shadow: var(--ade-shadow);
}

.ade-my-events__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 40px;
    padding-top: 2px;
    gap: 1px;
    flex-shrink: 0;
}

.ade-my-events__date-day {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ade-muted);
    text-transform: uppercase;
}

.ade-my-events__date-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ade-dark);
    line-height: 1;
}

.ade-my-events__date-mon {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ade-muted);
    text-transform: uppercase;
}

.ade-my-events__date + .ade-my-events__body {
    border-left: 1px solid var(--ade-border);
    padding-left: 16px;
}

.ade-my-events__body {
    flex: 1;
    min-width: 0;
}

.ade-my-events__meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.ade-my-events__title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 3px;
    line-height: 1.3;
}

.ade-my-events__title a {
    color: var(--ade-dark);
    text-decoration: none;
}

.ade-my-events__title a:hover {
    color: var(--ade-accent-dark);
}

.ade-my-events__time {
    font-size: .78rem;
    color: var(--ade-mid);
    margin: 0 0 8px;
}

.ade-my-events__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ade-my-events__status {
    display: inline-flex;
    align-items: center;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
}

.ade-my-events__status--registered {
    background: #d1fae5;
    color: #065f46;
}

.ade-my-events__status--waitlist {
    background: #fef3c7;
    color: #92400e;
}

.ade-my-events__ical-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 500;
    color: var(--ade-mid);
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid var(--ade-border);
    border-radius: 4px;
    transition: color var(--ade-transition), border-color var(--ade-transition);
}

.ade-my-events__ical-btn:hover {
    color: var(--ade-dark);
    border-color: var(--ade-mid);
}

.ade-my-events__empty,
.ade-my-events__login {
    color: var(--ade-mid);
    font-size: .9rem;
    padding: 16px 0;
}

.ade-my-events__login a {
    color: var(--ade-accent-dark);
    font-weight: 600;
}

.ade-my-events__actions .ade-registration { margin: 0; }

.ade-my-events__actions .ade-reg-btn--unregister {
    padding: 3px 10px;
    font-size: .72rem;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .ade-my-events__item {
        flex-direction: column;
        gap: 10px;
    }

    .ade-my-events__date {
        flex-direction: row;
        gap: 6px;
        align-items: baseline;
    }

    .ade-my-events__date + .ade-my-events__body {
        border-left: none;
        border-top: 1px solid var(--ade-border);
        padding-left: 0;
        padding-top: 10px;
    }
}

/* ade-reg-status dans le contexte mes-événements : badge vert avec check */
.ade-my-events__actions .ade-reg-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    background: #d1fae5;
    color: #065f46;
}

.ade-my-events__actions .ade-reg-status::before {
    content: '✓';
    font-size: .8em;
    font-weight: 800;
}

/* Onglets À venir / Passés */
.ade-my-events-page__tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--ade-border);
    margin-bottom: 20px;
}

.ade-my-events-page__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ade-mid);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--ade-transition), border-color var(--ade-transition);
}

.ade-my-events-page__tab:hover {
    color: var(--ade-dark);
}

.ade-my-events-page__tab--active {
    color: var(--ade-dark);
    border-bottom-color: var(--ade-accent, #F59E0B);
}

.ade-my-events-page__tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    font-size: .65rem;
    font-weight: 700;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--ade-accent-light, #FEF3C7);
    color: var(--ade-accent-dark, #92400e);
}

.ade-my-events-page__tab-count--muted {
    background: var(--ade-border);
    color: var(--ade-muted);
}

.ade-my-events-page__tab-panel[hidden] {
    display: none;
}

/* ==========================================================================
   Replay
   ========================================================================== */

.ade-replay {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ade-replay__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--ade-dark);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: background var(--ade-transition);
}

.ade-replay__btn:hover {
    background: var(--ade-accent-dark);
    color: #fff;
}

.ade-replay__expires {
    font-size: .75rem;
    color: var(--ade-mid);
}

.ade-replay__badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    background: var(--ade-bg);
    color: var(--ade-mid);
}

.ade-replay__badge--expired {
    background: #fde8e8;
    color: #b91c1c;
}

.ade-replay__badge--premium {
    background: var(--ade-accent-light);
    color: var(--ade-accent-dark);
}

.ade-replay--embed iframe,
.ade-replay--embed video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--ade-radius-sm);
    border: none;
}

/* ==========================================================================
   Page single événement
   ========================================================================== */

/* --- Héro --- */
.ade-single__hero {
    position: relative;
    background-color: var(--ade-dark);
    background-size: cover;
    background-position: center;
    min-height: 560px;
    display: flex;
    align-items: stretch;
}

.ade-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,.85) 40%, rgba(15,23,42,.30) 100%);
}

.ade-single__hero--past .ade-single__hero-overlay {
    background: linear-gradient(to right, rgba(15,23,42,.92) 40%, rgba(15,23,42,.55) 100%);
}

.ade-single__hero-content {
    position: relative;
    z-index: 1;
    padding: 32px 24px 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ade-single__hero-inner {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    flex: 1;
    padding-top: 24px;
}

.ade-single__breadcrumb {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 0;
}

.ade-single__breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.ade-single__breadcrumb a:hover { color: #fff; }
.ade-single__breadcrumb-sep { margin: 0 6px; }

.ade-single__hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ade-single__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.ade-single__badge--live    { background: var(--ade-live); color: #fff; }
.ade-single__badge--past    { background: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.ade-single__badge--type    { background: rgba(255,255,255,.15); color: #fff; }
.ade-single__badge--format  { background: rgba(255,255,255,.12); color: #fff; }
.ade-single__badge--online  { background: rgba(16,185,129,.25); color: #6ee7b7; }
.ade-single__badge--onsite  { background: rgba(99,102,241,.25); color: #c7d2fe; }
.ade-single__badge--paid    { background: var(--ade-accent); color: var(--ade-dark); }

.ade-single__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.ade-single__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
}

.ade-single__hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ade-single__hero-meta-item svg { flex-shrink: 0; opacity: .8; }

.ade-single__org-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
}

/* Lien retour dans le hero (single event) */
.ade-hero__back {
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    color: var(--ade-mid);
    text-decoration: none;
}

.ade-hero__back:hover { color: var(--ade-dark); }

.ade-single__hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    align-self: flex-start;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.ade-single__hero-cta .ade-registration { margin: 0; }
.ade-single__hero-cta .ade-reg-btn,
.ade-single__hero-cta .ade-reg-btn { width: auto; }
.ade-single__hero-cta .ade-reg-notice { color: #64748b; font-size: .78rem; }

/* Sidebar CTA wrap — same flex layout as hero bar, but inside white card */
.ade-single__cta-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* Calendar + share grouped together, tight gap so they stay on one line */
.ade-cal-share-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Corps --- */
.ade-single__body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding-top: 28px;
    padding-bottom: 48px;
    align-items: start;
}

@media (max-width: 860px) {
    .ade-single__body { grid-template-columns: 1fr; }
    .ade-single__sidebar { order: -1; }
    .ade-single__sidebar .ade-single__card:first-child { display: none; }
}

.ade-single__content { min-width: 0; }

.ade-single__sidebar { align-self: start; grid-column: 2; }

@media (max-width: 860px) {
    .ade-single__sidebar { grid-column: 1; }
}

.ade-single__excerpt {
    font-size: 1.05rem;
    color: var(--ade-mid);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ade-single__desc { line-height: 1.75; color: var(--ade-mid); }
.ade-single__desc h2,
.ade-single__desc h3 { color: var(--ade-dark); margin-top: 28px; }

.ade-single__section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--ade-border);
}

.ade-single__section-title {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ade-accent, #d97706);
}

.ade-single__section-body {
    line-height: 1.75;
    color: var(--ade-mid);
}

.ade-single__section-body ul,
.ade-single__section-body ol {
    padding-left: 1.4em;
    margin: 6px 0;
}

.ade-single__section-body li { margin-bottom: 4px; }

.ade-single__section--note {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-top: 1px solid #fde68a;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: .9em;
    line-height: 1.65;
    color: #78350f;
}

.ade-single__replay-section { margin-top: 36px; border-top: 1px solid var(--ade-border); padding-top: 28px; }
.ade-single__replay-section h2 { font-size: 1.2rem; margin-bottom: 14px; }

/* --- Sidebar cards --- */
.ade-single__card {
    background: #fff;
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.ade-single__card-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ade-muted);
    margin: 0 0 14px;
}

.ade-single__participants {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ade-single__participants-avatars {
    margin-bottom: 2px;
}
.ade-single__participants-count {
    font-size: .85rem;
    color: var(--ade-mid);
    font-weight: 500;
}
.ade-single__cap-text {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    line-height: 0.85;
    color: var(--ade-mid);
    margin: 0;
}

/* --- Ressources --- */
.ade-single__resources {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ade-single__resource-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: .875rem;
    color: #374151;
    text-decoration: none;
    transition: background .1s;
}

a.ade-single__resource-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.ade-single__resource-icon {
    flex-shrink: 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.ade-single__resource-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ade-single__resource-badge {
    flex-shrink: 0;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7c3aed;
    background: #ede9fe;
    padding: 2px 6px;
    border-radius: 4px;
}

.ade-single__ical-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: .82rem;
    color: var(--ade-muted);
    text-decoration: none;
    border-top: 1px solid var(--ade-border);
    padding-top: 12px;
    width: 100%;
}

.ade-single__ical-link:hover { color: var(--ade-dark); }

.ade-single__info-list {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: .88rem;
}

.ade-single__info-list dt { color: var(--ade-muted); font-weight: 600; white-space: nowrap; }
.ade-single__info-list dd { margin: 0; color: var(--ade-dark); }

.ade-single__tz-note { display: inline-flex; margin-left: 6px; }
.ade-single__tz-note a { color: var(--ade-accent); font-weight: 600; text-decoration: none; }
.ade-single__tz-note a:hover { text-decoration: underline; }

.ade-single__organizer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ade-single__org-avatar-lg {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ade-single__org-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--ade-dark);
    text-decoration: none;
}

.ade-single__org-name:hover { color: var(--ade-accent-dark); }

.ade-single__defi-item {
    padding: 12px 0;
    border-top: 1px solid var(--ade-border);
}
.ade-single__defi-item:first-child { border-top: none; padding-top: 0; }

.ade-single__defi-title {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ade-dark);
    text-decoration: none;
    margin-bottom: 6px;
}
.ade-single__defi-title:hover { color: var(--ade-accent-dark); }

.ade-single__defi-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.ade-single__defi-badges .ade-reg-badge { padding: 3px 9px; font-size: .72rem; }

/* ==========================================================================
   Bouton Rejoindre (lien de connexion)
   Hérite de .ade-reg-btn pour le sizing/radius — les modifiers gèrent la couleur.
   ========================================================================== */

.ade-reg-btn.ade-join-btn--open {
    background: var(--ade-accent);
    color: #fff;
    animation: ade-pulse-amber 2s infinite;
}
.ade-reg-btn.ade-join-btn--open:hover {
    background: var(--ade-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,.4);
    animation: none;
}

@keyframes ade-pulse-amber {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
    50%       { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

.ade-reg-btn.ade-join-btn--late {
    background: var(--ade-dark);
    color: #fff;
}
.ade-reg-btn.ade-join-btn--late:hover {
    background: #1e293b;
    color: #fff;
    transform: translateY(-1px);
}

/* Badges état (trop tôt, coworking, refus) */
.ade-join-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--ade-radius-sm);
    font-size: .88rem;
    font-weight: 600;
}

.ade-join-badge--soon       { background: var(--ade-accent-light); color: var(--ade-accent-dark); }
.ade-join-badge--coworking  { background: var(--ade-accent-light); color: var(--ade-accent-dark); }
.ade-join-badge--denied     { background: var(--ade-bg); color: var(--ade-muted); }
.ade-join-badge--locked     { background: var(--ade-bg); color: var(--ade-muted); }

/* ==========================================================================
   Vue visiteur non connecté
   ========================================================================== */

/* Bannière en haut de page */
.ade-guest-banner {
    background: var(--ade-dark);
    border-bottom: 3px solid var(--ade-accent);
    padding: 20px 0;
}

.ade-guest-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ade-guest-banner__kicker {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ade-accent);
    margin: 0 0 4px;
}

.ade-guest-banner__headline {
    font-size: .95rem;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.5;
}

.ade-guest-banner__headline strong {
    color: #fff;
}

.ade-guest-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ade-guest-banner__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--ade-radius-sm);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--ade-transition);
}

.ade-guest-banner__btn--primary {
    background: var(--ade-accent);
    color: #fff;
}
.ade-guest-banner__btn--primary:hover {
    background: var(--ade-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,.4);
}

.ade-guest-banner__btn--ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    font-weight: 500;
}
.ade-guest-banner__btn--ghost:hover {
    color: #e2e8f0;
    border-color: #64748b;
    background: rgba(255,255,255,.05);
}

/* Grille avec overlay de conversion */
.ade-grid-wrap {
    position: relative;
}

.ade-grid-wrap--guest::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 260px;
    background: linear-gradient(to bottom, transparent, var(--ade-bg) 75%);
    pointer-events: none;
    z-index: 1;
}

.ade-guest-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0 16px 48px;
    margin-top: -80px;
}

.ade-guest-overlay__box {
    background: #fff;
    border: 1px solid var(--ade-border);
    border-radius: var(--ade-radius);
    box-shadow: var(--ade-shadow-hover);
    padding: 40px 48px;
    text-align: center;
    max-width: 560px;
    width: 100%;
}

.ade-guest-overlay__eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ade-accent);
    margin: 0 0 10px;
}

.ade-guest-overlay__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ade-dark);
    margin: 0 0 10px;
    line-height: 1.25;
}

.ade-guest-overlay__sub {
    font-size: .875rem;
    color: var(--ade-mid);
    margin: 0 0 28px;
}

.ade-guest-overlay__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ade-guest-overlay__actions .ade-reg-btn {
    width: 100%;
    max-width: 320px;
    padding: 13px 24px;
    font-size: .975rem;
}

.ade-guest-overlay__login {
    font-size: .85rem;
    color: var(--ade-mid);
    text-decoration: none;
}
.ade-guest-overlay__login:hover {
    color: var(--ade-dark);
}

/* Bouton CTA dans les cartes (vue visiteur) */
.ade-card__guest-btn {
    font-size: .8rem;
}

@media (max-width: 640px) {
    .ade-guest-banner__inner  { flex-direction: column; align-items: flex-start; }
    .ade-guest-overlay__box   { padding: 28px 20px; }
    .ade-guest-overlay__title { font-size: 1.2rem; }
}

.ade-hero__other-current {
    grid-column: 1;
    margin: 0;
    padding: 0 32px 16px;
    font-size: 14px;
    font-weight: 600;
}
.ade-hero__other-current a {
    color: var(--ade-accent, #d97706);
    text-decoration: none;
}
.ade-hero__other-current a:hover {
    text-decoration: underline;
}
