/* JAOS — Création événement (wizard compact, style CRM) */

.ja-event-create-wizard-page .fi-header {
    margin-bottom: 0.35rem;
}

.ja-event-create-wizard-page .fi-header-subheading {
    max-width: 42rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.ja-event-create-wizard-page .fi-main {
    padding-top: 0.5rem;
}

.ja-event-create-wizard-page .fi-fo-wizard {
    gap: 0.65rem;
}

.ja-event-create-wizard-page .fi-fo-wizard-header {
    margin-bottom: 0.35rem;
}

.ja-event-create-wizard-page .fi-fo-wizard-header-step {
    padding: 0.35rem 0.5rem;
}

.ja-event-create-wizard-page .fi-fo-wizard-step {
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.55);
}

.ja-event-create-wizard-page .fi-fo-field-wrp {
    margin-bottom: 0.45rem;
}

.ja-event-create-wizard-page .fi-fo-toggle-buttons {
    gap: 0.4rem;
}

.ja-event-create-wizard-page .fi-fo-toggle-buttons-btn {
    min-height: 2.35rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
    border-radius: 0.65rem;
}

.ja-event-create-wizard-page .fi-fo-wizard-footer,
.ja-event-create-wizard-page .fi-sc-wizard-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.ja-event-create-wizard-page .fi-sc-wizard-footer > div:nth-child(1),
.ja-event-create-wizard-page .fi-sc-wizard-footer > div:nth-child(2) {
    margin-right: auto;
}

.ja-event-create-wizard-page .fi-sc-wizard-footer > div:nth-child(3),
.ja-event-create-wizard-page .fi-sc-wizard-footer > div:nth-child(4) {
    margin-left: 0;
}

/* Progress */
.ja-event-wizard-progress {
    margin-bottom: 0.35rem;
}

.ja-event-wizard-progress__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.4rem;
}

.ja-event-wizard-progress__step {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

.ja-event-wizard-progress__percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
}

.ja-event-wizard-progress__track {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.ja-event-wizard-progress__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c4dff, #a78bfa);
}

/* Sidebar contact + summary */
.ja-event-wizard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.ja-event-wizard-contact-preview {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ja-event-wizard-contact-preview__label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.ja-event-wizard-contact-card {
    padding: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.12), rgba(15, 23, 42, 0.55));
}

.ja-event-wizard-contact-card__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.ja-event-wizard-contact-card__avatar {
    flex-shrink: 0;
}

.ja-event-wizard-contact-card__identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ja-event-wizard-contact-card__identity strong {
    font-size: 0.98rem;
    color: #f8fafc;
    overflow-wrap: anywhere;
}

.ja-event-wizard-contact-card__type {
    font-size: 0.76rem;
    color: #c4b5fd;
}

.ja-event-wizard-contact-card__lines,
.ja-event-wizard-contact-card__stats {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.ja-event-wizard-contact-card__lines li,
.ja-event-wizard-contact-card__stats li {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.ja-event-wizard-contact-card__lines li {
    grid-template-columns: 1.1rem minmax(0, 1fr);
}

.ja-event-wizard-contact-card__stats {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.ja-event-wizard-contact-card__stats strong {
    color: #f1f5f9;
    font-weight: 700;
    text-align: right;
}

.ja-event-wizard-contact-card__secondary {
    margin-top: 0.7rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.ja-event-wizard-contact-card__secondary-title {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e9d5ff;
}

.ja-event-wizard-contact-card__secondary-name {
    margin: 0 0 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #f8fafc;
}

.ja-event-wizard-contact-card__link {
    display: inline-flex;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    font-weight: 650;
    color: #c4b5fd;
    text-decoration: none;
}

.ja-event-wizard-contact-card__link:hover {
    color: #ddd6fe;
}

.ja-event-wizard-contact-preview__empty {
    padding: 1rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    color: #64748b;
    font-size: 0.84rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.35);
}

.ja-event-wizard-summary {
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.45);
}

.ja-event-wizard-summary__list {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.ja-event-wizard-summary__list > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.ja-event-wizard-summary__list dt {
    margin: 0;
    color: #64748b;
}

.ja-event-wizard-summary__list dd {
    margin: 0;
    color: #e2e8f0;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.ja-event-wizard-section-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.ja-event-wizard-add-discount {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.35rem 0.65rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #a78bfa;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.ja-event-wizard-add-discount:hover {
    color: #c4b5fd;
    background: rgba(124, 77, 255, 0.08);
}

/* Prestation cards */
.ja-event-wizard-prestations {
    margin-top: 0.15rem;
}

.ja-event-wizard-prestations__scroller {
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.ja-event-wizard-prestations__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.ja-event-wizard-prestation-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-height: 6.5rem;
    padding: 0.85rem 0.8rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ja-event-wizard-prestation-card:hover {
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-1px);
}

.ja-event-wizard-prestation-card--selected {
    border-color: rgba(167, 139, 250, 0.75);
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.34), rgba(91, 33, 182, 0.22));
    box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.25), 0 10px 24px rgba(76, 29, 149, 0.18);
}

