:root {
    --bbd-navy: #0D1B3E;
    --bbd-navy-soft: #172B57;
    --bbd-orange: #F26522;
    --bbd-orange-dark: #D94F12;
    --bbd-white: #FFFFFF;
    --bbd-background: #F5F7FB;
    --bbd-text: #17213B;
    --bbd-muted: #687086;
    --bbd-border: #DDE2EC;
    --bbd-success: #198754;
    --bbd-danger: #C93434;
    --bbd-shadow: 0 18px 55px rgba(13, 27, 62, 0.11);
    --bbd-radius: 18px;
}

.bbd-delivery-form,
.bbd-driver-dashboard,
.bbd-history,
.bbd-tracking-panel,
.bbd-tracking-search {
    box-sizing: border-box;
    color: var(--bbd-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bbd-delivery-form *,
.bbd-driver-dashboard *,
.bbd-history *,
.bbd-tracking-panel *,
.bbd-modal * {
    box-sizing: border-box;
}

.bbd-delivery-form {
    width: min(100%, 780px);
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 62, 0.08);
    border-radius: 24px;
    background: var(--bbd-white);
    box-shadow: var(--bbd-shadow);
}

.bbd-brand-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 16px 22px;
    background: var(--bbd-navy);
    color: var(--bbd-white);
}

.bbd-brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--bbd-orange);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.bbd-brand-bar strong {
    display: block;
    font-size: 20px;
    line-height: 1.05;
}

.bbd-brand-bar strong::first-letter { color: inherit; }
.bbd-brand-bar span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
}

.bbd-progress {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--bbd-border);
    background: #FBFCFF;
}

.bbd-progress-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.bbd-progress-heading span { color: var(--bbd-muted); }
.bbd-progress-heading strong { color: var(--bbd-navy); }

.bbd-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #E5E8EF;
}

.bbd-progress-track > span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: var(--bbd-orange);
    transition: width 0.28s ease;
}

.bbd-progress-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
    color: #9AA0AF;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.bbd-progress-labels span.is-active,
.bbd-progress-labels span.is-complete { color: var(--bbd-orange); }

.bbd-step {
    display: none;
    padding: 28px 24px 26px;
}

.bbd-step.is-active { display: block; animation: bbdStepIn 0.24s ease; }

@keyframes bbdStepIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.bbd-step-intro { margin-bottom: 26px; }
.bbd-step-intro > span {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--bbd-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bbd-step-intro h2 {
    margin: 0;
    color: var(--bbd-navy);
    font-size: clamp(23px, 4vw, 31px);
    line-height: 1.18;
}
.bbd-step-intro p {
    margin: 9px 0 0;
    color: var(--bbd-muted);
    font-size: 14px;
    line-height: 1.55;
}

.bbd-field { margin-bottom: 19px; }
.bbd-field > label,
.bbd-contact-section h3 {
    display: block;
    margin: 0 0 8px;
    color: var(--bbd-navy);
    font-size: 14px;
    font-weight: 750;
}

.bbd-delivery-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.bbd-delivery-form textarea,
.bbd-delivery-form select,
.bbd-modal input:not([type="file"]),
.bbd-modal textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--bbd-border);
    border-radius: 11px;
    outline: none;
    background: var(--bbd-white);
    color: var(--bbd-text);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bbd-delivery-form textarea,
.bbd-modal textarea { min-height: 105px; resize: vertical; }

.bbd-delivery-form input:focus,
.bbd-delivery-form textarea:focus,
.bbd-delivery-form select:focus,
.bbd-modal input:focus,
.bbd-modal textarea:focus {
    border-color: var(--bbd-orange);
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.12);
}

.bbd-delivery-form .wpcf7-not-valid {
    border-color: var(--bbd-danger) !important;
}

.bbd-delivery-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: var(--bbd-danger);
    font-size: 12px;
}

.bbd-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bbd-address-tools {
    display: flex;
    gap: 9px;
    margin-top: 9px;
}

.bbd-address-tools > * { flex: 1; }
.bbd-location-button,
.bbd-map-target,
.bbd-clear-signature,
.bbd-driver-refresh {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #C9D5F0;
    border-radius: 10px;
    background: #F8FAFF;
    color: #2457B7;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.bbd-save-favorite {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
}
.bbd-save-favorite span { color: var(--bbd-muted); font-size: 12px; }
.bbd-save-favorite input { min-height: 40px !important; padding: 9px 11px !important; }

.bbd-map-toolbar {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px;
}
.bbd-map-target.is-active {
    border-color: var(--bbd-orange);
    background: #FFF5F0;
    color: var(--bbd-orange-dark);
}

.bbd-map,
.bbd-tracking-map {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
    border: 1px solid var(--bbd-border);
    border-radius: 16px;
    background: #EDF1F7;
}

.bbd-map-placeholder,
.bbd-map-unavailable {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 25px;
    color: var(--bbd-muted);
    font-size: 13px;
    text-align: center;
}

.bbd-route-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--bbd-border);
    border-radius: 12px;
    background: var(--bbd-border);
}
.bbd-route-mini span {
    padding: 13px;
    background: var(--bbd-white);
    color: var(--bbd-muted);
    font-size: 12px;
    text-align: center;
}
.bbd-route-mini b { display: block; margin-bottom: 3px; color: var(--bbd-navy); font-size: 16px; }

