.bl-bwall-stage-calendars {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 1.5rem 0;
    font-family: inherit;
    position: relative;
    z-index: 1;
}

/* Neutralise le CSS thème `header { position: absolute }` à l'intérieur du calendrier */
.bl-bwall-stage-calendars header {
    position: static !important;
    top: auto !important;
    width: auto !important;
    z-index: auto !important;
    transition: none !important;
}

.bl-bwall-stage-calendar-club {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.bl-bwall-stage-calendar-club__title {
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f6 100%);
    border-bottom: 1px solid #e2e8f0;
}

.bl-bwall-stage-calendar-week {
    padding: 1.25rem 1.5rem 1.5rem;
}

.bl-bwall-stage-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.bl-bwall-stage-calendar-nav__range {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    flex: 1;
    min-width: 12rem;
}

.bl-bwall-stage-calendar-nav__btn {
    appearance: none;
    border: 1px solid #179ba7;
    background: #179ba7;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.bl-bwall-stage-calendar-nav__btn:hover:not(:disabled) {
    background: #138d98;
    border-color: #138d98;
    color: #fff;
    transform: translateY(-1px);
}

.bl-bwall-stage-calendar-nav__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Bandeau des activités au-dessus des créneaux */
.bl-bwall-stage-calendar-periods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bl-bwall-stage-calendar-periods__all {
    width: 100%;
}

.bl-bwall-stage-calendar-periods__all .bl-bwall-stage-period-card {
    flex: 1 1 100%;
    max-width: none;
}

.bl-bwall-stage-calendar-periods__activities {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.bl-bwall-stage-calendar-periods__activities::-webkit-scrollbar {
    height: 5px;
}

.bl-bwall-stage-calendar-periods__activities::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.bl-bwall-stage-calendar-periods__activities .bl-bwall-stage-period-card {
    flex: 0 0 auto;
    min-width: 11.5rem;
    max-width: 16rem;
}

.bl-bwall-stage-period-card {
    --stage-color: #ffffff;
    position: relative;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    border-radius: 10px;
    border: 2px solid var(--stage-color);
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    overflow: hidden;
}

.bl-bwall-stage-period-card.bl-bwall-stage-color--neutral {
    border-color: #e2e8f0;
}

.bl-bwall-stage-period-card:hover,
.bl-bwall-stage-period-card:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.bl-bwall-stage-period-card.is-active {
    box-shadow: 0 0 0 2px var(--stage-color);
}

.bl-bwall-stage-period-card.bl-bwall-stage-color--neutral.is-active {
    box-shadow: 0 0 0 2px #cbd5e1;
}

.bl-bwall-stage-period-card--all {
    --stage-color: #64748b;
    border-color: #64748b;
}

.bl-bwall-stage-period-card--all.is-active {
    border-color: #64748b;
    box-shadow: 0 0 0 2px #64748b, 0 4px 14px rgba(100, 116, 139, 0.18);
}

.bl-bwall-stage-period-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--stage-color);
}

.bl-bwall-stage-period-card.bl-bwall-stage-color--neutral .bl-bwall-stage-period-card__accent {
    background: #e2e8f0;
}

.bl-bwall-stage-period-card__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.bl-bwall-stage-period-card__dates {
    margin: 0 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--stage-color);
}

.bl-bwall-stage-period-card__price {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.bl-bwall-stage-period-card__meta {
    margin: 0;
    font-size: 0.72rem;
    color: #64748b;
}

/* Grille hebdomadaire alignée par tranche horaire (lignes = heures, colonnes = jours) */
.bl-bwall-week-matrix {
    display: grid;
    grid-template-columns: 3.25rem repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: stretch;
}

.bl-bwall-week-matrix__corner {
    min-height: 2.5rem;
}

.bl-bwall-week-matrix__day-head {
    padding: 0.5rem 0.35rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #475569;
    background: #eef2f7;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
}

.bl-bwall-week-matrix__day-head--today {
    background: #179ba7;
    color: #fff;
    border-color: #179ba7;
}

.bl-bwall-week-matrix__time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    padding: 0.25rem 0.2rem;
    background: #e2e8f0;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
}

.bl-bwall-week-matrix__cell {
    min-height: 4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
}

