:root {
    --vpc-orange: #ff5a1f;
    --vpc-orange-soft: #fff1eb;
    --vpc-orange-deep: #e8480f;
    --vpc-ink: #1f2329;
    --vpc-text: #343a40;
    --vpc-muted: #737b84;
    --vpc-line: #e7e8eb;
    --vpc-surface: #ffffff;
    --vpc-bg: #f5f6f8;
    --vpc-radius: 16px;
    --vpc-shadow: 0 14px 40px rgba(24, 30, 38, .08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body.vpc-calendar-body {
    background: var(--vpc-bg);
    color: var(--vpc-text);
    font-family: Arial, Helvetica, sans-serif;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.vpc-topbar {
    height: 64px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid var(--vpc-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
}

.vpc-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: .04em;
}

.vpc-brand-mark {
    color: #fff;
    background: var(--vpc-orange);
    padding: 7px 8px 6px;
    border-radius: 7px;
    font-size: 13px;
}

.vpc-brand-name {
    color: var(--vpc-ink);
    font-size: 16px;
}

.vpc-back-link {
    color: var(--vpc-muted);
    font-size: 14px;
    text-decoration: none;
}

.vpc-back-link:hover {
    color: var(--vpc-orange);
}

.vpc-shell {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 36px 0 72px;
}

.vpc-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.vpc-eyebrow {
    display: inline-block;
    color: var(--vpc-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    margin-bottom: 7px;
}

.vpc-page-head h1,
.vpc-section-title-row h2 {
    margin: 0;
    color: var(--vpc-ink);
}

.vpc-page-head h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}

.vpc-page-head p {
    margin: 10px 0 0;
    color: var(--vpc-muted);
    max-width: 650px;
    line-height: 1.5;
}

.vpc-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid var(--vpc-line);
    background: #fff;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--vpc-muted);
    font-size: 12px;
    font-weight: 700;
}

.vpc-live-dot {
    width: 8px;
    height: 8px;
    background: var(--vpc-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .12);
}

.vpc-calendar-panel,
.vpc-followed-section {
    background: var(--vpc-surface);
    border: 1px solid var(--vpc-line);
    border-radius: var(--vpc-radius);
    box-shadow: var(--vpc-shadow);
}

.vpc-calendar-panel {
    overflow: hidden;
}

.vpc-feed-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 18px 0;
    border-bottom: 1px solid var(--vpc-line);
}

.vpc-feed-tab {
    border: 0;
    background: transparent;
    color: var(--vpc-muted);
    padding: 12px 18px 13px;
    border-bottom: 3px solid transparent;
    font-weight: 700;
}

.vpc-feed-tab:hover {
    color: var(--vpc-ink);
}

.vpc-feed-tab.is-active {
    color: var(--vpc-orange);
    border-bottom-color: var(--vpc-orange);
}

.vpc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--vpc-line);
}

.vpc-period-nav,
.vpc-view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vpc-icon-button,
.vpc-today-button,
.vpc-view-button {
    border: 1px solid var(--vpc-line);
    background: #fff;
    color: var(--vpc-text);
    border-radius: 9px;
    min-height: 38px;
}

.vpc-icon-button {
    width: 38px;
    font-size: 24px;
    line-height: 1;
}

.vpc-today-button {
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
}

.vpc-period-label {
    margin-left: 10px;
    color: var(--vpc-ink);
    text-transform: capitalize;
}

.vpc-view-switch {
    background: var(--vpc-bg);
    border-radius: 10px;
    padding: 4px;
}

.vpc-view-button {
    border: 0;
    min-height: 32px;
    padding: 0 13px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--vpc-muted);
}

.vpc-view-button.is-active {
    background: #fff;
    color: var(--vpc-ink);
    box-shadow: 0 2px 8px rgba(30, 35, 42, .08);
}

.vpc-meta-row {
    min-height: 48px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--vpc-muted);
    font-size: 13px;
}

.vpc-result-summary strong {
    color: var(--vpc-ink);
}