.bbd-delivery-form .wpcf7-radio {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.bbd-delivery-form .wpcf7-radio .wpcf7-list-item { margin: 0; }
.bbd-delivery-form .wpcf7-radio label {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 74px;
    padding: 12px 7px;
    border: 1px solid var(--bbd-border);
    border-radius: 12px;
    background: var(--bbd-white);
    cursor: pointer;
    text-align: center;
}
.bbd-delivery-form .wpcf7-radio input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.bbd-delivery-form .wpcf7-radio .wpcf7-list-item-label { font-size: 12px; font-weight: 700; }
.bbd-delivery-form .wpcf7-radio label:has(input:checked) {
    border-color: var(--bbd-orange);
    background: #FFF5EF;
    color: var(--bbd-orange-dark);
    box-shadow: inset 0 0 0 1px var(--bbd-orange);
}

.bbd-upload-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border: 1.5px dashed #BFC6D5;
    border-radius: 14px;
    background: #FAFBFD;
}
.bbd-upload-card input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.bbd-photo-preview {
    display: grid;
    place-items: center;
    width: 100%;
    height: 170px;
    overflow: hidden;
    color: var(--bbd-muted);
    font-size: 13px;
    font-weight: 700;
}
.bbd-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.bbd-delivery-options { display: grid; gap: 12px; }
.bbd-delivery-option {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 13px;
    min-height: 84px;
    padding: 16px;
    border: 1px solid var(--bbd-border);
    border-radius: 14px;
    background: var(--bbd-white);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.bbd-delivery-option:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(13, 27, 62, 0.07); }
.bbd-delivery-option:has(input:checked) { border-color: var(--bbd-orange); box-shadow: inset 0 0 0 1px var(--bbd-orange); }
.bbd-delivery-option input { accent-color: var(--bbd-orange); }
.bbd-option-icon { font-size: 24px; }
.bbd-delivery-option span strong { display: block; color: var(--bbd-navy); font-size: 15px; }
.bbd-delivery-option small { display: block; margin-top: 4px; color: var(--bbd-muted); font-size: 12px; }
.bbd-delivery-option > b { color: var(--bbd-orange); font-size: 14px; white-space: nowrap; }

.bbd-schedule-field { margin-top: 16px; }
.bbd-insurance-card {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #D9E7DB;
    border-radius: 13px;
    background: #F7FCF8;
}
.bbd-insurance-card label { display: flex; align-items: center; gap: 9px; color: var(--bbd-navy); font-size: 14px; font-weight: 700; }
.bbd-insurance-card input { accent-color: var(--bbd-success); }
.bbd-insurance-card small { display: block; margin-top: 7px; color: var(--bbd-muted); line-height: 1.45; }

