:root {
    --bc-ink: #1d2b22;
    --bc-muted: #5d6f63;
    --bc-surface: #ffffff;
    --bc-panel: #ffffff;
    --bc-line: #e4e8e3;
    --bc-brand: #7ec32f;
    --bc-brand-strong: #5b9820;
    --bc-shadow: none;
}

.CarteBlanche {
    margin: 0;
}

.Page {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.bc-hero {
    padding: 8px 0 16px;
    margin-bottom: 8px;
}

.DescPrinc {
    margin: 10px 0 0;
    color: var(--bc-muted);
    line-height: 1.5;
}

.bc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.bc-steps.bc-steps-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bc-steps.bc-steps-4.bc-steps-guest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bc-step {
    border: 0;
    border-radius: 6px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #3f4f43;
    background: #f3f7ef;
    font-size: 14px;
    font-weight: 600;
}

.bc-step-index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--bc-brand-strong);
    border: 1px solid rgba(126, 195, 47, 0.5);
    font-size: 12px;
}

.bc-step-active {
    background: var(--bc-brand);
    color: #f5fff9;
}

.bc-step-active .bc-step-index {
    background: rgba(255, 255, 255, 0.25);
    border-color: transparent;
    color: #fff;
}

.bc-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.bc-layout {
    display: block;
}

.bc-form {
    padding: 10px 0 0;
}

.bc-step-panel {
    display: none;
}

.bc-step-panel-active {
    display: block;
    animation: bc-fade-up 220ms ease;
}

@keyframes bc-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bc-panel-title {
    margin: 0 0 8px;
    color: var(--bc-ink);
    font-size: 25px;
    line-height: 1.2;
}

.InfoPrinc {
    margin: 0 0 25px;
    color: var(--bc-muted);
    font-size: 18px;
}

.bc-fonds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}

.bc-fond-item {
    border-radius: 8px;
    overflow: hidden;
    border: 0;
    cursor: pointer;
    position: relative;
    min-height: 90px;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.bc-fond-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bc-fond-item:hover {
    transform: none;
    box-shadow: none;
}

.bc-fond-item.selected {
    box-shadow: 0 0 0 2px rgba(126, 195, 47, 0.65);
}

.bc-step2-choice,
.bc-step2-login,
.bc-step2-register {
    margin-top: 10px;
}

.bc-choice-card {
    border-radius: 0;
    background: transparent;
    border: 0;
}

.bc-step2-choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bc-hint {
    margin: -6px 0 12px;
    color: var(--bc-muted);
    font-size: 14px;
}

.bc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bc-full {
    grid-column: 1 / -1;
}

.bc-fields textarea.front-field-input {
    min-height: 96px;
    resize: vertical;
}

.bcBeneficiaryFields {
    margin-top: 8px;
}

.bc-payment-switch {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    background: transparent;
    padding: 6px;
    border-radius: 0;
    border: 0;
    margin-bottom: 18px;
}

.bc-pay-mode {
    border: 1px solid #dfe6da;
    border-radius: 8px;
    background: #fff;
    color: #3f4f43;
    font-weight: 600;
    padding: 9px 14px;
    cursor: pointer;
}

.bc-pay-mode.is-active {
    background: #f3f9ee;
    border-color: var(--bc-brand);
    color: #1f3328;
    box-shadow: none;
}

.bc-categories {
    margin-top: 8px;
}

.bc-category {
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.bc-cat-toggle,
.bc-prod-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 6px;
}

.bc-prod-toggle {
    width: 100%;
    text-align: left;
    padding: 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bc-toggle-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-toggle-arrow {
    opacity: 0.66;
    transform: rotate(0deg);
    transition: transform 150ms ease;
}

.bc-cat-toggle[aria-expanded="true"] .bc-toggle-arrow,
.bc-prod-toggle[aria-expanded="true"] .bc-toggle-arrow {
    transform: rotate(90deg);
}

.bc-cat-products {
    display: none;
    padding: 10px 12px;
    border-left: 3px solid #eef3e6;
    background: #fff;
}

.bc-prod {
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.bc-prod-panel {
    display: none;
    padding: 10px;
}

.bc-prod-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
}

.bc-prod-media img,
.bc-prod-head img {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.bc-prod-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.bc-prod-title {
    font-weight: 700;
    color: var(--bc-ink);
}

.bc-prod-variants {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-variant {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafafa;
    border: 0;
    border-radius: 0;
    padding: 8px 10px;
}

.bc-variant-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
    white-space: normal;
    overflow: visible;
}

.bc-variant-price {
    margin-left: auto;
    white-space: nowrap;
    font-weight: 700;
    color: var(--bc-brand-strong);
}

.bc-resa-option {
    margin-top: 20px;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-self: flex-start;
}

.bc-resa-help {
    margin: 0;
    color: var(--bc-muted);
    width: 100%;
}

.bc-resa-actions {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    order: 2;
}

.bc-resa-summary {
    margin-top: 0;
    font-size: 14px;
    order: 1;
    flex: 1;
    min-width: 280px;
    padding: 10px 12px;
    background: #f3f9ee;
    border-left: 3px solid var(--bc-brand);
    border-radius: 6px;
}

.bc-resa-summary .PanierItem__resaStatus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bc-resa-summary .PanierItem__reservation {
    font-size: 1.1em;
    color: rgba(0, 0, 0, 0.72);
}

.bc-resa-summary .PanierItem__resaClear {
    border: 0;
    background: #fff;
    color: #7a7f89;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.PanierItem__resaBtn {
    margin: 0;
}

.bc-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bc-final-actions {
    align-items: center;
}

#bcDeferredSubmit {
    margin-left: auto;
}

.bc-side {
    padding: 20px;
    position: sticky;
    top: 80px;
}

.bc-side h3 {
    margin: 0 0 12px;
    color: var(--bc-ink);
    font-size: 20px;
}

.bc-summary-visual {
    width: 100%;
    height: 160px;
    border-radius: 6px;
    background: #f6f7f6;
    border: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #526457;
    text-align: center;
    padding: 8px;
}

.bc-summary-lines {
    display: grid;
    gap: 8px;
}

.bc-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #eef1ed;
    padding-bottom: 10px;
    font-size: 14px;
}

.bc-summary-line span {
    color: #5d6f63;
}

.bc-summary-line strong {
    color: #182a20;
    text-align: right;
}

.bc-summary-note {
    margin: 12px 0 0;
    color: #6b7a70;
    font-size: 13px;
}

/* Loader overlay when submitting the bon */
#bcLoader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bc-loader {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
    padding: 18px 22px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    min-width: 260px;
}