.vpc-box-summary {
    background: var(--vpc-orange-soft);
    color: var(--vpc-orange-deep);
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
}

.vpc-status {
    margin: 0 18px 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff3cd;
    color: #725b00;
    font-size: 14px;
}

.vpc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.vpc-weekdays {
    border-top: 1px solid var(--vpc-line);
    border-bottom: 1px solid var(--vpc-line);
    background: #fafafa;
}

.vpc-weekdays span {
    padding: 11px 12px;
    color: var(--vpc-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}

.vpc-month-grid {
    display: block;
    background: #fff;
}

.vpc-week-row {
    position: relative;
    width: 100%;
    min-height: 94px;
    border-bottom: 1px solid var(--vpc-line);
    overflow: hidden;
}

.vpc-week-row:last-child {
    border-bottom: 0;
}

.vpc-week-days {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.vpc-day {
    min-width: 0;
    height: 100%;
    padding: 9px 10px;
    background: #fff;
    position: relative;
    border-right: 1px solid var(--vpc-line);
}

.vpc-day:last-child {
    border-right: 0;
}

.vpc-day.is-outside {
    background: #fafafa;
    color: #adb2b8;
}

.vpc-day.is-today {
    box-shadow: inset 0 0 0 2px var(--vpc-orange);
    z-index: 1;
}

.vpc-day-number {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 3;
}

.vpc-day.is-today .vpc-day-number {
    background: var(--vpc-orange);
    color: #fff;
}

.vpc-week-events {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: 43px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 26px;
    row-gap: 5px;
    pointer-events: none;
}

.vpc-event-bar {
    pointer-events: auto;
    min-width: 0;
    height: 26px;
    margin: 0 5px;
    padding: 0 9px;
    border: 0;
    border-left: 3px solid var(--vpc-orange);
    border-radius: 7px;
    background: var(--vpc-orange-soft);
    color: #7f2b0b;
    text-align: left;
    font-size: 10px;
    line-height: 26px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .04);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.vpc-event-bar:hover {
    background: #ffe3d5;
    box-shadow: 0 3px 10px rgba(232, 72, 15, .12);
    transform: translateY(-1px);
}

.vpc-event-bar.is-multiday {
    background: linear-gradient(90deg, #fff0e8 0%, #ffe7dc 100%);
}

.vpc-event-bar.continues-before {
    border-left-width: 0;
}

.vpc-event-bar.continues-after {
    border-right: 3px solid var(--vpc-orange);
}

.vpc-event-bar.is-geolocated::after {
    content: '⌖';
    float: right;
    margin-left: 7px;
    color: var(--vpc-orange-deep);
    font-weight: 900;
}

.vpc-event-bar-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpc-agenda-view {
    border-top: 1px solid var(--vpc-line);
}

.vpc-agenda-list {
    padding: 10px 18px 22px;
}

.vpc-agenda-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 4px;
    border-bottom: 1px solid var(--vpc-line);
}

.vpc-agenda-date {
    text-align: center;
    border-right: 1px solid var(--vpc-line);
    padding-right: 16px;
}

.vpc-agenda-day {
    display: block;
    color: var(--vpc-orange);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.vpc-agenda-month {
    display: block;
    color: var(--vpc-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 5px;
}

.vpc-agenda-content button {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    color: var(--vpc-ink);
    font-weight: 800;
    font-size: 15px;
}

.vpc-agenda-content button:hover {
    color: var(--vpc-orange);
}

.vpc-agenda-meta {
    margin-top: 6px;
    color: var(--vpc-muted);
    font-size: 12px;
    line-height: 1.5;
}

.vpc-owner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--vpc-muted);
    font-size: 11px;
}

.vpc-avatar,
.vpc-avatar-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #23272e;
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}

.vpc-avatar {
    width: 25px;
    height: 25px;
    font-size: 9px;
}

.vpc-avatar-large {
    width: 42px;
    height: 42px;
    font-size: 12px;
}

.vpc-status-badge {
    display: inline-flex;
    align-items: center;
    background: #f2f3f4;
    border-radius: 999px;
    color: var(--vpc-muted);
    font-size: 10px;
    font-weight: 800;
    padding: 6px 8px;
    white-space: nowrap;
}

.vpc-status-badge.is-live {
    background: #e9f8ef;
    color: #168348;
}

.vpc-status-badge.is-upcoming {
    background: var(--vpc-orange-soft);
    color: var(--vpc-orange-deep);
}

.vpc-empty {
    padding: 52px 20px;
    text-align: center;
    color: var(--vpc-muted);
}

.vpc-empty strong {
    display: block;
    color: var(--vpc-ink);
    margin-bottom: 6px;
}

.vpc-followed-section {
    margin-top: 22px;
    padding: 20px;
}

.vpc-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.vpc-section-title-row h2 {
    font-size: 21px;
}

.vpc-count-badge {
    background: var(--vpc-orange);
    color: #fff;
    border-radius: 999px;
    min-width: 31px;
    height: 31px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.vpc-followed-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.vpc-followed-vip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--vpc-line);
    border-radius: 11px;
    padding: 10px;
    min-width: 0;
}