.bbd-quote-card,
.bbd-final-summary {
    display: grid;
    gap: 0;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--bbd-border);
    border-radius: 15px;
}
.bbd-quote-card > div,
.bbd-final-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--bbd-border);
    font-size: 13px;
}
.bbd-quote-card > div:last-child,
.bbd-final-summary > div:last-child { border-bottom: 0; }
.bbd-quote-card span,
.bbd-final-summary span { color: var(--bbd-muted); }
.bbd-quote-total,
.bbd-final-total { background: #FFF7F2; }
.bbd-quote-total strong,
.bbd-final-total strong { color: var(--bbd-orange); font-size: 19px; }

.bbd-calc-status,
.bbd-submit-status {
    min-height: 42px;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #F2F4F8;
    color: var(--bbd-muted);
    font-size: 13px;
}
.bbd-calc-status.is-success,
.bbd-submit-status.is-success { background: #EAF8EF; color: #146C43; }
.bbd-calc-status.is-error,
.bbd-submit-status.is-error { background: #FFF0F0; color: var(--bbd-danger); }
.bbd-calc-status.is-loading,
.bbd-submit-status.is-loading { background: #FFF7E5; color: #8A6200; }

.bbd-contact-section {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid var(--bbd-border);
    border-radius: 15px;
    background: #FCFDFF;
}
.bbd-contact-section h3 { margin-bottom: 16px; font-size: 17px; }

.bbd-final-summary h3 {
    margin: 0;
    padding: 15px 16px;
    background: var(--bbd-navy);
    color: var(--bbd-white);
    font-size: 15px;
}

.bbd-payment-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 15px 16px;
    border-left: 4px solid var(--bbd-orange);
    border-radius: 10px;
    background: #FFF8F4;
}
.bbd-payment-note strong { color: var(--bbd-navy); font-size: 13px; }
.bbd-payment-note span { color: var(--bbd-muted); font-size: 12px; line-height: 1.5; }

.bbd-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}
.bbd-primary,
.bbd-secondary,
.bbd-submit,
.bbd-mission-actions button,
.bbd-modal-submit,
.bbd-repeat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}
.bbd-primary,
.bbd-submit,
.bbd-modal-submit,
.bbd-repeat-button {
    background: var(--bbd-orange);
    color: var(--bbd-white) !important;
    box-shadow: 0 9px 22px rgba(242, 101, 34, 0.24);
}
.bbd-secondary { border: 1px solid var(--bbd-border); background: var(--bbd-white); color: var(--bbd-navy); }
.bbd-primary:hover,
.bbd-submit:hover,
.bbd-modal-submit:hover { transform: translateY(-1px); }
.bbd-primary:disabled,
.bbd-submit:disabled,
.bbd-mission-actions button:disabled,
.bbd-modal-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.bbd-delivery-form .wpcf7-spinner { display: none !important; }
.bbd-delivery-form .wpcf7-response-output { display: none; }

/* Tableau de bord livreur */
.bbd-driver-dashboard,
.bbd-history,
.bbd-tracking-panel,
.bbd-tracking-search {
    width: min(100%, 1100px);
    margin: 24px auto;
}
.bbd-driver-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 18px;
    background: var(--bbd-navy);
    color: var(--bbd-white);
}
.bbd-driver-header span { color: var(--bbd-orange); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.bbd-driver-header h2 { margin: 4px 0 0; color: var(--bbd-white); }
.bbd-driver-refresh { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: var(--bbd-white); }
.bbd-driver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bbd-mission-card {
    padding: 18px;
    border: 1px solid var(--bbd-border);
    border-radius: 16px;
    background: var(--bbd-white);
    box-shadow: 0 10px 30px rgba(13, 27, 62, 0.07);
}
.bbd-mission-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 15px; }
.bbd-mission-card-top > strong { color: var(--bbd-navy); }
.bbd-status { padding: 5px 9px; border-radius: 999px; background: #FFF2EB; color: var(--bbd-orange-dark); font-size: 11px; font-weight: 800; }
.bbd-route-line { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; margin: 10px 0; color: var(--bbd-muted); font-size: 13px; line-height: 1.45; }
.bbd-route-line b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bbd-navy); color: var(--bbd-white); font-size: 11px; }
.bbd-route-line + .bbd-route-line b { background: var(--bbd-orange); }
.bbd-mission-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.bbd-mission-meta span { padding: 6px 9px; border-radius: 8px; background: #F3F5F9; color: var(--bbd-navy); font-size: 11px; font-weight: 700; }
.bbd-mission-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.bbd-mission-contact a { color: #2457B7; font-size: 12px; font-weight: 700; text-decoration: none; }
.bbd-mission-actions { margin-top: 16px; }
.bbd-mission-actions button { width: 100%; background: var(--bbd-orange); color: var(--bbd-white); }

.bbd-empty,
.bbd-notice {
    padding: 20px;
    border: 1px solid var(--bbd-border);
    border-radius: 14px;
    background: var(--bbd-white);
    color: var(--bbd-muted);
}
.bbd-notice-error { border-color: #F2CACA; color: var(--bbd-danger); }

.bbd-driver-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    max-width: min(360px, calc(100vw - 40px));
    padding: 13px 16px;
    border-radius: 11px;
    background: var(--bbd-navy);
    color: var(--bbd-white);
    box-shadow: var(--bbd-shadow);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: .2s ease;
}
.bbd-driver-toast.is-visible { opacity: 1; transform: translateY(0); }
.bbd-driver-toast.is-success { background: var(--bbd-success); }
.bbd-driver-toast.is-error { background: var(--bbd-danger); }

/* Modal preuve de livraison */
body.bbd-modal-open { overflow: hidden; }
.bbd-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(4, 12, 31, 0.72);
}
.bbd-modal {
    position: relative;
    width: min(100%, 570px);
    margin: auto;
    padding: 25px;
    border-radius: 19px;
    background: var(--bbd-white);
    box-shadow: 0 25px 80px rgba(0,0,0,.28);
}
.bbd-modal-close { position: absolute; top: 13px; right: 14px; width: 37px; height: 37px; border: 0; border-radius: 50%; background: #F0F2F7; color: var(--bbd-navy); font-size: 23px; cursor: pointer; }
.bbd-modal-kicker { color: var(--bbd-orange); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bbd-modal h2 { margin: 7px 42px 5px 0; color: var(--bbd-navy); }
.bbd-modal > p { margin: 0 0 20px; color: var(--bbd-muted); font-size: 13px; line-height: 1.5; }
.bbd-modal-field { display: block; margin: 15px 0; }
.bbd-modal-field > span { display: block; margin-bottom: 7px; color: var(--bbd-navy); font-size: 13px; font-weight: 750; }
.bbd-modal input[type="file"] { width: 100%; padding: 11px; border: 1px solid var(--bbd-border); border-radius: 10px; }
.bbd-signature-wrap { overflow: hidden; border: 1px solid var(--bbd-border); border-radius: 11px; background: #FBFCFF; }
.bbd-signature-wrap canvas { display: block; width: 100%; height: 180px; touch-action: none; }
.bbd-clear-signature { margin-top: 7px; min-height: 36px; }
.bbd-modal-message { min-height: 20px; margin: 8px 0; font-size: 13px; }
.bbd-modal-message.is-error { color: var(--bbd-danger); }
.bbd-modal-message.is-success { color: var(--bbd-success); }
.bbd-modal-message.is-loading { color: #8A6200; }
.bbd-modal-submit { width: 100%; }

/* Historique */
.bbd-history h2 { margin-bottom: 17px; color: var(--bbd-navy); }
.bbd-history-item {
    display: grid;
    gap: 11px;
    margin-bottom: 13px;
    padding: 18px;
    border: 1px solid var(--bbd-border);
    border-radius: 15px;
    background: var(--bbd-white);
    box-shadow: 0 8px 25px rgba(13, 27, 62, .06);
}
.bbd-history-item > div { display: flex; justify-content: space-between; gap: 15px; color: var(--bbd-muted); font-size: 12px; }
.bbd-history-item > div strong { color: var(--bbd-navy); font-size: 14px; }
.bbd-history-item p { margin: 0; color: var(--bbd-text); font-size: 13px; }
.bbd-repeat-button { justify-self: start; min-height: 41px; padding: 9px 14px; font-size: 12px; }

/* Suivi public */
.bbd-tracking-panel {
    overflow: hidden;
    border: 1px solid var(--bbd-border);
    border-radius: 20px;
    background: var(--bbd-white);
    box-shadow: var(--bbd-shadow);
}
.bbd-tracking-summary { padding: 24px; background: var(--bbd-navy); color: var(--bbd-white); }
.bbd-tracking-summary > span { color: var(--bbd-orange); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.bbd-tracking-summary h2 { margin: 6px 0; color: var(--bbd-white); font-size: 27px; }
.bbd-tracking-summary p { margin: 0; color: rgba(255,255,255,.82); }
.bbd-tracking-panel[data-state="livree"] .bbd-tracking-summary,
.bbd-tracking-panel[data-state="livré"] .bbd-tracking-summary { background: var(--bbd-success); }
.bbd-tracking-panel[data-state="error"] .bbd-tracking-summary { background: var(--bbd-danger); }
.bbd-tracking-map { height: 430px; border: 0; border-radius: 0; }
.bbd-tracking-time { padding: 13px 20px; color: var(--bbd-muted); font-size: 12px; text-align: right; }
.bbd-tracking-search { padding: 25px; border: 1px solid var(--bbd-border); border-radius: 16px; background: var(--bbd-white); }
.bbd-tracking-search h2 { margin-top: 0; color: var(--bbd-navy); }

@media (max-width: 720px) {
    .bbd-delivery-form { margin: 0 auto; border-radius: 0; box-shadow: none; }
    .bbd-progress { padding-inline: 16px; }
    .bbd-progress-labels { font-size: 9px; gap: 2px; }
    .bbd-step { padding: 24px 16px 22px; }
    .bbd-two-columns { grid-template-columns: 1fr; gap: 0; }
    .bbd-address-tools { flex-direction: column; }
    .bbd-save-favorite { grid-template-columns: 1fr; }
    .bbd-map { height: 285px; }
    .bbd-delivery-form .wpcf7-radio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bbd-delivery-option { grid-template-columns: auto auto 1fr; }
    .bbd-delivery-option > b { grid-column: 3; justify-self: start; }
    .bbd-step-actions { position: sticky; bottom: 0; z-index: 20; margin-inline: -16px; margin-bottom: -22px; padding: 12px 16px; border-top: 1px solid var(--bbd-border); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
    .bbd-step-actions > button,
    .bbd-step-actions > input { flex: 1; }
    .bbd-driver-grid { grid-template-columns: 1fr; }
    .bbd-driver-header { border-radius: 0; }
    .bbd-tracking-panel { margin: 0; border-radius: 0; }
    .bbd-tracking-map { height: 360px; }
}

@media (max-width: 430px) {
    .bbd-brand-bar { min-height: 68px; padding: 12px 16px; }
    .bbd-brand-mark { width: 40px; height: 40px; }
    .bbd-progress-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bbd-step-intro h2 { font-size: 24px; }
    .bbd-route-mini { grid-template-columns: 1fr 1fr; }
    .bbd-delivery-form .wpcf7-radio { gap: 8px; }
    .bbd-contact-section { padding: 14px; }
    .bbd-modal { padding: 20px 16px; }
    .bbd-signature-wrap canvas { height: 155px; }
}

/* Suggestions Google Places (Autocomplete New) */
.bbd-autocomplete-wrap {
    position: relative;
    display: block;
}
.bbd-autocomplete-results {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--bbd-border);
    border-radius: 12px;
    background: var(--bbd-white);
    box-shadow: 0 16px 35px rgba(13, 27, 62, 0.16);
}
.bbd-autocomplete-results[hidden] { display: none; }
.bbd-autocomplete-item {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bbd-text);
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
.bbd-autocomplete-item:hover,
.bbd-autocomplete-item:focus {
    outline: none;
    background: #FFF3EC;
    color: var(--bbd-orange-dark);
}

/* =========================================================
   Interface client v1.1.1 — corrections mobile BlablaDakar
   ========================================================= */
:root {
    --bbd-success: #1DB954;
    --bbd-programmed: #2F6BFF;
}

/* Le formulaire commence directement par la progression. */
.bbd-brand-bar { display: none !important; }

.bbd-delivery-form {
    width: min(100%, 720px);
    overflow: visible;
}

.bbd-progress {
    padding: 17px 24px 20px;
    background: #FFFFFF;
}

.bbd-progress-heading {
    display: block;
    margin: 0 0 16px;
    color: var(--bbd-muted);
    font-size: 12px;
    font-weight: 700;
}

.bbd-progress-heading strong { display: none !important; }
.bbd-progress-track,
.bbd-progress-labels { display: none !important; }

.bbd-progress-numbers {
    position: relative !important;
    z-index: 1;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 28px;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    line-height: 1 !important;
    list-style: none !important;
}

/* Neutralise les retours automatiques ajoutés par Contact Form 7. */
.bbd-progress-numbers > br,
.bbd-progress-numbers > p,
.bbd-progress-numbers > .wpcf7-form-control-wrap:empty {
    display: none !important;
}

.bbd-progress-line {
    position: absolute !important;
    z-index: 0;
    top: 50% !important;
    right: 13px !important;
    left: 13px !important;
    display: block !important;
    width: auto !important;
    height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 999px;
    background: #D8DCE5;
    transform: translateY(-50%);
}

.bbd-progress-line > span {
    display: block !important;
    width: 0;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit;
    background: var(--bbd-orange);
    transition: width .28s ease;
}

.bbd-progress-numbers > span[data-bbd-progress-step] {
    position: relative !important;
    z-index: 2;
    display: inline-flex !important;
    flex: 0 0 26px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #D8DCE5 !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    color: #7F8798 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    transform: none !important;
    transition: border-color .22s ease, background-color .22s ease, color .22s ease;
}

.bbd-progress-numbers > span[data-bbd-progress-step].is-active,
.bbd-progress-numbers > span[data-bbd-progress-step].is-complete {
    border-color: var(--bbd-orange) !important;
    background: var(--bbd-orange) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(242, 101, 34, .20) !important;
}

.bbd-step { padding-top: 24px; }
.bbd-step-intro { margin-bottom: 22px; }
.bbd-step-intro h2 { font-size: clamp(24px, 5vw, 31px); }

/* Champs d’adresse et icônes de localisation. */
.bbd-address-input {
    position: relative;
    width: 100%;
}

.bbd-address-input .wpcf7-form-control-wrap,
.bbd-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.bbd-input-icon {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 14px;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    color: var(--bbd-orange);
    pointer-events: none;
    transform: translateY(-50%);
}

.bbd-input-icon svg,
.bbd-button-icon svg,
.bbd-route-icon svg,
.bbd-option-icon svg,
.bbd-insurance-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bbd-address-input input {
    min-height: 54px !important;
    padding-left: 47px !important;
    font-size: 15px !important;
}

.bbd-location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    color: #2457B7;
    font-size: 13px;
}

.bbd-button-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

/* Suggestions visibles dès la première lettre. */
.bbd-autocomplete-results {
    z-index: 10000;
    max-height: 310px;
    padding: 7px;
}

.bbd-autocomplete-item {
    position: relative;
    min-height: 48px;
    padding: 12px 12px 12px 42px;
    font-size: 14px;
    font-weight: 600;
}

.bbd-autocomplete-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    background: var(--bbd-orange);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translateY(-50%);
}

/* Distance et durée sur une seule ligne. */
.bbd-route-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: #FFFFFF;
}

.bbd-route-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 12px;
    background: #FFFFFF;
}

.bbd-route-stat + .bbd-route-stat { border-left: 1px solid var(--bbd-border); }

.bbd-route-icon {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    color: var(--bbd-navy);
}

.bbd-route-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.bbd-route-copy b {
    display: block;
    margin: 0;
    color: var(--bbd-navy);
    font-size: 18px;
    line-height: 1.1;
}

.bbd-route-copy small {
    margin-top: 4px;
    color: var(--bbd-muted);
    font-size: 11px;
    line-height: 1.2;
}

/* Boutons de navigation : le bouton orange occupe toute la ligne. */
.bbd-step-actions-primary-only,
.bbd-step-actions-stacked {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.bbd-step-actions-primary-only .bbd-primary,
.bbd-step-actions-stacked .bbd-primary,
.bbd-step-actions-stacked .bbd-submit {
    width: 100% !important;
    max-width: none !important;
}

.bbd-step-actions-stacked .bbd-secondary {
    justify-self: start;
    min-height: 39px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}

.bbd-primary,
.bbd-submit {
    gap: 10px;
    min-height: 54px !important;
    border: 0 !important;
    background: var(--bbd-orange) !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    opacity: 1;
    visibility: visible;
    -webkit-appearance: none;
            appearance: none;
}

.bbd-action-icon {
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
}

/* Catégories de colis : grandes cases avec pictogrammes orange. */
.bbd-category-field .wpcf7-radio {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bbd-category-field .wpcf7-radio label {
    min-height: 112px;
    padding: 15px 8px 13px;
    align-content: center;
    gap: 9px;
    border-width: 1.5px;
}

.bbd-category-field .wpcf7-list-item-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--bbd-navy);
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25;
}

.bbd-category-field .wpcf7-list-item-label::before {
    content: "";
    display: block;
    width: 31px;
    height: 31px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.bbd-category-field .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l3 3v17H6zM15 2v4h4M9 11h6M9 15h6M9 19h4'/%3E%3C/svg%3E");
}
.bbd-category-field .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8 8-4 8 4-8 4zM4 8v8l8 4 8-4V8M12 12v8'/%3E%3C/svg%3E");
}
.bbd-category-field .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v13H3zM3 7l4-4h10l4 4M8 11h8'/%3E%3C/svg%3E");
}
.bbd-category-field .wpcf7-list-item:nth-child(4) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='16' rx='2'/%3E%3Cpath d='M9 5V3h6v2M9 9v8M15 9v8M8 21v1M16 21v1'/%3E%3C/svg%3E");
}
.bbd-category-field .wpcf7-list-item:nth-child(5) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16M6 11a6 6 0 0 1 12 0M9 5V3M15 5V3M5 15h14l-1 5H6z'/%3E%3C/svg%3E");
}
.bbd-category-field .wpcf7-list-item:nth-child(6) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M10 5h4M11 18h2'/%3E%3C/svg%3E");
}
.bbd-category-field .wpcf7-list-item:nth-child(7) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M8 22h8M12 18v4M7 8h10v6H7z'/%3E%3C/svg%3E");
}
.bbd-category-field .wpcf7-list-item:nth-child(8) .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F26522'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
}

