/* ── Boutique realiste « Maison Orée » ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --b-bg: #f7f4ef;
    --b-surface: #ffffff;
    --b-ink: #1f1d1a;
    --b-muted: #7a736a;
    --b-line: #e4ded4;
    --b-accent: #23312a;
    --b-accent-hover: #314438;
    --b-gold: #a8834a;
    --b-ok: #2f6b45;
    --b-error: #b23b2e;
    --b-serif: 'Fraunces', Georgia, serif;
    --b-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --b-radius: 6px;
}

html { -webkit-text-size-adjust: 100%; }
body.boutique {
    background: var(--b-bg);
    color: var(--b-ink);
    font: 15px/1.6 var(--b-sans);
    -webkit-font-smoothing: antialiased;
}
.boutique img { max-width: 100%; display: block; }
.boutique a { color: inherit; }
.b-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.b-muted { color: var(--b-muted); font-size: 0.875rem; }
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── En-tete ── */
.b-topbar { background: var(--b-accent); color: #e9e4da; text-align: center; font-size: 0.8rem; letter-spacing: 0.02em; padding: 8px 16px; }
.b-header { background: var(--b-bg); border-bottom: 1px solid var(--b-line); position: sticky; top: 0; z-index: 20; }
.b-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.b-nav { display: flex; gap: 24px; font-size: 0.875rem; }
.b-nav a { text-decoration: none; color: var(--b-muted); }
.b-nav a:hover { color: var(--b-ink); }
.b-logo { font-family: var(--b-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; grid-column: 2; }
.b-logo--small { font-size: 1.2rem; margin-bottom: 6px; }
.b-header__actions, .b-secure { grid-column: 3; justify-self: end; }
.b-secure { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--b-muted); }
.b-cart-btn { position: relative; background: none; border: 0; cursor: pointer; color: var(--b-ink); padding: 8px; }
.b-cart-count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--b-accent); color: #fff; font-size: 0.7rem; line-height: 18px; text-align: center; padding: 0 4px; }

/* ── Boutons ── */
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 24px; border-radius: var(--b-radius); border: 1px solid transparent; font: 500 0.95rem var(--b-sans); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.b-btn--primary { background: var(--b-accent); color: #fff; }
.b-btn--primary:hover { background: var(--b-accent-hover); }
.b-btn--primary:disabled { opacity: .6; cursor: wait; }
.b-btn--ghost { background: transparent; border-color: var(--b-line); color: var(--b-ink); }
.b-btn--ghost:hover { border-color: var(--b-ink); }
.b-btn--block { width: 100%; }
.b-btn--lg { height: 56px; font-size: 1.05rem; }
.b-btn.is-disabled { opacity: .45; pointer-events: none; }
.b-link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; color: var(--b-muted); text-decoration: underline; cursor: pointer; }
.b-icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--b-muted); padding: 6px; }