.vpc-followed-vip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--vpc-ink);
    font-size: 12px;
    font-weight: 700;
}

.vpc-modal[hidden] {
    display: none;
}

.vpc-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.vpc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 22, .65);
}

.vpc-modal-card {
    position: relative;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    padding: 28px;
}

.vpc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f2f3;
    color: var(--vpc-text);
    font-size: 24px;
}

.vpc-modal-title {
    color: var(--vpc-ink);
    margin: 4px 46px 8px 0;
    font-size: 25px;
    line-height: 1.2;
}

.vpc-modal-sub {
    color: var(--vpc-orange-deep);
    font-weight: 700;
    margin-bottom: 18px;
}

.vpc-modal-description {
    color: var(--vpc-text);
    line-height: 1.65;
    white-space: pre-line;
}

.vpc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.vpc-detail-box {
    border: 1px solid var(--vpc-line);
    border-radius: 11px;
    padding: 12px;
}

.vpc-detail-label {
    display: block;
    color: var(--vpc-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
    font-weight: 800;
}

.vpc-detail-value {
    color: var(--vpc-ink);
    font-size: 13px;
    font-weight: 700;
}

.vpc-sessions {
    margin-top: 24px;
}

.vpc-sessions h3 {
    margin: 0 0 10px;
    color: var(--vpc-ink);
}

.vpc-session {
    border-left: 3px solid var(--vpc-orange);
    background: #fafafa;
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.vpc-session strong {
    color: var(--vpc-ink);
}

.vpc-session span {
    display: block;
    margin-top: 4px;
    color: var(--vpc-muted);
    font-size: 12px;
}

@media (max-width: 820px) {
    .vpc-shell {
        width: min(100% - 22px, 1240px);
        padding-top: 22px;
    }

    .vpc-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .vpc-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .vpc-period-nav {
        flex-wrap: wrap;
    }

    .vpc-period-label {
        width: 100%;
        margin: 6px 0 0;
    }

    .vpc-view-switch {
        align-self: flex-start;
    }

    .vpc-agenda-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .vpc-agenda-item > .vpc-status-badge {
        display: none;
    }

    .vpc-agenda-date {
        padding-right: 10px;
    }
}

@media (max-width: 640px) {
    .vpc-topbar {
        height: 56px;
        padding: 0 14px;
    }

    .vpc-back-link {
        font-size: 12px;
    }

    .vpc-feed-tabs {
        overflow-x: auto;
        padding-left: 8px;
    }

    .vpc-feed-tab {
        padding-left: 13px;
        padding-right: 13px;
    }

    .vpc-month-view {
        display: none !important;
    }

    .vpc-agenda-view {
        display: block !important;
    }

    .vpc-view-switch {
        display: none;
    }

    .vpc-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .vpc-detail-grid {
        grid-template-columns: 1fr;
    }

    .vpc-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .vpc-modal-card {
        max-height: 88vh;
        border-radius: 18px 18px 10px 10px;
        padding: 22px 18px;
    }
}


/* === Étape 4.2 : sessions / programme === */

.vpc-event-bar {
    gap: 8px;
}

.vpc-event-bar-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpc-event-bar-sessions {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    color: #a7350b;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
}

.vpc-event-bar.has-sessions {
    padding-right: 6px;
}

.vpc-agenda-sessions {
    color: var(--vpc-orange-deep);
    font-weight: 800;
}

.vpc-sessions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.vpc-sessions-head h3 {
    margin: 0;
}

.vpc-session-total {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--vpc-orange-soft);
    color: var(--vpc-orange-deep);
    font-size: 10px;
    font-weight: 800;
}

.vpc-session {
    padding: 13px 14px;
}

.vpc-session-top {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.vpc-session-type {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--vpc-line);
    color: var(--vpc-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vpc-session-when,
.vpc-session-location {
    display: block;
    margin-top: 5px;
    color: var(--vpc-muted);
    font-size: 12px;
}

.vpc-session-location {
    color: var(--vpc-orange-deep);
}

.vpc-session-description {
    margin: 8px 0 0;
    color: var(--vpc-text);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .vpc-event-bar-sessions {
        display: none;
    }
}


/* === Étape 4.3 : gestion du programme par le propriétaire === */
.vpc-session-manager {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--vpc-line);
}

.vpc-session-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.vpc-session-manager-head h3 {
    margin: 0;
    color: var(--vpc-ink);
    font-size: 18px;
}

.vpc-primary-button,
.vpc-secondary-button {
    min-height: 38px;
    border-radius: 9px;
    padding: 0 14px;
    font-weight: 800;
    font-size: 12px;
}

.vpc-primary-button {
    border: 1px solid var(--vpc-orange);
    background: var(--vpc-orange);
    color: #fff;
}

.vpc-primary-button:hover { background: var(--vpc-orange-deep); }
.vpc-primary-button:disabled { opacity: .55; cursor: wait; }

.vpc-secondary-button {
    border: 1px solid var(--vpc-line);
    background: #fff;
    color: var(--vpc-text);
}

.vpc-session-form {
    background: #fafafa;
    border: 1px solid var(--vpc-line);
    border-radius: 13px;
    padding: 16px;
}

.vpc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vpc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.vpc-field-wide { grid-column: 1 / -1; }
.vpc-field > span {
    color: var(--vpc-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vpc-field input,
.vpc-field select,
.vpc-field textarea {
    width: 100%;
    border: 1px solid #dcdfe3;
    background: #fff;
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--vpc-ink);
    outline: none;
}

.vpc-field input:focus,
.vpc-field select:focus,
.vpc-field textarea:focus {
    border-color: var(--vpc-orange);
    box-shadow: 0 0 0 3px rgba(255,90,31,.09);
}

.vpc-checkbox-field {
    flex-direction: row;
    align-items: center;
    padding-top: 23px;
}

.vpc-checkbox-field input { width: auto; }
.vpc-checkbox-field span { text-transform: none; font-size: 12px; }

.vpc-time-field.is-disabled { opacity: .45; }

.vpc-location-details {
    margin-top: 14px;
    border-top: 1px solid var(--vpc-line);
    padding-top: 12px;
}

.vpc-location-details summary {
    cursor: pointer;
    color: var(--vpc-ink);
    font-weight: 800;
    font-size: 12px;
}

.vpc-location-details > p {
    color: var(--vpc-muted);
    font-size: 11px;
    line-height: 1.5;
}

.vpc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.vpc-form-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff0f0;
    color: #a32626;
    font-size: 12px;
    font-weight: 700;
}

.vpc-session-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vpc-session-actions button {
    border: 0;
    background: transparent;
    color: var(--vpc-muted);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 5px;
}

.vpc-session-actions button:hover { color: var(--vpc-orange-deep); }
.vpc-session-actions button:last-child:hover { color: #b42318; }

@media (max-width: 640px) {
    .vpc-session-manager-head {
        align-items: stretch;
        flex-direction: column;
    }
    .vpc-form-grid { grid-template-columns: 1fr; }
    .vpc-field-wide { grid-column: auto; }
    .vpc-checkbox-field { padding-top: 0; }
    .vpc-form-actions { flex-direction: column-reverse; }
    .vpc-primary-button, .vpc-secondary-button { width: 100%; }
    .vpc-session-actions { width: 100%; margin: 5px 0 0; }
}


/* === Étape 4.3.1 : modification visible de l'événement === */

.vpc-event-bar.is-manageable {
    padding-right: 7px;
}

.vpc-event-bar-edit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255,255,255,.78);
    color: var(--vpc-orange-deep);
    font-size: 13px;
    font-weight: 800;
    margin-left: auto;
}

.vpc-event-bar-edit:hover {
    background: #fff;
}

.vpc-agenda-side {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
}

.vpc-agenda-edit {
    border: 1px solid var(--vpc-line);
    background: #fff;
    color: var(--vpc-orange-deep);
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 800;
}

.vpc-agenda-edit:hover {
    border-color: var(--vpc-orange);
    background: var(--vpc-orange-soft);
}

.vpc-modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-right: 42px;
}