.bbd-category-field .wpcf7-radio label:has(input:checked) {
    border-color: var(--bbd-orange) !important;
    background: #FFF5EF !important;
    color: var(--bbd-orange-dark) !important;
    box-shadow: inset 0 0 0 1px var(--bbd-orange), 0 7px 18px rgba(242,101,34,.10);
}

.bbd-wide-field,
.bbd-wide-field .wpcf7-form-control-wrap,
.bbd-wide-field input,
.bbd-wide-field textarea { width: 100% !important; max-width: none !important; }

.bbd-description-field textarea { min-height: 145px !important; }

/* Choix du type de livraison. */
.bbd-delivery-options { gap: 14px; }

.bbd-delivery-option {
    --bbd-option-color: var(--bbd-orange);
    --bbd-option-soft: #FFF5EF;
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 15px;
    min-height: 118px;
    padding: 18px;
    border: 1.5px solid var(--bbd-border);
    border-radius: 16px;
}

.bbd-delivery-option--standard {
    --bbd-option-color: #1DB954;
    --bbd-option-soft: #EDFBF2;
}
.bbd-delivery-option--express {
    --bbd-option-color: #F26522;
    --bbd-option-soft: #FFF4ED;
}
.bbd-delivery-option--scheduled {
    --bbd-option-color: #2F6BFF;
    --bbd-option-soft: #EEF4FF;
}

