/* =========================================================
   Car & Bikes — tunnel de commande, compte client, pages d'information
   (complète theme.css, mêmes variables)
   ========================================================= */
.cb-page-head--compact { padding: 1.5rem 0 1.75rem; }
.cb-checkout { padding-top: 2rem; padding-bottom: 4rem; }

/* Étapes Panier > Livraison > Paiement */
.cb-steps-bar { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; gap: .5rem; flex-wrap: wrap; counter-reset: step; font-size: .85rem; }
.cb-steps-bar li { counter-increment: step; display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 500; }
.cb-steps-bar li::before { content: counter(step); width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid #c7ced5; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.cb-steps-bar li:not(:last-child) { padding-right: .75rem; border-right: 1px solid var(--line); margin-right: .25rem; }
.cb-steps-bar li.is-current { color: var(--ink); font-weight: 600; }
.cb-steps-bar li.is-current::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.cb-steps-bar li.is-done { color: var(--ok); }
.cb-steps-bar li.is-done::before { content: "\2713"; background: var(--ok); border-color: var(--ok); color: #fff; }

/* Lignes du panier */
.cb-cart-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cb-cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.cb-cart-line__img { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; background: var(--soft); border-radius: var(--radius); padding: .4rem; }
.cb-cart-line__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cb-cart-line__info { min-width: 0; }
.cb-cart-line__title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.cb-cart-line__title:hover { text-decoration: underline; color: var(--ink); }
.cb-cart-line__variant { margin: .15rem 0 .25rem; color: var(--muted); font-size: .88rem; }
.cb-cart-line__unit { margin: 0; font-size: .85rem; color: var(--muted); }
.cb-cart-line__unit s { margin-right: .35rem; }
.cb-cart-line__total { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; min-width: 6.5rem; }
.cb-cart-line__total strong { font-size: 1.05rem; white-space: nowrap; }
.cb-cart-line__remove { font-size: .82rem; color: var(--muted); text-decoration: none; }
.cb-cart-line__remove:hover { color: var(--promo); }
.cb-cart-line .cb-qty input { width: 2.6rem; background: #fff; }
@media (max-width: 575.98px) {
  .cb-cart-line { grid-template-columns: 72px minmax(0, 1fr); gap: .75rem 1rem; }
  .cb-cart-line__img { width: 72px; height: 72px; }
  .cb-cart-line__qty { grid-column: 2; }
  .cb-cart-line__total { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; min-width: 0; }
}

/* Récapitulatif (panier, livraison, paiement) */
.cb-summary { position: sticky; top: 110px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.cb-summary__title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.cb-summary__rows { margin: 0 0 1rem; display: grid; gap: .5rem; }
.cb-summary__rows > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.cb-summary__rows dt { font-weight: 400; color: var(--muted); }
.cb-summary__rows dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding: 1rem 0 1.25rem; font-weight: 600; }
.cb-summary__total strong { font-size: 1.5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-summary__total s { color: var(--muted); font-weight: 400; margin-right: .5rem; white-space: nowrap; }
.cb-summary__note { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }
.cb-summary__trust { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; font-size: .85rem; color: var(--muted); }
.cb-summary__trust i { width: 1.3rem; color: var(--ink); }
.cb-cart-mini { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.cb-cart-mini li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .75rem; align-items: center; font-size: .88rem; }
.cb-cart-mini img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: var(--radius); padding: .2rem; border: 1px solid var(--line); }
.cb-cart-mini .qty { color: var(--muted); }
.cb-cart-mini strong { white-space: nowrap; }
@media (max-width: 991.98px) { .cb-summary { position: static; } }

.cb-empty { text-align: center; padding: 4rem 1rem; }
.cb-empty > i { font-size: 2.5rem; color: #c7ced5; margin-bottom: 1rem; }

/* Formulaires */
.cb-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.cb-panel + .cb-panel { margin-top: 1.25rem; }
.cb-panel__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.cb-panel__title .num { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font); }
.cb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cb-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .cb-form-grid { grid-template-columns: 1fr; } }
.cb-form label, .cb-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.cb-form .form-control, .cb-form .form-select { padding: .65rem .85rem; }
.cb-form .form-floating > label { font-weight: 400; color: var(--muted); }
.cb-help { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.cb-auth { max-width: 460px; margin: 3rem auto 4rem; padding: 0 1rem; }
.cb-auth--wide { max-width: 760px; }
.cb-auth .cb-panel { padding: 2rem; }
@media (max-width: 575.98px) { .cb-auth .cb-panel { padding: 1.25rem; } }
.cb-auth h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: .35rem; }
.cb-auth .lead-small { color: var(--muted); margin-bottom: 1.5rem; }
.cb-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1.25rem 0; }
.cb-divider::before, .cb-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Choix d'une option (mode de livraison) */
.cb-option { display: flex; align-items: center; gap: .9rem; border: 1px solid #cfd5db; border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.cb-option:hover { border-color: var(--ink); }
.cb-option input { accent-color: var(--ink); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.cb-option:has(input:checked) { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }

/* Pages d'information */
.cb-info { padding-top: 2.5rem; padding-bottom: 4rem; }
.cb-info .cb-prose { padding: 0; max-width: 780px; }
.cb-info .cb-prose h2, .cb-info .cb-prose h3, .cb-info .cb-prose h4, .cb-info .cb-prose h5 { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.cb-info .cb-prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.cb-info .cb-prose h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.cb-info .cb-prose h4, .cb-info .cb-prose h5 { font-size: 1.1rem; margin-top: 1.25rem; }
.cb-faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); }
.cb-faq .accordion-button { font-weight: 600; padding: 1.1rem 0; background: none; box-shadow: none; color: var(--ink); }
.cb-faq .accordion-body { padding: 0 0 1.25rem; }

/* Commandes du client */
.cb-orders { display: grid; gap: 1rem; }
.cb-order { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; background: #fff; }
.cb-order__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: .75rem; }
.cb-status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 2rem; background: var(--soft); color: var(--muted); }
.cb-status--ok { background: #e7f4e8; color: var(--ok); }
.cb-status--wait { background: #fff4e0; color: #9a5b00; }

/* Logos de paiement du pied de page : hauteur fixe (la règle globale img{height:auto} l'annulait) */
.cb-footer__pay img { height: 20px; width: auto; max-width: none; }
.cb-footer__pay img[alt="PayPal"] { height: 15px; }
.cb-footer__pay img[alt="Cartes bancaires"] { height: 24px; }
html, body { overflow-x: clip; }
.cb-form label.cb-option { display: flex; font-weight: 400; margin-bottom: 0; }
.cb-form label.form-check-label { display: inline; font-weight: 400; }
.cb-info .cb-prose .accordion-header { margin: 0; font-size: 1rem; }
.cb-faq .accordion-button { font-size: 1.02rem; font-family: var(--font); }
.cb-info .cb-prose h2 + .accordion { margin-top: .5rem; }
.cb-footer .row img { height: 36px; width: auto; max-width: 100%; }

.cb-hero--pro { min-height: 460px; padding: 4.5rem 0; }

/* Mobile : espacement des grilles limité à la marge du conteneur (évite un dépassement de 12 px) */
@media (max-width: 767.98px) { .row.g-5, .row.g-4, .row.g-lg-5 { --bs-gutter-x: 1.5rem; } }
@media (max-width: 767.98px) { .cb-hero--pro { padding: 13rem 0 3rem; min-height: 0; } }

/* Blog : méta, encadré « L'essentiel », produits du guide */
.cb-article-meta { color: var(--muted); font-size: .85rem; margin: .75rem 0 0; }
.cb-essentials { background: var(--soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 2rem; }
.cb-essentials__title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 0 0 .5rem; }
.cb-essentials ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.cb-article-products { border-top: 1px solid var(--line); padding-top: 2rem; margin: 1rem 0 2rem; }
.cb-chips--light .cb-chip { border-color: #cfd5db; color: var(--ink); background: #fff; }
.cb-chips--light .cb-chip:hover { background: var(--soft); color: var(--ink); }
.cb-chips--light .cb-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cb-guide[hidden] { display: none; }