/* ── Fiche produit ── */
.b-crumbs { font-size: 0.8rem; color: var(--b-muted); padding: 20px 0; }
.b-crumbs a { text-decoration: none; }
.b-product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.b-gallery { position: sticky; top: 92px; }
.b-gallery__main { position: relative; background: #e9e5df; border-radius: var(--b-radius); overflow: hidden; aspect-ratio: 1; }
.b-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.b-badge { position: absolute; top: 16px; left: 16px; background: var(--b-surface); font-size: 0.75rem; font-weight: 500; padding: 4px 10px; border-radius: 20px; }
.b-gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.b-gallery__thumbs button { border: 1px solid transparent; border-radius: var(--b-radius); overflow: hidden; padding: 0; cursor: pointer; background: none; aspect-ratio: 1; }
.b-gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.b-gallery__thumbs button.is-active { border-color: var(--b-ink); }

.b-eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--b-gold); margin-bottom: 8px; }
.b-title { font-family: var(--b-serif); font-weight: 400; font-size: 2.4rem; line-height: 1.15; letter-spacing: -0.01em; }
.b-rating { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 0.875rem; text-decoration: none; }
.b-rating span:last-child { color: var(--b-muted); }
.b-stars { color: var(--b-gold); letter-spacing: 1px; }
.b-price { font-size: 1.6rem; font-weight: 500; margin: 18px 0 14px; }
.b-price__tax { font-size: 0.8rem; color: var(--b-muted); font-weight: 400; margin-left: 4px; }
.b-lede { color: #4a463f; max-width: 52ch; }

.b-options { margin-top: 28px; display: grid; gap: 22px; }
.b-field { border: 0; }
.b-field legend { font-size: 0.875rem; color: var(--b-muted); margin-bottom: 10px; }
.b-field legend strong { color: var(--b-ink); font-weight: 500; }
.b-swatches { display: flex; gap: 12px; }
.b-swatch { cursor: pointer; }
.b-swatch input, .b-size input { position: absolute; opacity: 0; pointer-events: none; }
.b-swatch__dot { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.b-swatch input:checked + .b-swatch__dot { outline-color: var(--b-ink); }
.b-swatch input:focus-visible + .b-swatch__dot { outline: 2px solid var(--b-gold); }
.b-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b-size span { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: var(--b-surface); cursor: pointer; font-weight: 500; transition: border-color .15s; }
.b-size small { font-weight: 400; color: var(--b-muted); font-size: 0.8rem; }
.b-size input:checked + span { border-color: var(--b-ink); box-shadow: inset 0 0 0 1px var(--b-ink); }
.b-size input:focus-visible + span { outline: 2px solid var(--b-gold); }
.b-check { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; cursor: pointer; }
.b-check input { width: 18px; height: 18px; accent-color: var(--b-accent); }
.b-check em { font-style: normal; color: var(--b-muted); }
.b-check--small { font-size: 0.85rem; margin-top: 10px; }

.b-buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.b-qty { display: flex; align-items: center; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: var(--b-surface); height: 50px; }
.b-qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--b-ink); }
.b-qty input { width: 36px; border: 0; text-align: center; font: 500 1rem var(--b-sans); background: none; -moz-appearance: textfield; }
.b-qty input::-webkit-outer-spin-button, .b-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.b-reassure { list-style: none; display: grid; gap: 10px; margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--b-line); border-bottom: 1px solid var(--b-line); font-size: 0.875rem; }
.b-reassure li { display: flex; gap: 10px; align-items: center; }
.b-reassure svg { color: var(--b-gold); flex-shrink: 0; }
.b-accordion details { border-bottom: 1px solid var(--b-line); padding: 14px 0; }
.b-accordion summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.b-accordion summary::after { content: '+'; color: var(--b-muted); }
.b-accordion details[open] summary::after { content: '−'; }
.b-accordion p { margin-top: 8px; color: #4a463f; font-size: 0.9rem; }

.b-reviews { margin: 80px 0 40px; }
.b-reviews h2 { font-family: var(--b-serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 24px; }
.b-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.b-reviews blockquote { background: var(--b-surface); border-radius: var(--b-radius); padding: 24px; }
.b-reviews blockquote p { margin: 10px 0 14px; }
.b-reviews cite { font-style: normal; font-size: 0.85rem; color: var(--b-muted); }
.b-reviews__note { font-size: 0.75rem; color: var(--b-muted); margin-top: 12px; }

/* ── Panier lateral ── */
.b-drawer { position: fixed; inset: 0; z-index: 50; }
.b-drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 15, .4); opacity: 0; transition: opacity .25s; }
.b-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--b-bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.b-drawer.is-open .b-drawer__backdrop { opacity: 1; }
.b-drawer.is-open .b-drawer__panel { transform: none; }
.b-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--b-line); }
.b-drawer__head h2 { font-family: var(--b-serif); font-weight: 400; font-size: 1.4rem; }
.b-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.b-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--b-line); display: grid; gap: 10px; }
.b-empty { color: var(--b-muted); padding: 24px 0; }

/* ── Lignes de commande ── */
.b-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--b-line); }
.b-line:last-child { border-bottom: 0; }
.b-line__img { position: relative; width: 64px; height: 64px; border-radius: var(--b-radius); background: #e9e5df; }
.b-line__img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--b-radius); }
.b-line__qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--b-muted); color: #fff; font-size: 0.75rem; line-height: 22px; text-align: center; padding: 0 5px; }
.b-line__info { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; min-width: 0; }
.b-line__info strong { font-weight: 500; }
.b-line__info .b-link { align-self: flex-start; margin-top: 2px; }
.b-line__price { font-size: 0.9rem; white-space: nowrap; }
.b-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 4px 0; }
.b-row[hidden] { display: none; }
.b-row--strong { font-weight: 500; font-size: 1rem; }
.b-row--total { font-size: 1.15rem; font-weight: 600; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--b-line); align-items: baseline; }
.b-currency { font-size: 0.75rem; font-weight: 400; color: var(--b-muted); margin-right: 4px; }
.b-tax { text-align: right; }