.bbd-delivery-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bbd-option-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 11px;
    border-radius: 14px;
    background: var(--bbd-option-soft);
    color: var(--bbd-option-color);
}

.bbd-option-copy { min-width: 0; }
.bbd-option-copy strong {
    display: block;
    color: var(--bbd-option-color) !important;
    font-size: 19px !important;
    line-height: 1.15;
}
.bbd-option-copy small {
    margin-top: 6px;
    color: var(--bbd-muted);
    font-size: 13px;
    line-height: 1.35;
}
.bbd-option-copy > b {
    display: block;
    margin-top: 8px;
    color: var(--bbd-option-color);
    font-size: 16px;
    line-height: 1.1;
}

.bbd-option-radio {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #BCC2CF;
    border-radius: 50%;
    background: #FFFFFF;
}

.bbd-delivery-option:has(input:checked),
.bbd-delivery-option.is-selected {
    border-color: var(--bbd-option-color) !important;
    background: var(--bbd-option-soft) !important;
    box-shadow: inset 0 0 0 1px var(--bbd-option-color), 0 9px 22px rgba(13,27,62,.07) !important;
}

.bbd-delivery-option:has(input:checked) .bbd-option-radio,
.bbd-delivery-option.is-selected .bbd-option-radio {
    border-color: var(--bbd-option-color);
}