.ja-event-wizard-prestation-card__icon {
    font-size: 1.35rem;
    line-height: 1;
}

.ja-event-wizard-prestation-card__title {
    font-size: 0.92rem;
    font-weight: 750;
}

.ja-event-wizard-prestation-card__desc {
    font-size: 0.74rem;
    line-height: 1.35;
    color: #94a3b8;
}

.ja-event-wizard-prestation-card--selected .ja-event-wizard-prestation-card__desc {
    color: #ddd6fe;
}

@media (min-width: 1024px) {
    .ja-event-create-wizard-page .fi-fo-wizard-step .fi-sc-grid {
        gap: 0.75rem 1rem;
    }
}

@media (max-width: 1023px) {
    .ja-event-create-wizard-page .fi-fo-wizard-step .fi-sc-grid {
        display: flex;
        flex-direction: column;
    }

    .ja-wiz-order-contact {
        order: 1;
    }

    .ja-wiz-order-preview {
        order: 2;
    }

    .ja-wiz-order-prestations {
        order: 3;
    }
}

@media (max-width: 767px) {
    .ja-event-create-wizard-page .fi-fo-wizard-step {
        padding: 0.55rem 0.6rem;
    }

    .ja-event-wizard-prestations__grid {
        display: flex;
        width: max-content;
        min-width: 100%;
        gap: 0.55rem;
    }

    .ja-event-wizard-prestation-card {
        width: 10.5rem;
        flex: 0 0 auto;
        min-height: 7rem;
    }

    .ja-event-wizard-contact-preview {
        min-height: auto;
    }
}

.ja-equipment-packs-wizard__intro,
.ja-equipment-packs-event__hint {
    margin: 0 0 0.85rem;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.45;
}

.ja-equipment-packs-wizard__section-label,
.ja-equipment-packs-event__title {
    margin: 0 0 0.35rem;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ja-equipment-packs-wizard__loose {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.ja-equipment-packs-wizard__empty,
.ja-equipment-packs-event__empty {
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 0.65rem;
    color: #94a3b8;
    font-size: 0.86rem;
}

.ja-equipment-packs-wizard__empty-hint {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
}

.ja-equipment-packs-wizard__grid,
.ja-equipment-packs-event__grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .ja-equipment-packs-wizard__grid,
    .ja-equipment-packs-event__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ja-equipment-pack-card {
    border: 1px solid rgba(124, 77, 255, 0.18);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42));
    padding: 0.8rem 0.9rem;
}

.ja-equipment-pack-card--selected {
    border-color: rgba(124, 77, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.12);
}

.ja-equipment-pack-card--blocked {
    border-color: rgba(245, 158, 11, 0.45);
}

.ja-equipment-pack-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.ja-equipment-pack-card__toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.ja-equipment-pack-card__toggle strong {
    display: block;
    font-size: 0.95rem;
}

.ja-equipment-pack-card__toggle small {
    display: block;
    margin-top: 0.15rem;
    color: #94a3b8;
    font-size: 0.76rem;
}

.ja-equipment-pack-card__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(167, 139, 250, 0.55);
    color: #c4b5fd;
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ja-equipment-pack-card--selected .ja-equipment-pack-card__check {
    background: rgba(124, 77, 255, 0.25);
}

.ja-equipment-pack-card__status {
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ja-equipment-pack-card__status--ok {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.ja-equipment-pack-card__status--warn {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.ja-equipment-pack-card__preview {
    margin: 0.55rem 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
}

.ja-equipment-pack-card__items {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.ja-equipment-pack-card__item {
    border-radius: 0.55rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.8rem;
}

.ja-equipment-pack-card__item--ok {
    background: rgba(34, 197, 94, 0.08);
    color: #d1fae5;
}

.ja-equipment-pack-card__item--ko {
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
}

.ja-equipment-pack-card__item-main {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.ja-equipment-pack-card__item-meta {
    color: #94a3b8;
    font-size: 0.72rem;
    white-space: nowrap;
}

.ja-equipment-pack-card__item-alert {
    margin: 0.35rem 0 0;
    font-size: 0.76rem;
    color: #fca5a5;
}

.ja-equipment-pack-card__substituted {
    color: #c4b5fd;
    font-style: normal;
    font-size: 0.72rem;
}

.ja-equipment-pack-card__replace {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.4rem;
    font-size: 0.74rem;
    color: #cbd5e1;
}

.ja-equipment-pack-card__replace select {
    width: 100%;
    border-radius: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    padding: 0.35rem 0.45rem;
    font-size: 0.78rem;
}

.ja-equipment-pack-card__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ja-equipment-pack-card__remove {
    border: 0;
    background: transparent;
    color: #fca5a5;
    font-size: 0.74rem;
    cursor: pointer;
    text-decoration: underline;
}

.ja-equipment-pack-card__forced {
    margin-left: 0.35rem;
    color: #fcd34d;
    font-size: 0.72rem;
}

.ja-equipment-packs-event {
    margin-bottom: 1rem;
}