.vpc-modal-title-row .vpc-modal-title {
    margin-right: 0;
}

.vpc-modal-edit-button {
    flex: 0 0 auto;
    margin-top: 4px;
}

.vpc-event-manager {
    margin: 18px 0 22px;
    padding: 16px;
    border: 1px solid #ffd8c8;
    background: #fffaf7;
    border-radius: 13px;
}

.vpc-event-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.vpc-event-manager-head h3 {
    margin: 0;
    color: var(--vpc-ink);
    font-size: 17px;
}

.vpc-event-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3d9cc;
}

@media (max-width: 640px) {
    .vpc-event-bar-edit {
        display: none;
    }

    .vpc-modal-title-row {
        display: block;
        padding-right: 36px;
    }

    .vpc-modal-edit-button {
        margin: 8px 0 0;
    }

    .vpc-event-manager-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* === Correctif enregistrement événement 4.3.2 === */
.vpc-event-time-field[hidden] {
    display: none !important;
}

.vpc-event-manager-head {
    min-height: 38px;
}

.vpc-event-form-error:not([hidden]) {
    margin-top: 12px;
}


/* === Étape 4.5 : création d'événement + UX édition === */

.vpc-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vpc-add-event-button {
    min-height: 40px;
    white-space: nowrap;
}

.vpc-create-intro {
    margin: 0 0 18px;
    color: var(--vpc-muted);
    line-height: 1.5;
    font-size: 13px;
}

.vpc-create-event-form {
    margin-top: 6px;
}

.vpc-event-manager[hidden] {
    display: none !important;
}

.vpc-event-manager:not([hidden]) {
    margin-top: 18px;
}

.vpc-event-manager .vpc-event-form {
    margin-top: 14px;
}

@media (max-width: 820px) {
    .vpc-toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .vpc-toolbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .vpc-add-event-button {
        width: 100%;
    }
}


/* === Étape 4.5.1 : UX création / programme === */

.vpc-create-time-field[hidden] {
    display: none !important;
}

.vpc-sessions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vpc-sessions-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vpc-sessions-title h3 {
    margin: 0;
}

.vpc-add-session-inline {
    flex: 0 0 auto;
}

.vpc-program-empty {
    padding: 16px 14px;
    border: 1px dashed var(--vpc-line);
    border-radius: 10px;
    color: var(--vpc-muted);
    font-size: 12px;
    background: #fafafa;
}

.vpc-session-manager {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .vpc-sessions-head {
        align-items: stretch;
        flex-direction: column;
    }

    .vpc-add-session-inline {
        width: 100%;
    }
}


/* === Étape 4.6 : géolocalisation / proximité === */

.vpc-nearby-button {
    min-height: 40px;
    white-space: nowrap;
}

.vpc-geo-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.vpc-geo-status {
    color: var(--vpc-muted);
    font-size: 11px;
    line-height: 1.4;
}

.vpc-proximity-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef8f2;
    color: #167647;
    font-size: 11px;
}