.bbd-delivery-option:has(input:checked) .bbd-option-radio::after,
.bbd-delivery-option.is-selected .bbd-option-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bbd-option-color);
}

/* Assurance. */
.bbd-insurance-card {
    padding: 18px;
    border-color: #DDE5E0;
    background: #FAFCFB;
}

.bbd-insurance-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.bbd-insurance-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 6px;
    border-radius: 10px;
    background: #EAF8EF;
    color: #1DB954;
}

.bbd-insurance-title > span:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.bbd-insurance-title strong { color: var(--bbd-navy); font-size: 16px; }
.bbd-insurance-title small { color: var(--bbd-muted); font-size: 12px; }

.bbd-insurance-choice {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    color: var(--bbd-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.bbd-insurance-choice input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #1DB954;
}

.bbd-insurance-card p {
    margin: 9px 0 0 30px;
    color: var(--bbd-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* Récapitulatifs : titres visibles, libellés à gauche, chiffres à droite. */
.bbd-quote-card,
.bbd-final-summary {
    overflow: hidden;
    background: #FFFFFF;
}

.bbd-quote-card h3,
.bbd-final-summary h3 {
    margin: 0;
    padding: 16px 17px;
    border-bottom: 1px solid var(--bbd-border);
    background: #FFFFFF;
    color: var(--bbd-navy);
    font-size: 17px;
    font-weight: 850;
}

.bbd-quote-card > div,
.bbd-final-summary > div {
    align-items: flex-start;
    padding: 14px 17px;
    background: #FFFFFF;
    color: var(--bbd-text);
    font-size: 14px;
}

.bbd-quote-card > div > span,
.bbd-final-summary > div > span {
    flex: 1 1 auto;
    color: var(--bbd-muted) !important;
    text-align: left;
}

.bbd-quote-card > div > strong,
.bbd-final-summary > div > strong {
    flex: 0 1 62%;
    color: var(--bbd-navy);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    text-align: right;
    overflow-wrap: anywhere;
}

.bbd-quote-total,
.bbd-final-total { background: #FFF7F2 !important; }

.bbd-quote-total > strong,
.bbd-final-total > strong {
    color: var(--bbd-orange) !important;
    font-size: 19px !important;
}

/* Le bouton de paiement reste visible même si le thème surcharge CF7. */
.bbd-delivery-form button.bbd-submit,
.bbd-delivery-form .bbd-step-actions button.bbd-submit,
.bbd-delivery-form input.wpcf7-submit.bbd-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 13px 18px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background-color: #F26522 !important;
    background-image: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 9px 22px rgba(242,101,34,.24) !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-indent: 0 !important;
    opacity: 1;
    visibility: visible !important;
}

@media (max-width: 720px) {
    .bbd-delivery-form { overflow: visible; }
    .bbd-progress { padding: 15px 16px 18px; }
    .bbd-step { padding: 22px 16px 24px; }
    .bbd-category-field .wpcf7-radio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bbd-category-field .wpcf7-radio label { min-height: 112px; }
    .bbd-delivery-option { grid-template-columns: 48px minmax(0, 1fr) 22px; min-height: 112px; padding: 16px 14px; gap: 13px; }
    .bbd-option-icon { width: 48px; height: 48px; }
    .bbd-step-actions { position: sticky; }
    .bbd-step-actions-stacked .bbd-secondary { width: auto !important; flex: none !important; }
}

@media (max-width: 430px) {
    .bbd-progress-numbers > span[data-bbd-progress-step] { flex-basis: 24px !important; width: 24px !important; min-width: 24px !important; max-width: 24px !important; height: 24px !important; min-height: 24px !important; font-size: 11px !important; }
    .bbd-progress-line { right: 12px !important; left: 12px !important; }
    .bbd-address-tools { gap: 8px; }
    .bbd-route-stat { gap: 9px; padding-inline: 9px; }
    .bbd-route-icon { width: 22px; height: 22px; }
    .bbd-route-copy b { font-size: 16px; }
    .bbd-route-copy small { font-size: 10px; }
    .bbd-category-field .wpcf7-list-item-label { font-size: 13px !important; }
    .bbd-delivery-option { grid-template-columns: 44px minmax(0, 1fr) 21px; gap: 11px; }
    .bbd-option-icon { width: 44px; height: 44px; padding: 9px; }
    .bbd-option-copy strong { font-size: 17px !important; }
    .bbd-option-copy small { font-size: 12px; }
    .bbd-option-copy > b { font-size: 14px; }
}

/* Icônes CSS compatibles avec le filtrage HTML de Contact Form 7. */
.bbd-input-icon::before,
.bbd-button-icon::before,
.bbd-route-icon::before,
.bbd-option-icon::before,
.bbd-insurance-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.bbd-input-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.bbd-button-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/g%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/g%3E%3C/svg%3E");
}

.bbd-route-icon--distance::before,
.bbd-delivery-option--standard .bbd-option-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v11H3zM14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/g%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v11H3zM14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.bbd-route-icon--time::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/g%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/g%3E%3C/svg%3E");
}

.bbd-delivery-option--express .bbd-option-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m13 2-8 12h6l-1 8 9-13h-6z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m13 2-8 12h6l-1 8 9-13h-6z'/%3E%3C/svg%3E");
}

