/* UNSA Calendrier Région BFC - design premium, charte UNSA */

.ucc-wrap {
    --ucc-blue: #009ee0;
    --ucc-navy: #004289;
    --ucc-ink: #0f172a;
    --ucc-ink2: #1e293b;
    --ucc-muted: #64748b;
    --ucc-border: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ucc-ink);
    max-width: 860px;
    margin: 0 auto;
    padding: 4px;
    box-sizing: border-box;
}

.ucc-wrap *,
.ucc-wrap *::before,
.ucc-wrap *::after {
    box-sizing: border-box;
    min-width: 0;
}

.ucc-wrap p {
    margin: 0;
}

/* ---- Bandeau ---- */

.ucc-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--ucc-blue) 0%, var(--ucc-navy) 100%);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 22px;
    color: #fff;
}

.ucc-hero-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.ucc-hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.9rem;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 4px;
}

.ucc-hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.ucc-hero-next {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 16px 18px;
    min-width: min(100%, 250px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.ucc-next-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.ucc-next-name {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.ucc-next-date {
    color: #fff;
    font-weight: 500;
}

.ucc-next-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ucc-next-count {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--ucc-navy);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}

/* ---- Filtres ---- */

.ucc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ucc-filter-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ucc-filter-label {
    margin-right: 2px;
    color: var(--ucc-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ucc-chip {
    --ucc-agenda-color: var(--ucc-blue);
    appearance: none;
    border: 1px solid var(--ucc-border);
    background: #fff;
    color: var(--ucc-ink2);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 44px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ucc-chip-dialogue-social { --ucc-agenda-color: #009ee0; }
.ucc-chip-ceser { --ucc-agenda-color: #078466; }
.ucc-chip-conseil-regional { --ucc-agenda-color: #004289; }
.ucc-chip-unsa { --ucc-agenda-color: #29235c; }

.ucc-chip-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    background: transparent;
    border: 2px solid var(--ucc-border);
    border-radius: 50%;
}

.ucc-chip:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ucc-chip-active {
    background: color-mix(in srgb, var(--ucc-agenda-color), white 91%);
    border-color: var(--ucc-border);
    color: var(--ucc-ink);
}

.ucc-chip-active .ucc-chip-dot {
    background: var(--ucc-agenda-color);
}

.ucc-chip:focus-visible,
.ucc-filter-actions button:focus-visible,
.ucc-member-agenda a:focus-visible,
.ucc-registration-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ucc-blue), white 35%);
    outline-offset: 2px;
}

/* ---- Accès aux inscriptions ---- */

.ucc-registration-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 0 0 26px;
    padding: 18px;
    color: var(--ucc-ink);
    background: linear-gradient(110deg, #f7fbfe 0%, #eef7fc 100%);
    border: 1px solid var(--ucc-border);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ucc-registration-card:hover {
    color: var(--ucc-ink);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

.ucc-registration-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    background: var(--ucc-navy);
    border-radius: 15px;
}

.ucc-registration-icon svg {
    width: 24px;
    height: 24px;
}

.ucc-registration-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ucc-registration-copy strong {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
}

.ucc-registration-copy small {
    color: var(--ucc-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.ucc-registration-action {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--ucc-navy);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.ucc-registration-action svg {
    width: 38px;
    height: 38px;
    padding: 10px;
    color: #fff;
    background: var(--ucc-blue);
    border-radius: 50%;
}

.ucc-filter-actions {
    display: flex;
    gap: 12px;
}

.ucc-filter-actions button {
    appearance: none;
    padding: 4px 0;
    color: var(--ucc-blue-dark, #006ba3);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #b9ddeb;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ucc-member-agenda {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 22px;
    padding: 12px 14px;
    color: #29235c;
    background: #f5f3ff;
    border: 1px solid var(--ucc-border);
    border-radius: 12px;
}

.ucc-member-lock {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    background: #fff;
    border-radius: 10px;
}

.ucc-member-lock svg {
    width: 18px;
    height: 18px;
}

.ucc-member-agenda > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.ucc-member-agenda small {
    margin-top: 2px;
    color: #68658a;
}

.ucc-member-agenda a {
    flex: 0 0 auto;
    color: #29235c;
    font-size: 0.82rem;
    font-weight: 800;
}

.ucc-empty {
    margin: 28px 0 !important;
    padding: 28px;
    color: var(--ucc-muted);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
}

/* ---- Mois et timeline ---- */

.ucc-month {
    margin-bottom: 26px;
}

.ucc-month-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    color: var(--ucc-ink);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ucc-border);
}

.ucc-events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ucc-ev {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.ucc-ev-hidden {
    display: none;
}

.ucc-past .ucc-date {
    background: #f1f5f9;
}

.ucc-past .ucc-date-day,
.ucc-past .ucc-line-title,
.ucc-past .ucc-card-date {
    color: #475569;
}

/* Pastille date */

.ucc-date {
    flex: 0 0 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--ucc-border);
    border-radius: 10px;
    padding: 6px 4px;
    align-self: flex-start;
    min-height: 54px;
}

.ucc-date-day {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ucc-ink);
    line-height: 1;
    white-space: nowrap;
}

.ucc-date-day2 {
    font-size: 0.85rem;
    color: var(--ucc-muted);
}

.ucc-date-dow {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ucc-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Cards */

.ucc-card {
    position: relative;
    flex: 1 1 auto;
    background: #fff;
    border: 1px solid var(--ucc-border);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease;
}

.ucc-status {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
    align-items: center;
    margin-left: auto;
    padding: 5px 9px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.ucc-status svg {
    width: 13px;
    height: 13px;
}

.ucc-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ucc-card-seance .ucc-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ucc-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.ucc-badge-ap {
    background: var(--ucc-navy);
}

.ucc-badge-cp {
    background: var(--ucc-blue);
}

.ucc-note {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ucc-muted);
}

.ucc-card-date {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ucc-ink);
    margin-bottom: 6px;
}

.ucc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ucc-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--ucc-ink2);
    font-weight: 500;
}

.ucc-meta i,
.ucc-meta svg {
    width: 15px;
    height: 15px;
    color: var(--ucc-blue);
    flex: 0 0 auto;
}

/* Lignes compactes (commissions, CESER, jalons, vacances) */

.ucc-card-line,
.ucc-card-jalon,
.ucc-card-vacances,
.ucc-card-agenda {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
}

.ucc-card-agenda {
    --ucc-event-color: var(--ucc-blue);
}

.ucc-card-agenda-dialogue-social { --ucc-event-color: #009ee0; }
.ucc-card-agenda-ceser { --ucc-event-color: #078466; }
.ucc-card-agenda-conseil-regional { --ucc-event-color: #004289; }
.ucc-card-agenda-unsa { --ucc-event-color: #29235c; }

.ucc-icon-agenda {
    color: var(--ucc-event-color);
    background: color-mix(in srgb, var(--ucc-event-color), white 90%);
}

.ucc-card-agenda .ucc-card-meta {
    margin-top: 8px;
}

.ucc-cnum {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e0f2fe;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ucc-ink2);
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
}

.ucc-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.ucc-icon i,
.ucc-icon svg {
    width: 18px;
    height: 18px;
}

.ucc-icon-ceser {
    background: #ecfdf5;
    color: #047857;
}

.ucc-icon-jalon {
    background: #f8fafc;
    color: var(--ucc-muted);
}

.ucc-icon-vacances {
    background: #fffbeb;
    color: #b45309;
}

.ucc-line-body {
    flex: 1 1 auto;
}

.ucc-line-title {
    font-weight: 600;
    color: var(--ucc-ink);
    font-size: 0.94rem;
    line-height: 1.35;
}

.ucc-line-sub {
    font-size: 0.82rem;
    color: var(--ucc-muted);
    margin-top: 1px;
}

.ucc-card-jalon .ucc-line-title {
    font-weight: 500;
    color: var(--ucc-ink2);
}

/* Source */

.ucc-source {
    font-size: 0.8rem;
    color: var(--ucc-muted);
    margin-top: 6px;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .ucc-hero {
        padding: 20px;
        gap: 14px;
    }

    .ucc-hero-title {
        font-size: 1.5rem;
    }

    .ucc-hero-next {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .ucc-wrap {
        padding: 2px;
    }

    .ucc-hero {
        padding: 16px;
        border-radius: 12px;
    }

    .ucc-date {
        flex-basis: 46px;
        min-height: 48px;
    }

    .ucc-card {
        padding: 12px;
    }

    .ucc-card-meta {
        gap: 10px;
    }

    .ucc-filter-label {
        flex-basis: 100%;
    }

    .ucc-chip {
        width: 100%;
        text-align: left;
    }

    .ucc-filter-actions {
        width: 100%;
        justify-content: space-between;
    }

    .ucc-member-agenda {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ucc-member-agenda a {
        margin-left: 48px;
    }

    .ucc-registration-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .ucc-registration-action {
        grid-column: 2;
        justify-content: space-between;
        white-space: normal;
    }

    .ucc-registration-action svg {
        flex: 0 0 auto;
    }

    .ucc-card-line,
    .ucc-card-jalon,
    .ucc-card-vacances,
    .ucc-card-agenda {
        flex-wrap: wrap;
    }

    .ucc-status {
        margin-left: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ucc-registration-card {
        transition: none;
    }
}