.bl-bwall-week-matrix__no-slots {
    grid-column: 1 / -1;
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.bl-bwall-time-slot {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bl-bwall-time-slot--cell {
    min-height: 100%;
    flex: 1;
}

.bl-bwall-time-slot--cell.bl-bwall-time-slot--empty .bl-bwall-time-slot__stages {
    min-height: 2.5rem;
    flex: 1;
    border-radius: 6px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(226, 232, 240, 0.45) 4px,
        rgba(226, 232, 240, 0.45) 8px
    );
}

.bl-bwall-time-slot__stages {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

/* Bloc stage cliquable dans une cellule */
.bl-bwall-stage-block {
    --stage-color: #ffffff;
    --stage-highlight-color: #64748b;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--stage-color);
    border-top: 3px solid var(--stage-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    overflow: hidden;
}

.bl-bwall-stage-block.bl-bwall-stage-color--neutral {
    border-color: #e2e8f0;
    border-top-color: #cbd5e1;
}

.bl-bwall-stage-block:hover:not(.bl-bwall-stage-block--full),
.bl-bwall-stage-block:focus:not(.bl-bwall-stage-block--full) {
    outline: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.bl-bwall-stage-block--full {
    cursor: default;
    opacity: 0.88;
}

.bl-bwall-stage-block--selected {
    box-shadow: 0 0 0 2px var(--stage-highlight-color), 0 4px 14px color-mix(in srgb, var(--stage-highlight-color) 28%, transparent);
}

.bl-bwall-stage-block--selected .bl-bwall-stage-block__head {
    background: color-mix(in srgb, var(--stage-highlight-color) 8%, #fff);
}

.bl-bwall-stage-block__session--highlighted {
    background: color-mix(in srgb, var(--stage-highlight-color) 6%, #fff);
    border-radius: 6px;
    margin: 0 -0.2rem;
    padding: 0.35rem 0.2rem;
    border-bottom-color: color-mix(in srgb, var(--stage-highlight-color) 20%, #fff);
}

.bl-bwall-stage-block--selected .bl-bwall-stage-block__session--highlighted:last-child {
    border-bottom: none;
}

.bl-bwall-stage-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    background: #fff;
    border-bottom: 1px solid var(--stage-color);
}

.bl-bwall-stage-block.bl-bwall-stage-color--neutral .bl-bwall-stage-block__head {
    border-bottom-color: #e2e8f0;
}

.bl-bwall-stage-block__name {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--stage-color);
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.bl-bwall-stage-block.bl-bwall-stage-color--neutral .bl-bwall-stage-block__name {
    color: #475569;
}

.bl-bwall-stage-color--neutral .bl-bwall-stage-block__name,
.bl-bwall-stage-color--neutral .bl-bwall-stage-period-card__dates {
    color: #475569;
}

.bl-bwall-stage-block__price {
    font-size: 0.62rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.bl-bwall-stage-block__count {
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    background: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.bl-bwall-stage-block__sessions {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.45rem 0.45rem;
}

.bl-bwall-stage-block__session {
    padding: 0.35rem 0;
    border-bottom: 1px dashed #e8edf3;
    font-size: 0.65rem;
    line-height: 1.35;
}

.bl-bwall-stage-block__session:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bl-bwall-stage-block__session--full {
    background: color-mix(in srgb, #94a3b8 6%, #fff);
}

.bl-bwall-stage-block__session-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.35rem;
}

.bl-bwall-stage-block__session-row--meta {
    margin-top: 0.15rem;
}

.bl-bwall-stage-block__session-date {
    font-weight: 700;
    color: #0f172a;
}

.bl-bwall-stage-block__session-end {
    font-weight: 600;
    color: #64748b;
}

.bl-bwall-stage-block__session-label {
    color: #475569;
    flex: 1;
    min-width: 0;
}

.bl-bwall-stage-block__session-capacity {
    font-weight: 600;
    color: #334155;
}

.bl-bwall-stage-block__session-full {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #b91c1c;
    background: #fee2e2;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.bl-bwall-stage-block__session-badge {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--stage-color);
    background: #fff;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    border: 1px solid var(--stage-color);
}

.bl-bwall-stage-block.bl-bwall-stage-color--neutral .bl-bwall-stage-block__session-badge {
    color: #475569;
    border-color: #e2e8f0;
}

.bl-bwall-stage-block__session-badge--selected {
    color: var(--stage-highlight-color) !important;
    border-color: var(--stage-highlight-color) !important;
    background: color-mix(in srgb, var(--stage-highlight-color) 10%, #fff) !important;
    font-weight: 800;
}

.bl-bwall-stage-calendar-loading,
.bl-bwall-stage-calendar-error,
.bl-bwall-stage-calendar-empty {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 1rem;
}

.bl-bwall-stage-calendar-error {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

/* Défilement horizontal tablette / petit desktop */
.bl-bwall-week-matrix-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem 0.5rem;
}

.bl-bwall-week-matrix-scroll .bl-bwall-week-matrix {
    min-width: 52rem;
}

.bl-bwall-week-matrix-scroll::-webkit-scrollbar {
    height: 6px;
}

.bl-bwall-week-matrix-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* Vue mobile : liste par jour */
.bl-bwall-week-mobile {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
}

.bl-bwall-week-mobile__day {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.bl-bwall-week-mobile__day--today {
    border-color: #179ba7;
    box-shadow: 0 0 0 1px rgba(23, 155, 167, 0.25);
}

.bl-bwall-week-mobile__day-head {
    margin: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    background: #eef2f7;
    border-bottom: 1px solid #e2e8f0;
    text-transform: capitalize;
}

.bl-bwall-week-mobile__day--today .bl-bwall-week-mobile__day-head {
    background: #179ba7;
    color: #fff;
    border-bottom-color: #179ba7;
}

.bl-bwall-week-mobile__empty {
    margin: 0;
    padding: 0.85rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.bl-bwall-week-mobile__slots {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem;
}

.bl-bwall-week-mobile__slot {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bl-bwall-week-mobile__time {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    padding: 0.2rem 0.45rem;
    background: #e2e8f0;
    border-radius: 6px;
    align-self: flex-start;
}

.bl-bwall-week-mobile__events .bl-bwall-time-slot--cell {
    min-height: auto;
}

.bl-bwall-week-mobile__events .bl-bwall-stage-block {
    font-size: 1rem;
}

.bl-bwall-week-mobile__events .bl-bwall-stage-block__name,
.bl-bwall-week-mobile__events .bl-bwall-stage-block__session-date,
.bl-bwall-week-mobile__events .bl-bwall-stage-block__session-capacity {
    font-size: 0.75rem;
}

@media (max-width: 767px) {
    .bl-bwall-stage-calendars {
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .bl-bwall-stage-calendar-club__title {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .bl-bwall-stage-calendar-week {
        padding: 1rem;
    }

    .bl-bwall-week-matrix-scroll {
        display: none;
    }

    .bl-bwall-week-mobile {
        display: flex;
    }

    .bl-bwall-stage-calendar-periods__activities .bl-bwall-stage-period-card {
        min-width: 10rem;
        max-width: 14rem;
    }

    .bl-bwall-stage-calendar-nav__btn {
        width: 100%;
        text-align: center;
    }

    .bl-bwall-stage-calendar-nav__range {
        min-width: 0;
        font-size: 0.95rem;
    }

    .bl-bwall-stage-block__head {
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bl-bwall-stage-calendar-week {
        padding: 1rem;
    }

    .bl-bwall-week-matrix-scroll .bl-bwall-week-matrix {
        min-width: 44rem;
    }
}

@media (max-width: 900px) {
    .bl-bwall-stage-calendar-periods__activities .bl-bwall-stage-period-card {
        min-width: 9.5rem;
    }
}

@media (max-width: 520px) {
    .bl-bwall-stage-calendar-nav {
        flex-direction: column;
    }

    .bl-bwall-stage-calendar-nav__range {
        order: -1;
    }
}

.bl-bwall-stage-selection {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bl-bwall-stage-selection__alert {
    background: linear-gradient(135deg, #f0fbfc 0%, #fffbeb 100%);
    border: 1px solid #c7eef1;
    border-left: 4px solid #179ba7;
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.bl-bwall-stage-selection__alert-title {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.bl-bwall-stage-selection__alert-text {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 0.92rem;
}

.bl-bwall-stage-selection__card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
}

.bl-bwall-stage-selection__title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.bl-bwall-stage-selection__meta {
    display: grid;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    color: #374151;
    font-size: 0.92rem;
}

.bl-bwall-stage-selection__meta p {
    margin: 0;
}

.bl-bwall-stage-selection__sessions-title {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    color: #0f172a;
}

.bl-bwall-stage-selection__sessions {
    margin: 0;
    padding-left: 1.15rem;
    color: #475569;
    font-size: 0.9rem;
}

.bl-bwall-stage-selection__sessions li {
    margin-bottom: 0.3rem;
}

.bl-bwall-stage-selection__session-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #179ba7;
    background: #e8f7f9;
    border: 1px solid #179ba7;
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.bl-bwall-insurance {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.bl-bwall-insurance__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: #0f172a;
}

.bl-bwall-insurance__intro,
.bl-bwall-insurance__product,
.bl-bwall-insurance-empty,
.bl-bwall-insurance-error,
.bl-bwall-insurance-loading {
    margin: 0 0 1rem;
    color: #475569;
}

.bl-bwall-insurance-member {
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
}

.bl-bwall-insurance-member__name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #0f172a;
}

.bl-bwall-insurance-member__stage {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.bl-bwall-insurance-member__label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    color: #1e293b;
}

.bl-bwall-insurance-member__checkbox {
    margin-top: 0.2rem;
}

.bl-bwall-insurance__total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #0f172a;
    color: #0f172a;
}

/* GP Nested Forms — même rendu calendrier que le formulaire principal */
.gpnf-modal .bl-bwall-stage-calendars {
    margin: 1rem 0;
}

.gpnf-modal .bl-bwall-stage-calendars header {
    position: static !important;
    top: auto !important;
    width: auto !important;
    z-index: auto !important;
    transition: none !important;
}