.bbd-delivery-option--scheduled .bbd-option-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 10h18M8 14h3M13 14h3M8 17h3'/%3E%3C/g%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 10h18M8 14h3M13 14h3M8 17h3'/%3E%3C/g%3E%3C/svg%3E");
}

.bbd-insurance-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v5c0 5-3.4 8.6-8 10-4.6-1.4-8-5-8-10V6z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/g%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v5c0 5-3.4 8.6-8 10-4.6-1.4-8-5-8-10V6z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/g%3E%3C/svg%3E");
}


/* =========================================================
   Interface client v1.1.2 — progression, adresses, formules
   ========================================================= */

/* Trois segments indépendants : chaque liaison devient orange
   seulement lorsque l’étape suivante est atteinte. */
.bbd-progress-line {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
    overflow: visible !important;
    background: transparent !important;
}

.bbd-progress-line > span[data-bbd-progress-segment] {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #D8DCE5 !important;
    transition: background-color .24s ease !important;
}

.bbd-progress-line > span[data-bbd-progress-segment]:first-child {
    border-radius: 999px 0 0 999px !important;
}

.bbd-progress-line > span[data-bbd-progress-segment]:last-child {
    border-radius: 0 999px 999px 0 !important;
}

.bbd-progress-line > span[data-bbd-progress-segment].is-complete {
    background: var(--bbd-orange) !important;
}