.bc-loader .spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.15);
    border-top-color: #7ec32f;
    animation: bc-spin 1s linear infinite;
}

.bc-loader-text {
    font-size: 15px;
    color: #fff;
}

@keyframes bc-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .bc-main-layout {
        grid-template-columns: 1fr;
    }

    .bc-side {
        position: static;
        order: -1;
        display: none;
    }
}

@media (max-width: 768px) {
    .Page {
        min-height: 120vh;
    }

    #bcWizard {
        padding: 12px;
    }

    .bc-steps.bc-steps-4 {
        display: none;
    }


    .bc-hero {
        margin-bottom: 18px;
        padding: 0 15px;
    }

    .bc-steps {
        grid-template-columns: 1fr;
    }

    .bc-step {
        justify-content: flex-start;
        padding: 0 12px;
    }

    .bc-fields {
        grid-template-columns: 1fr;
    }

    .bc-resa-option {
        display: block;
    }

    .bc-resa-summary {
        min-width: 0;
        margin-top: 10px;
    }

    .bc-resa-actions {
        margin-top: 10px;
    }

    .bc-step2-choice-actions button,
    #bcRegisterSubmit,
    #bcLoginSubmit,
    #bcPayNow,
    #bcDeferredSubmit {
        width: 100%;
    }

    .bc-prod-grid {
        grid-template-columns: 1fr;
    }

    .bc-prod-media,
    .bc-prod-head img,
    .bc-prod-media img {
        width: 100%;
        height: auto;
        max-height: 220px;
    }

    #bcDeferredSubmit {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .Page {
        padding: 20px 4px;
        margin: 90px 4px 3em;
    }

    .CarteBlanche {
        padding: 1em;
    }

    .bc-fonds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-panel-title {
        font-size: 21px;
    }

    .bc-variant-label {
        font-size: 14px;
    }
}