/* ── Commande ── */
.b-checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.b-steps { list-style: none; display: flex; gap: 8px; font-size: 0.8rem; color: var(--b-muted); margin-bottom: 28px; flex-wrap: wrap; }
.b-steps li + li::before { content: '›'; margin-right: 8px; }
.b-steps .is-current { color: var(--b-ink); font-weight: 500; }
.b-block { margin-bottom: 32px; }
.b-block h2 { font-family: var(--b-serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 14px; }
.b-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-input { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.b-input label { font-size: 0.8rem; color: var(--b-muted); }
.b-input input { height: 46px; border: 1px solid var(--b-line); border-radius: var(--b-radius); padding: 0 14px; font: 0.95rem var(--b-sans); color: var(--b-ink); background: var(--b-surface); }
.b-input input:focus { outline: none; border-color: var(--b-ink); }
.b-input input[readonly] { background: #f1eee9; color: #5a554d; }
.b-input input.is-invalid { border-color: var(--b-error); }
.b-radios { border: 1px solid var(--b-line); border-radius: var(--b-radius); background: var(--b-surface); }
.b-radio { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.b-radio + .b-radio { border-top: 1px solid var(--b-line); }
.b-radio input { width: 18px; height: 18px; accent-color: var(--b-accent); }
.b-radio__body { display: flex; flex-direction: column; font-size: 0.9rem; }
.b-radio__body strong { font-weight: 500; }
.b-radio__body small { color: var(--b-muted); }
.b-radio__price { font-size: 0.9rem; font-weight: 500; }
.b-card { border: 1px solid var(--b-line); border-radius: var(--b-radius); background: var(--b-surface); padding: 16px; margin-top: 10px; }
.b-card__brands { display: flex; gap: 6px; margin-bottom: 12px; }
.b-card__brands span { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em; border: 1px solid var(--b-line); border-radius: 3px; padding: 2px 6px; color: var(--b-muted); }
.b-card__note { font-size: 0.75rem; color: var(--b-muted); }
.b-legal { font-size: 0.75rem; color: var(--b-muted); text-align: center; margin-top: 12px; }

.b-summary { background: var(--b-surface); border-radius: var(--b-radius); padding: 28px; position: sticky; top: 92px; }
.b-summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.b-summary__head h2 { font-family: var(--b-serif); font-weight: 400; font-size: 1.35rem; }
.b-summary__lines { border-bottom: 1px solid var(--b-line); margin-bottom: 16px; }
.b-promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.b-promo input { height: 46px; border: 1px solid var(--b-line); border-radius: var(--b-radius); padding: 0 14px; font: 0.9rem var(--b-sans); text-transform: uppercase; }
.b-promo .b-btn { height: 46px; padding: 0 16px; }
.b-promo__msg { font-size: 0.8rem; color: var(--b-muted); margin: 8px 0 16px; }
.b-promo__msg.is-ok { color: var(--b-ok); }
.b-promo__msg.is-error { color: var(--b-error); }

.b-processing { position: fixed; inset: 0; z-index: 60; background: rgba(247, 244, 239, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-weight: 500; }
.b-processing[hidden] { display: none; }
.b-spinner { width: 36px; height: 36px; border: 3px solid var(--b-line); border-top-color: var(--b-accent); border-radius: 50%; animation: b-spin .8s linear infinite; }
@keyframes b-spin { to { transform: rotate(360deg); } }

/* ── Confirmation ── */
.b-thanks { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding-top: 48px; padding-bottom: 64px; align-items: start; }
.b-thanks__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--b-ok); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.b-thanks .b-lede { margin: 14px 0 32px; }
.b-thanks__details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--b-surface); border-radius: var(--b-radius); padding: 24px; font-size: 0.9rem; }
.b-thanks__details h3 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--b-muted); font-weight: 500; margin-bottom: 8px; }

/* ── Pied de page ── */
.b-footer { border-top: 1px solid var(--b-line); margin-top: 40px; padding: 40px 0 24px; font-size: 0.875rem; color: var(--b-muted); }
.b-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.b-footer .b-logo { color: var(--b-ink); }
.b-footer ul { list-style: none; display: grid; gap: 6px; }
.b-footer a { text-decoration: none; }
.b-footer a:hover { color: var(--b-ink); }
.b-footer__demo { max-width: 1180px; margin: 32px auto 0; padding: 16px 24px 0; border-top: 1px solid var(--b-line); font-size: 0.75rem; }
.b-footer__demo a { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 900px) {
    .b-product, .b-checkout, .b-thanks { grid-template-columns: 1fr; gap: 32px; }
    .b-gallery, .b-summary { position: static; }
    .b-checkout .b-summary { order: -1; }
    .b-reviews__grid { grid-template-columns: 1fr; }
    .b-title { font-size: 1.9rem; }
}
@media (max-width: 600px) {
    .b-wrap { padding: 0 16px; }
    .b-nav { display: none; }
    .b-header__inner { grid-template-columns: 1fr auto; }
    .b-logo { grid-column: 1; }
    .b-header__actions, .b-secure { grid-column: 2; }
    .b-buy { grid-template-columns: 1fr; }
    .b-qty { justify-self: start; }
    .b-thanks__details { grid-template-columns: 1fr; }
    .b-summary { padding: 20px; }
}