/* L’icône est centrée par rapport au champ réel, et non au bloc CF7. */
.bbd-address-control {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.bbd-address-control > .bbd-input-icon {
    position: absolute !important;
    z-index: 6 !important;
    top: 50% !important;
    left: 15px !important;
    display: grid !important;
    place-items: center !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
}

.bbd-address-control > input {
    width: 100% !important;
    min-height: 54px !important;
    padding: 12px 14px 12px 48px !important;
}

/* Suggestions Google au-dessus du thème et des sections suivantes. */
.bbd-address-field,
.bbd-address-input,
.bbd-address-control,
.bbd-autocomplete-wrap { overflow: visible !important; }

.bbd-autocomplete-results {
    z-index: 999999 !important;
    top: calc(100% + 6px) !important;
}

/* Une couleur claire permanente par formule, avec une structure fixe :
   icône à gauche, texte au centre, sélection à droite. */
.bbd-delivery-options {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
}

.bbd-delivery-option {
    --bbd-option-border: #DDE2EC;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 24px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 108px !important;
    gap: 15px !important;
    padding: 16px 17px !important;
    border: 1.5px solid var(--bbd-option-border) !important;
    border-radius: 15px !important;
    background: var(--bbd-option-soft) !important;
    text-align: left !important;
}

.bbd-delivery-option--standard {
    --bbd-option-soft: #ECFAF1;
    --bbd-option-border: #B9E9C8;
}

.bbd-delivery-option--express {
    --bbd-option-soft: #FFF3EB;
    --bbd-option-border: #FFD0B8;
}

.bbd-delivery-option--scheduled {
    --bbd-option-soft: #EDF3FF;
    --bbd-option-border: #C8D8FF;
}

.bbd-option-icon {
    grid-column: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 10px !important;
    background: rgba(255,255,255,.72) !important;
}

.bbd-option-copy {
    grid-column: 2 !important;
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.bbd-option-copy strong,
.bbd-option-copy small,
.bbd-option-copy > b {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

.bbd-option-copy strong {
    margin-top: 0 !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
}

.bbd-option-copy small {
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.bbd-option-copy > b {
    margin-top: 7px !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
}

.bbd-option-radio {
    grid-column: 3 !important;
    align-self: center !important;
    justify-self: end !important;
    margin: 0 !important;
}

.bbd-delivery-option:has(input:checked),
.bbd-delivery-option.is-selected {
    border-color: var(--bbd-option-color) !important;
    background: var(--bbd-option-soft) !important;
    box-shadow: inset 0 0 0 1px var(--bbd-option-color), 0 7px 18px rgba(13,27,62,.06) !important;
}

@media (max-width: 430px) {
    .bbd-delivery-option {
        grid-template-columns: 44px minmax(0, 1fr) 21px !important;
        min-height: 101px !important;
        gap: 11px !important;
        padding: 14px 13px !important;
    }
    .bbd-option-icon {
        width: 42px !important;
        height: 42px !important;
        padding: 9px !important;
    }
    .bbd-option-copy strong { font-size: 17px !important; }
    .bbd-option-copy small { font-size: 12px !important; }
    .bbd-option-copy > b { font-size: 14px !important; }
}

/* Correctifs étapes 3 et 4 — alignements et icônes de contact. */
.bbd-insurance-title {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 11px !important;
}

.bbd-insurance-heading {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    min-width: 0;
    white-space: nowrap;
}

.bbd-insurance-heading strong,
.bbd-insurance-heading small {
    display: inline !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

.bbd-summary-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto) !important;
    align-items: start !important;
    column-gap: 18px !important;
    width: 100% !important;
}

.bbd-summary-row > span {
    min-width: 0 !important;
    text-align: left !important;
}

.bbd-summary-row > strong {
    min-width: 0 !important;
    margin-left: auto !important;
    text-align: right !important;
}

.bbd-contact-control {
    position: relative;
    display: block;
    width: 100%;
}

.bbd-contact-control > .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.bbd-contact-control input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) {
    width: 100% !important;
    min-height: 50px !important;
    padding-left: 46px !important;
}

.bbd-contact-icon {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 15px;
    display: block;
    width: 19px;
    height: 19px;
    color: var(--bbd-orange);
    pointer-events: none;
    transform: translateY(-50%);
}

.bbd-contact-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.bbd-contact-icon--name::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
}

.bbd-contact-icon--phone::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 3h4l2 5-3 2a16 16 0 0 0 6 6l2-3 5 2v4a2 2 0 0 1-2 2C10.2 21 3 13.8 3 5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 3h4l2 5-3 2a16 16 0 0 0 6 6l2-3 5 2v4a2 2 0 0 1-2 2C10.2 21 3 13.8 3 5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

.bbd-contact-icon--email::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/g%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 430px) {
    .bbd-insurance-title { gap: 9px !important; }
    .bbd-insurance-icon { flex: 0 0 32px; width: 32px; height: 32px; }
    .bbd-insurance-heading { gap: 4px !important; }
    .bbd-insurance-heading strong { font-size: 14px !important; }
    .bbd-insurance-heading small { font-size: 11px !important; }
    .bbd-summary-row { grid-template-columns: minmax(0, 1fr) minmax(92px, 54%) !important; column-gap: 12px !important; }
}