.vpc-proximity-ready strong {
    color: #12633c;
}

.vpc-nearby-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
}

.vpc-nearby-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--vpc-line);
    border-radius: 12px;
    background: #fff;
}

.vpc-nearby-distance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 10px;
    background: var(--vpc-orange-soft);
    color: var(--vpc-orange-deep);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.vpc-nearby-content {
    min-width: 0;
}

.vpc-nearby-content button {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--vpc-ink);
    text-align: left;
    font-size: 14px;
    font-weight: 800;
}

.vpc-nearby-content button:hover {
    color: var(--vpc-orange);
}

.vpc-nearby-content small {
    display: block;
    margin-top: 3px;
    color: var(--vpc-muted);
}

.vpc-nearby-state {
    display: inline-flex;
    margin-bottom: 5px;
    color: var(--vpc-orange-deep);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.vpc-nearby-meta {
    margin-top: 7px;
    color: var(--vpc-muted);
    font-size: 11px;
    line-height: 1.45;
}

.vpc-nearby-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    padding: 30px 20px;
    border: 1px dashed var(--vpc-line);
    border-radius: 12px;
    text-align: center;
    color: var(--vpc-muted);
}

.vpc-nearby-empty strong {
    color: var(--vpc-ink);
}

@media (max-width: 640px) {
    .vpc-nearby-button {
        width: 100%;
    }

    .vpc-nearby-item {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 11px;
    }

    .vpc-nearby-distance {
        min-height: 46px;
        font-size: 11px;
    }

    .vpc-proximity-ready {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* === Étape 4.12 : alertes automatiques Web === */

.vpc-auto-alerts-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.vpc-auto-alerts-button.is-active {
    border-color: var(--vpc-orange);
    background: var(--vpc-orange-soft);
    color: var(--vpc-orange-deep);
}

.vpc-auto-alerts-status {
    margin: 0 18px 14px;
    padding: 10px 12px;
    border: 1px solid var(--vpc-line);
    border-radius: 10px;
    background: #fafafa;
    color: var(--vpc-muted);
    font-size: 12px;
    line-height: 1.45;
}

.vpc-auto-alerts-status[data-state="active"] {
    border-color: #cce7d7;
    background: #f0faf4;
    color: #167a45;
}

.vpc-auto-alerts-status[data-state="sent"] {
    border-color: #ffd4c5;
    background: var(--vpc-orange-soft);
    color: var(--vpc-orange-deep);
}

.vpc-auto-alerts-status[data-state="warning"] {
    border-color: #ead8a8;
    background: #fffaf0;
    color: #82621b;
}

.vpc-auto-alerts-status[data-state="error"] {
    border-color: #efc4c4;
    background: #fff4f4;
    color: #a33b3b;
}

.vpc-auto-alerts-status[data-state="off"] {
    color: var(--vpc-muted);
}

@media (max-width: 640px) {
    .vpc-auto-alerts-button,
    .vpc-nearby-button {
        flex: 1 1 auto;
    }

    .vpc-auto-alerts-status {
        margin-left: 12px;
        margin-right: 12px;
    }
}


/* === Étape 4.13 : deeplink notification / session ciblée === */

.vpc-session.is-notification-target {
    position: relative;
    border: 2px solid var(--vpc-orange);
    background: var(--vpc-orange-soft);
    box-shadow: 0 0 0 4px rgba(255, 92, 36, 0.08);
}

.vpc-session-alert-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--vpc-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.vpc-empty .vpc-secondary-button {
    margin-top: 14px;
}
