/* Base structurelle Marketplace historique; l’identité active est portée par ivarotra-redesign.css. */
:root {
  --primary:#65795E; --primary-hover:#354431; --primary-light:#EFF4EC;
  --accent:#65795E; --accent-hover:#354431; --bg:#F7F8F6; --surface:#fff;
  --surface-soft:#F3F6F1; --text:#20251F; --text-muted:#7B8477;
  --line:#E7EBE4; --line-dark:#D5DDD1; --radius-sm:8px; --radius-md:13px;
  --radius-lg:17px; --shadow-sm:0 5px 16px rgba(34,48,30,.07);
  --shadow-md:0 12px 35px rgba(34,48,30,.09);
  --shadow-lg:0 25px 70px rgba(20,30,18,.22); --container:1450px;
}
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { margin:0; background:var(--bg); color:var(--text); font:14px/1.5 Inter,Arial,sans-serif; overflow-x:hidden; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
::selection { background:#DCE7D7; color:var(--primary-hover); }
:where(a,button,input,select,textarea):focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.container { width:min(var(--container),calc(100% - 8%)); margin-inline:auto; }

.topbar { min-height:32px; padding:7px 5%; display:flex; align-items:center; justify-content:space-between; gap:16px; background:#344330; color:#fff; font-size:11px; }
.topbar span:last-child { color:#e1e8de; }
header.site-header { position:sticky; top:0; z-index:100; background:#fff; border-bottom:1px solid var(--line); }
.nav-wrap.header { max-width:1450px; min-height:72px; padding:13px 4%; display:flex; align-items:center; gap:clamp(14px,2vw,28px); }
.brand-logo.logo { display:flex; flex:0 0 auto; align-items:center; gap:10px; color:var(--primary-hover); font:850 23px/1 Inter,Arial,sans-serif; white-space:nowrap; }
.brand-logo.logo img { width:auto; height:39px; object-fit:contain; }
.nav-links { display:flex; flex:0 0 auto; align-items:center; gap:clamp(13px,1.8vw,24px); white-space:nowrap; font-size:12px; font-weight:700; }
.nav-links a:hover { color:var(--primary); }
.market-search.search { position:relative; flex:1 1 300px; max-width:480px; min-width:170px; margin-left:auto; }
.market-search.search:before { content:"⌕"; position:absolute; left:14px; top:5px; color:var(--primary); font-size:23px; line-height:1.3; pointer-events:none; }
.market-search.search input { width:100%; min-height:43px; padding:10px 14px 10px 41px; border:1px solid var(--line); border-radius:10px; outline:0; background:#F8F9F7; color:var(--text); }
.market-search.search input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(101,121,94,.12); }
.market-search.search input::placeholder { color:#737D70; opacity:1; }
.nav-actions.header-actions { display:flex; flex:0 0 auto; gap:8px; }
.btn { display:inline-flex; min-height:41px; align-items:center; justify-content:center; gap:7px; padding:9px 13px; border:1px solid transparent; border-radius:9px; font-size:12px; font-weight:750; transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.btn-primary { background:linear-gradient(145deg,#7B906F,#526A49); color:#fff; box-shadow:inset 0 1px 0 #ffffff55,0 3px 8px #35443125; }
.btn-primary:hover { background:linear-gradient(145deg,#6D8262,#354431); transform:translateY(-1px); box-shadow:0 6px 14px #35443135; }
.btn-outline { border-color:var(--line); background:#fff; color:var(--primary-hover); }
.btn-outline:hover { border-color:#C9D7C2; background:#EFF4EC; }

.marketplace-main { max-width:1450px; padding:27px 4% 55px; }
.heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 20px; }
.heading h1 { margin:0 0 5px; color:var(--text); font-size:25px; font-weight:780; line-height:1.2; letter-spacing:-.03em; }
.heading p { margin:0; color:var(--text-muted); font-size:12px; }
.heading small { flex:0 0 auto; padding:10px 14px; border-radius:9px; background:#EFF4EC; color:var(--primary-hover); font-size:11px; font-weight:750; }
.categories { display:flex; gap:10px; overflow-x:auto; margin:0 0 23px; padding:3px 0 17px; border-bottom:1px solid var(--line); scrollbar-width:thin; }
.category { flex:0 0 auto; min-height:40px; padding:9px 16px; border:1px solid var(--line); border-radius:30px; background:#fff; color:#60695C; font-size:12px; font-weight:700; white-space:nowrap; transition:background .18s ease,color .18s ease,border-color .18s ease; }
.category.active,.category:hover { border-color:var(--primary); background:var(--primary); color:#fff; }
.layout { display:grid; grid-template-columns:220px minmax(0,1fr); align-items:start; gap:25px; }
.sidebar { min-width:0; padding:17px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.filter-group+.filter-group { margin-top:16px; padding-top:15px; border-top:1px solid var(--line); }
.filter-title { margin:0 0 10px; color:var(--text); font-size:12px; font-weight:800; }
.filter-option { display:flex; align-items:flex-start; gap:9px; margin:10px 0; color:#626B5E; font-size:11px; line-height:1.4; }
.filter-option input { flex:0 0 auto; width:15px; height:15px; margin:1px 0 0; accent-color:var(--primary); }
#sellerFilters { max-height:260px; overflow:auto; }
.filter-field { display:grid; gap:5px; margin-bottom:9px; color:#626B5E; font-size:10px; font-weight:700; }
.filter-field input,.location-filter { width:100%; min-height:38px; padding:8px 9px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--text); font-size:11px; }
.filter-field input::placeholder,.location-filter::placeholder { color:#818A7D; opacity:1; }
.range-label { display:flex; justify-content:space-between; margin:9px 0 6px; color:var(--text-muted); font-size:10px; }
.range-label strong { color:var(--primary-hover); font-weight:750; }
.range { display:block; width:100%; margin:5px 0 12px; accent-color:var(--primary); }
.filter-reset { width:100%; min-height:38px; margin-top:14px; padding:8px; border:1px solid #DCE6D6; border-radius:8px; background:#F0F4ED; color:var(--primary-hover); font-size:11px; font-weight:800; }
.filter-reset:hover { background:var(--primary); color:#fff; }
.catalogue-top { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 15px; }
.catalogue-top>span { color:var(--text-muted); font-size:12px; }
.sort-control { display:flex; align-items:center; gap:8px; color:#626B5E; font-size:11px; white-space:nowrap; }
.sort-control select { min-height:38px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#4E5849; font-size:11px; }
.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.product { display:flex; min-width:0; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:#fff; transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.product:hover { transform:translateY(-3px); border-color:#CDD8C8; box-shadow:var(--shadow-md); }
.product-image { position:relative; aspect-ratio:1/1; overflow:hidden; background:#F0F2EE; cursor:pointer; }
.product-image img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.product:hover .product-image img { transform:scale(1.04); }
.tag { position:absolute; top:11px; left:11px; padding:5px 8px; border-radius:5px; background:var(--primary); color:#fff; font-size:9px; font-weight:800; }
.favorite-button { position:absolute; top:10px; right:10px; display:grid; width:34px; height:34px; place-items:center; border:1px solid #E7EBE4; border-radius:50%; background:#ffffffed; color:#596451; font-size:20px; line-height:1; }
.favorite-button:hover,.favorite-button.liked { color:#D34C62; }
.product-info { display:flex; flex:1; flex-direction:column; padding:13px; }
.seller { margin-bottom:5px; color:var(--primary); font-size:10px; font-weight:800; }
.product-name { min-height:34px; margin:0 0 8px; color:var(--text); font-size:13px; font-weight:750; line-height:1.35; }
.price-line { display:flex; align-items:center; gap:8px; margin:0 0 11px; }
.price { color:var(--text); font-size:16px; font-weight:850; font-variant-numeric:tabular-nums; }
.card-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:auto; }
.buy-button,.add-cart-button { width:100%; min-height:39px; padding:8px 7px; border-radius:8px; font-size:10px; font-weight:800; }
.buy-button { border:0; background:#F0F4ED; color:var(--primary-hover); }
.buy-button:hover { background:var(--primary); color:#fff; }
.add-cart-button { background:#fff; color:var(--primary-hover); }
.empty { grid-column:1/-1; padding:35px 20px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--text-muted); text-align:center; }
.empty h3 { margin:0 0 7px; color:var(--text); font-size:16px; }
.empty p { margin:0; font-size:12px; }

.stores-section { margin-top:42px; padding-top:25px; border-top:1px solid var(--line); }
.stores-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:15px; }
.stores-title h2 { margin:0; color:var(--text); font-size:19px; font-weight:800; }
.stores-title>span { color:var(--text-muted); font-size:11px; }
.stores { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.store { display:flex; min-width:0; min-height:72px; align-items:center; gap:11px; padding:13px; border:1px solid var(--line); border-radius:12px; background:#fff; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.store:hover { transform:translateY(-2px); border-color:#CDD8C8; box-shadow:var(--shadow-sm); }
.store-icon { display:grid; flex:0 0 43px; width:43px; height:43px; place-items:center; border-radius:11px; background:#EDF2E9; color:var(--primary-hover); font-size:13px; font-weight:850; }
.store-logo { object-fit:contain; padding:3px; }
.store>b,.store>span:not(.store-icon):not(.store-cta) { display:grid; min-width:0; gap:3px; }
.store-name { display:block; color:var(--text); font-size:12px; font-weight:800; line-height:1.35; overflow-wrap:anywhere; }
.store-place { display:block; color:var(--text-muted); font-size:10px; line-height:1.35; }
.store-cta { margin-left:auto; color:var(--primary); font-size:15px; font-weight:800; }

/* Existing real product/cart/order modals */
.modal-overlay { padding:18px; background:rgba(23,32,21,.68); backdrop-filter:blur(4px); }
.modal-box { border:1px solid rgba(255,255,255,.55); border-radius:17px; background:#fff; box-shadow:var(--shadow-lg); }
.modal-close { border-radius:8px; background:#F0F2EE; color:#4A5545; }
.modal-grid { grid-template-columns:1fr 1fr; }
.modal-photo { background:#F3F6F1; }
.modal-photo img { object-fit:contain; mix-blend-mode:multiply; }
.modal-body { padding:26px; }
.modal-shop-badge { color:var(--primary); }
.modal-title { color:var(--text); font-family:Inter,Arial,sans-serif; font-size:23px; font-weight:800; }
.modal-price { color:var(--text); font-variant-numeric:tabular-nums; }
.modal-desc { color:#727B6F; }
.cart-fab { min-height:47px; border:1px solid #ffffff50; border-radius:11px; background:linear-gradient(145deg,#7B906F,#354431); box-shadow:0 7px 20px #23311f3d; }
.cart-fab:hover { background:#354431; }
.cart-fab-count { color:var(--primary-hover); }
#cartItems input,#cartItems select,#checkoutBody input,#checkoutBody select,#checkoutBody textarea { min-height:40px; border-radius:8px; font-family:Inter,Arial,sans-serif; }
#analyticsConsent { border-color:var(--line); border-radius:13px !important; font-family:Inter,Arial,sans-serif; }

@media (max-width:1120px) {
  .products { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .stores { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px) {
  .nav-wrap.header { flex-wrap:wrap; }
  .market-search.search { order:3; flex:1 1 100%; max-width:none; }
  .nav-links { margin-left:auto; }
  .layout { grid-template-columns:200px minmax(0,1fr); gap:17px; }
  .products { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stores { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .topbar { padding-inline:14px; font-size:10px; }
  .topbar span:last-child { display:none; }
  .container { width:calc(100% - 28px); }
  .marketplace-main { padding:21px 14px 40px; }
  .nav-wrap.header { gap:10px 12px; padding:11px 14px; }
  .brand-logo.logo { font-size:20px; }
  .brand-logo.logo img { height:35px; }
  .nav-links { order:4; flex:1 1 100%; gap:18px; overflow-x:auto; padding:3px 0; white-space:nowrap; }
  .nav-actions.header-actions { margin-left:auto; }
  .nav-actions.header-actions .btn { min-height:39px; padding:7px 9px; font-size:10px; }
  .heading { align-items:flex-start; flex-direction:column; gap:10px; }
  .heading h1 { font-size:22px; }
  .categories { margin-bottom:17px; padding-bottom:12px; }
  .category { min-height:41px; padding-inline:14px; }
  .layout { grid-template-columns:minmax(0,1fr); gap:15px; }
  .sidebar { padding:14px; }
  .filter-group#sellerFilters { max-height:180px; }
  #sellerFilters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 8px; }
  .catalogue-top { align-items:flex-start; }
  .sort-control { align-items:flex-start; flex-direction:column; gap:5px; }
  .sort-control select { max-width:100%; }
  .products { gap:10px; }
  .product-info { padding:10px; }
  .product-name { min-height:33px; font-size:12px; }
  .price { font-size:14px; }
  .card-actions { grid-template-columns:1fr; gap:6px; }
  .buy-button,.add-cart-button { min-height:39px; }
  .stores-section { margin-top:31px; }
  .stores-title { align-items:flex-start; flex-direction:column; gap:4px; }
  .stores { grid-template-columns:1fr; }
  .modal-overlay { padding:10px; }
  .modal-grid { grid-template-columns:1fr; }
  .modal-photo { min-height:0; height:230px; }
  .modal-body { padding:20px; }
}
@media (max-width:380px) {
  .marketplace-main { padding-inline:10px; }
  .products { gap:8px; }
  .product-info { padding:9px; }
  .product-name { font-size:11px; }
  .nav-actions.header-actions .btn { padding-inline:7px; font-size:9px; }
}
@media (hover:hover) and (pointer:fine) {
  .product:hover,.store:hover { will-change:transform; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
.qv-modal-box { max-width:920px; }
.qv-gallery { display:flex; flex-direction:column; gap:12px; padding:20px; }
.qv-main-image { display:grid; min-height:360px; aspect-ratio:1/1; place-items:center; overflow:hidden; border-radius:12px; background:#F0F2EE; }
.qv-main-image img { width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.qv-thumbnails { display:flex; gap:8px; overflow-x:auto; }
.qv-thumb { flex:0 0 62px; width:62px; height:58px; padding:0; overflow:hidden; border:2px solid transparent; border-radius:8px; background:#fff; }
.qv-thumb.active { border-color:var(--primary); }
.qv-thumb img { width:100%; height:100%; object-fit:cover; }
.qv-place { margin:-7px 0 12px; color:var(--text-muted); font-size:12px; }
.modal-price { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.modal-price del { color:#92998E; font-size:14px; font-weight:500; }
.modal-price small { color:#a83c36; font-size:11px; font-weight:800; }
.qv-variants { display:grid; gap:15px; margin:8px 0 18px; }
.qv-option-title { margin:0 0 8px; color:var(--text); font-size:12px; font-weight:800; }
.qv-option-title span { color:var(--text-muted); font-weight:500; }
.qv-swatches,.qv-sizes { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.qv-swatch { width:31px; height:31px; padding:0; border:2px solid #fff; border-radius:6px; background:var(--swatch); box-shadow:0 0 0 1px var(--line-dark); }
.qv-swatch.active { box-shadow:0 0 0 2px var(--primary); }
.qv-size { min-height:35px; padding:7px 12px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--text); font-size:11px; font-weight:700; }
.qv-size.active { border-color:var(--primary); background:var(--primary-light); color:var(--primary-hover); }
.qv-quantity { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 18px; font-size:12px; font-weight:800; }
.qv-quantity-control { display:flex; height:38px; overflow:hidden; border:1px solid var(--line); border-radius:8px; }
.qv-quantity-control button { width:38px; border:0; background:var(--surface-soft); color:var(--primary-hover); font-size:18px; font-weight:700; }
.qv-quantity-control input { width:48px; border:0; border-radius:0; text-align:center; appearance:textfield; }
.qv-quantity-control input::-webkit-inner-spin-button,.qv-quantity-control input::-webkit-outer-spin-button { margin:0; appearance:none; }
.modal-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:auto; }
.modal-actions .qv-order-button { grid-column:1/-1; min-height:48px; }
.modal-actions #qvBtnShop,.modal-actions #qvBtnAdd { min-height:40px; padding:8px; font-size:11px; }
@media (max-width:680px) {
  .qv-gallery { height:auto; min-height:0; gap:9px; padding:14px 14px 0; }
  .qv-main-image { min-height:0; max-height:42vh; aspect-ratio:1/1; }
  .modal-body { padding:18px 20px 20px; }
  .modal-title { font-size:20px; }
  .modal-price { margin-bottom:12px; font-size:21px; }
}

/* Marketplace checkout: identité sauge, hiérarchie lisible et champs confortables */
.checkout-title { margin:0 34px 22px 0; color:var(--text); font-size:25px; font-weight:800; line-height:1.2; letter-spacing:-.03em; }
#checkoutBody { display:grid; gap:18px; }
.checkout-section { min-width:0; }
.checkout-section-title { margin:0 0 12px; color:var(--text); font-size:16px; font-weight:800; letter-spacing:-.02em; }
.checkout-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.checkout-field { display:grid; min-width:0; gap:6px; color:#465143; font-size:12px; font-weight:750; }
.checkout-field-wide { margin-top:12px; }
.checkout-optional { color:#737D70; font-size:11px; font-weight:500; }
#checkoutBody input,#checkoutBody select,#checkoutBody textarea { width:100%; min-height:48px; padding:11px 12px; border:1px solid #CBD4C6; border-radius:9px; background:#fff; color:var(--text); font:inherit; font-size:max(1rem,14px); line-height:1.4; }
#checkoutBody textarea { min-height:74px; resize:vertical; }
#checkoutBody input::placeholder,#checkoutBody textarea::placeholder { color:#737D70; opacity:1; font-weight:400; }
#checkoutBody input:focus,#checkoutBody select:focus,#checkoutBody textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(101,121,94,.13); }
.checkout-summary { padding-top:17px; border-top:1px solid var(--line); }
.checkout-shop { margin:0 0 11px; padding:15px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.checkout-shop-name { margin:0 0 9px; color:var(--primary-hover); font-size:14px; font-weight:800; }
.checkout-items { display:grid; gap:6px; margin:0 0 13px; padding-left:18px; color:#535D4F; font-size:12px; line-height:1.5; }
.checkout-items li { padding-left:2px; }
.checkout-delivery-row { display:flex; align-items:end; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.checkout-zone-field { flex:1 1 250px; }
.checkout-fee { padding-bottom:11px; color:#4C5748; font-size:12px; font-weight:750; }
.feeVal { color:var(--text); font-variant-numeric:tabular-nums; }
.payInfo { margin-top:10px !important; padding:10px 12px; border-radius:8px; background:#F2F5EF; color:#475342 !important; font-size:12px !important; line-height:1.5; }
.checkout-total { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 17px; border-radius:11px; background:#EFF4EC; color:#354431; font-size:14px; font-weight:750; }
.checkout-total strong { color:#263623; font-size:20px; font-variant-numeric:tabular-nums; text-align:right; }
.checkout-error { min-height:0; color:#9D3730; font-size:13px; font-weight:650; }
.checkout-error:not(:empty) { padding:10px 12px; border:1px solid #E8C9C5; border-radius:8px; background:#FFF6F4; }
.checkout-submit { width:100%; min-height:50px; margin-top:-7px; font-size:14px; }
.checkout-submit:disabled { cursor:wait; opacity:.72; transform:none; }
#confirmBody { padding:10px 4px 2px; text-align:center; }
.confirm-mark { display:grid; width:60px; height:60px; margin:0 auto 17px; place-items:center; border-radius:50%; background:#EAF1E6; color:#435A3C; }
.confirm-mark svg { width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; }
.confirm-title { margin:0 0 9px; color:var(--text); font-size:25px; font-weight:800; letter-spacing:-.03em; }
.confirm-intro { max-width:42ch; margin:0 auto 20px; color:#596354; font-size:14px; line-height:1.55; }
.confirm-reference { display:grid; grid-template-columns:1fr auto; gap:9px 14px; padding:15px; border:1px solid var(--line); border-radius:11px; background:#F7F9F5; text-align:left; }
.confirm-reference span { color:#687262; font-size:12px; }
.confirm-reference strong { color:#263623; font-size:12px; font-variant-numeric:tabular-nums; text-align:right; overflow-wrap:anywhere; }
.confirm-next { max-width:48ch; margin:17px auto 20px; color:#596354; font-size:12px; line-height:1.6; }
.confirm-close { width:100%; min-height:48px; font-size:13px; }
/* Nouveau parcours de commande : fiche client claire, panneau de commande dense, puis reçu distinct. */
#checkoutModal .checkout-modal-box { width:min(1040px,calc(100vw - 32px)); max-width:1040px; max-height:min(92dvh,940px); overflow:auto; padding:clamp(22px,4vw,38px); border:0; border-radius:10px 10px 10px 28px; background:#F2F4F0; box-shadow:0 24px 80px rgba(16,35,25,.38); }
#checkoutModal .checkout-modal-box .modal-close { top:18px; right:18px; width:42px; height:42px; border:1px solid #d6ddd5; border-radius:50%; background:#fff; color:#26372d; }
#checkoutModal .checkout-title { margin:0; padding-inline-end:54px; color:#1C2C22; font-size:clamp(25px,3.4vw,36px); font-weight:820; line-height:1.08; letter-spacing:-.045em; text-wrap:balance; }
#checkoutModal .checkout-intro { margin:8px 0 0; color:#5d695f; font-size:13px; line-height:1.55; }
#checkoutModal .checkout-flow { display:flex; align-items:center; gap:0; margin:22px 0 18px; padding:13px 0; border-block:1px solid #d9ded8; list-style:none; }
#checkoutModal .checkout-flow li { display:flex; width:50%; align-items:center; gap:9px; color:#657067; font-size:12px; font-weight:750; }
#checkoutModal .checkout-flow li[aria-current="step"] { color:#26392e; }
#checkoutModal .checkout-flow-mark { display:grid; width:27px; height:27px; flex:0 0 27px; place-items:center; border:1px solid #cbd3ca; border-radius:50%; background:#fff; color:#68756a; font-size:11px; }
#checkoutModal .checkout-flow li[aria-current="step"] .checkout-flow-mark { border-color:#2b4134; background:#2b4134; color:#fff; }
#checkoutModal #checkoutBody { display:grid; grid-template-columns:minmax(0,1.04fr) minmax(300px,.96fr); align-items:stretch; gap:14px; }
#checkoutModal #checkoutBody .checkout-customer-panel { min-width:0; padding:clamp(18px,2.8vw,28px); border:1px solid #d9ded8; border-radius:7px 7px 7px 22px; background:#fff; }
#checkoutModal #checkoutBody .checkout-panel-heading { margin:0 0 23px; }
#checkoutModal #checkoutBody .checkout-panel-heading h3 { margin:0 0 7px; color:#213229; font-size:21px; font-weight:790; line-height:1.2; letter-spacing:-.035em; text-wrap:balance; }
#checkoutModal #checkoutBody .checkout-panel-heading p { max-width:39ch; margin:0; color:#69746b; font-size:12px; line-height:1.55; }
#checkoutModal #checkoutBody .checkout-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
#checkoutModal #checkoutBody .checkout-field { display:grid; min-width:0; gap:7px; color:#354339; font-size:12px; font-weight:740; line-height:1.4; }
#checkoutModal #checkoutBody .checkout-label-line { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:5px; }
#checkoutModal #checkoutBody .checkout-label-line .checkout-optional { display:inline; }
#checkoutModal #checkoutBody .checkout-label-line .checkout-optional-wide { flex-basis:100%; }
#checkoutModal #checkoutBody .checkout-required { display:inline-block; margin-inline-start:5px; color:#6c786e; font-size:10px; font-weight:550; }
#checkoutModal #checkoutBody .checkout-optional { display:block; color:#6c786e; font-size:11px; font-weight:500; line-height:1.45; }
#checkoutModal #checkoutBody .checkout-field-wide { margin-top:14px; }
#checkoutModal #checkoutBody input,#checkoutModal #checkoutBody select,#checkoutModal #checkoutBody textarea { width:100%; min-width:0; min-height:49px; padding:12px 13px; border:1px solid #aeb8ae; border-radius:4px; background:#fff; color:#1f2b23; font:inherit; font-size:max(1rem,14px); line-height:1.45; }
#checkoutModal #checkoutBody textarea { min-height:82px; resize:vertical; }
#checkoutModal #checkoutBody input::placeholder,#checkoutModal #checkoutBody textarea::placeholder { color:#778278; opacity:1; font-weight:400; }
#checkoutModal #checkoutBody input:focus-visible,#checkoutModal #checkoutBody select:focus-visible,#checkoutModal #checkoutBody textarea:focus-visible { outline:3px solid #66805e; outline-offset:2px; border-color:#344b39; }
#checkoutModal #checkoutBody .checkout-order-panel { display:flex; min-width:0; flex-direction:column; padding:clamp(19px,2.8vw,28px); border-radius:22px 7px 7px 7px; background:#293D31; color:#f5f6f2; }
#checkoutModal #checkoutBody .checkout-order-panel .checkout-panel-heading { margin-bottom:18px; }
#checkoutModal #checkoutBody .checkout-order-panel .checkout-panel-heading h3 { color:#fff; }
#checkoutModal #checkoutBody .checkout-order-panel .checkout-panel-heading p { color:#d0dad1; }
#checkoutModal #checkoutBody .checkout-shop-list { display:grid; gap:0; }
#checkoutModal #checkoutBody .checkout-shop { margin:0; padding:15px 0 17px; border:0; border-top:1px solid #607166; border-radius:0; background:transparent; }
#checkoutModal #checkoutBody .checkout-shop-name { margin:0 0 9px; color:#f2f5ef; font-size:13px; font-weight:780; }
#checkoutModal #checkoutBody .checkout-items { display:grid; gap:5px; margin:0 0 14px; padding:0; list-style:none; color:#dce4dc; font-size:11px; line-height:1.55; }
#checkoutModal #checkoutBody .checkout-items li { padding-inline-start:11px; border-inline-start:2px solid #a9bd96; overflow-wrap:anywhere; }
#checkoutModal #checkoutBody .checkout-delivery-row { display:grid; grid-template-columns:minmax(0,1fr); align-items:end; gap:8px; }
#checkoutModal #checkoutBody .checkout-zone-field { color:#f0f3ee; }
#checkoutModal #checkoutBody .zoneSel { border-color:#d5ddd3; background:#f7f8f5; color:#26362c; }
#checkoutModal #checkoutBody .checkout-fee { padding:0; color:#e1e8e0; font-size:11px; }
#checkoutModal #checkoutBody .feeVal { color:#fff; font-variant-numeric:tabular-nums; }
#checkoutModal #checkoutBody .payInfo { margin-top:10px !important; padding:10px 11px; border:1px solid #718377; border-radius:4px; background:#354b3d; color:#f0f4ed !important; font-size:11px !important; line-height:1.55; overflow-wrap:anywhere; }
#checkoutModal #checkoutBody .checkout-total { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding:16px 0 14px; border-top:1px solid #718075; border-radius:0; background:transparent; color:#fff; }
#checkoutModal #checkoutBody .checkout-total div { display:grid; gap:3px; }
#checkoutModal #checkoutBody .checkout-total span { font-size:13px; font-weight:760; }
#checkoutModal #checkoutBody .checkout-total small { color:#d0dad1; font-size:10px; line-height:1.4; }
#checkoutModal #checkoutBody .checkout-total strong { color:#fff; font-size:clamp(19px,2vw,25px); font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; }
#checkoutModal #checkoutBody .checkout-error { color:#ffe1da; font-size:12px; }
#checkoutModal #checkoutBody .checkout-error:not(:empty) { padding:10px; border:1px solid #d5988b; border-radius:4px; background:#4c3833; }
#checkoutModal #checkoutBody .checkout-submit { width:100%; min-height:53px; margin:12px 0 0; border:0; border-radius:4px 4px 4px 15px; background:#c5d4b5; color:#20352a; font-size:13px; font-weight:820; box-shadow:none; }
#checkoutModal #checkoutBody .checkout-submit:hover:not(:disabled) { background:#d7e2cc; transform:translateY(-1px); }
#checkoutModal #checkoutBody .checkout-submit:disabled { cursor:wait; opacity:.7; }

/* Le reçu de confirmation change de rythme et devient le point d’arrivée du parcours. */
#confirmModal .confirm-modal-box { width:min(720px,calc(100vw - 28px)); max-width:720px; padding:0; overflow:hidden; border:0; border-radius:8px 8px 8px 26px; background:#fff; }
#confirmModal .confirm-modal-box .modal-close { top:16px; right:16px; width:40px; height:40px; border:1px solid #ffffff72; border-radius:50%; background:#ffffff14; color:#fff; }
#confirmBody { padding:0; text-align:left; }
#confirmBody .confirmation-sheet { background:#fff; color:#1e2c23; }
#confirmBody .confirm-banner { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:19px; padding:clamp(27px,5vw,43px); border-bottom:5px solid #c4d0ae; background:#293d31; color:#fff; }
#confirmBody .confirm-mark { display:grid; width:58px; height:58px; flex:0 0 58px; margin:0; place-items:center; border:1px solid #a9bd96; border-radius:50%; background:#3a5140; color:#e9f0df; }
#confirmBody .confirm-mark svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; }
#confirmBody .confirm-kicker { margin:0 0 9px; color:#d5dfd0; font-size:11px; font-weight:700; letter-spacing:.04em; }
#confirmBody .confirm-title { margin:0 0 9px; color:#fff; font-size:clamp(24px,4vw,33px); font-weight:800; line-height:1.08; letter-spacing:-.04em; text-wrap:balance; }
#confirmBody .confirm-intro { max-width:44ch; margin:0; color:#e0e7df; font-size:13px; line-height:1.55; }
#confirmBody .confirm-receipt { display:grid; grid-template-columns:minmax(0,1fr) minmax(175px,.72fr); gap:0; margin:23px clamp(20px,4vw,36px) 0; border:1px solid #d8dfd7; background:#f5f7f3; }
#confirmBody .confirm-reference { display:grid; align-content:center; gap:8px; min-width:0; padding:18px; border:0; border-radius:0; background:transparent; text-align:left; }
#confirmBody .confirm-reference span,#confirmBody .confirm-amount span { color:#667268; font-size:11px; font-weight:680; }
#confirmBody .confirm-reference strong { color:#213229; font-size:13px; font-variant-numeric:tabular-nums; text-align:left; overflow-wrap:anywhere; }
#confirmBody .confirm-amount { display:grid; align-content:center; gap:8px; padding:18px; background:#e7ede1; }
#confirmBody .confirm-amount strong { color:#293d31; font-size:clamp(18px,3vw,23px); font-variant-numeric:tabular-nums; line-height:1.15; }
#confirmBody .confirm-next { display:grid; grid-template-columns:minmax(90px,.35fr) minmax(0,1fr); gap:12px; max-width:none; margin:20px clamp(20px,4vw,36px) 0; padding:17px 0; border-bottom:1px solid #dfe4de; color:#4f5d52; font-size:12px; line-height:1.6; }
#confirmBody .confirm-next h3 { margin:0; color:#27392e; font-size:13px; font-weight:780; }
#confirmBody .confirm-next p { margin:0; }
#confirmBody .confirm-payment-note { margin:14px clamp(20px,4vw,36px) 18px; color:#627065; font-size:11px; line-height:1.5; }
#confirmBody .confirm-close { width:calc(100% - clamp(40px,8vw,72px)); min-height:51px; margin:0 clamp(20px,4vw,36px) clamp(20px,4vw,34px); border:0; border-radius:4px 4px 4px 14px; background:#293d31; color:#fff; font-size:13px; }
#confirmBody .confirm-close:hover { background:#1f3025; }

@media (max-width:760px) {
  #checkoutModal .checkout-modal-box { width:calc(100vw - 16px); max-height:94dvh; padding:20px 16px 18px; border-radius:8px 8px 8px 19px; }
  #checkoutModal .checkout-modal-box .modal-close { top:12px; right:12px; width:40px; height:40px; }
  #checkoutModal .checkout-title { padding-inline-end:42px; font-size:25px; }
  #checkoutModal .checkout-intro { max-width:42ch; font-size:12px; }
  #checkoutModal .checkout-flow { margin:17px 0 14px; }
  #checkoutModal #checkoutBody { grid-template-columns:minmax(0,1fr); gap:11px; }
  #checkoutModal #checkoutBody .checkout-customer-panel { padding:19px 16px; border-radius:5px 5px 5px 17px; }
  #checkoutModal #checkoutBody .checkout-panel-heading { margin-bottom:16px; }
  #checkoutModal #checkoutBody .checkout-panel-heading h3 { font-size:19px; }
  #checkoutModal #checkoutBody .checkout-fields { grid-template-columns:minmax(0,1fr); gap:12px; }
  #checkoutModal #checkoutBody .checkout-field-wide { margin-top:12px; }
  #checkoutModal #checkoutBody .checkout-order-panel { padding:19px 16px; border-radius:17px 5px 5px 5px; }
  #checkoutModal #checkoutBody .checkout-shop { padding-block:13px 15px; }
  #checkoutModal #checkoutBody .checkout-total { margin-top:4px; }
  #confirmModal .confirm-modal-box { width:calc(100vw - 20px); border-radius:6px 6px 6px 19px; }
  #confirmModal .confirm-modal-box .modal-close { top:10px; right:10px; width:38px; height:38px; }
  #confirmBody .confirm-banner { grid-template-columns:1fr; gap:13px; padding:24px 20px 21px; }
  #confirmBody .confirm-mark { width:48px; height:48px; }
  #confirmBody .confirm-title { padding-inline-end:35px; font-size:26px; }
  #confirmBody .confirm-receipt { grid-template-columns:minmax(0,1fr); margin:16px 16px 0; }
  #confirmBody .confirm-reference { padding:14px; }
  #confirmBody .confirm-amount { padding:14px; }
  #confirmBody .confirm-next { grid-template-columns:minmax(0,1fr); gap:5px; margin:16px 16px 0; padding:14px 0; }
  #confirmBody .confirm-payment-note { margin:12px 16px 15px; }
  #confirmBody .confirm-close { width:calc(100% - 32px); margin:0 16px 19px; }
}
@media (max-width:680px) {
  .checkout-title { margin-bottom:18px; font-size:22px; }
  #checkoutBody { gap:15px; }
  .checkout-fields { grid-template-columns:minmax(0,1fr); gap:12px; }
  .checkout-shop { padding:12px; }
  .checkout-delivery-row { align-items:stretch; flex-direction:column; gap:8px; }
  .checkout-fee { padding:0; }
  .checkout-total { align-items:flex-start; flex-direction:column; gap:4px; }
  .checkout-total strong { text-align:left; }
  .confirm-title { font-size:22px; }
  .confirm-reference { grid-template-columns:minmax(0,1fr); gap:3px; }
  .confirm-reference strong { margin-bottom:7px; text-align:left; }
}


/* Panier Marketplace — détail produit à gauche, montant et prochaine étape à droite. */
#cartModal .cart-modal-box { width:min(920px,calc(100vw - 32px)); max-width:920px; max-height:90dvh; margin:0; padding:0; overflow:auto; border:1px solid #dce3da; border-radius:8px 8px 8px 24px; background:#f6f8f5; box-shadow:0 25px 75px rgba(14,31,22,.38); }
#cartModal .cart-modal-header { display:grid; gap:6px; padding:clamp(23px,4vw,32px) 72px 24px clamp(20px,4vw,34px); border-bottom:4px solid #c5d4b5; background:#293d31; color:#fff; }
#cartModal .cart-modal-header h2 { margin:0; color:#fff; font-size:clamp(25px,3.2vw,31px); font-weight:820; line-height:1.12; letter-spacing:-.035em; }
#cartModal .cart-modal-header p { max-width:54ch; margin:0; color:#d5dfd6; font-size:12px; line-height:1.5; }
#cartModal .cart-modal-close { top:14px; right:14px; width:42px; height:42px; border:1px solid #718377; border-radius:50%; background:#354a3c; color:#fff; }
#cartModal .cart-modal-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(235px,.8fr); align-items:start; gap:20px; padding:20px clamp(18px,3.5vw,28px) 26px; }
#cartModal .cart-modal-layout.is-empty { grid-template-columns:minmax(0,1fr); }
#cartModal .cart-main,#cartModal .cart-items { min-width:0; }
#cartModal .cart-items { display:grid; }
#cartModal .cart-line-item { display:grid; grid-template-columns:78px minmax(0,1fr) 142px; align-items:start; gap:13px; min-width:0; padding:17px 0 18px; border-bottom:1px solid #dce2d9; }
#cartModal .cart-line-item:last-child { border-bottom:0; }
#cartModal .cart-line-image { display:block; width:78px; aspect-ratio:1; object-fit:cover; border-radius:5px; background:#e9ede7; }
#cartModal .cart-line-details { min-width:0; }
#cartModal .cart-line-shop { margin:0 0 4px; color:#647767; font-size:11px; font-weight:720; line-height:1.35; }
#cartModal .cart-line-title { margin:0; color:#26372e; font-size:14px; font-weight:780; line-height:1.35; overflow-wrap:anywhere; }
#cartModal .cart-line-controls { display:flex; align-items:end; flex-wrap:wrap; gap:9px; margin-top:12px; }
#cartModal .cart-control-field { display:grid; min-width:0; gap:5px; color:#526056; font-size:10px; font-weight:700; line-height:1.3; }
#cartModal .cart-control-field select,#cartModal .cart-control-field input { min-height:41px; max-width:100%; padding:8px 10px; border:1px solid #cbd4c9; border-radius:4px; background:#fff; color:#26352b; font-size:12px; }
#cartModal .cart-control-field select { min-width:94px; }
#cartModal .cart-quantity-field input { width:70px; }
#cartModal .cart-line-price { display:grid; justify-items:end; gap:4px; min-width:0; padding-top:3px; text-align:right; }
#cartModal .cart-line-price strong { color:#26372e; font-size:15px; font-weight:820; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#cartModal .cart-line-price span { color:#718075; font-size:10px; line-height:1.4; font-variant-numeric:tabular-nums; }
#cartModal .cart-remove-button { min-width:62px; min-height:40px; padding:7px 4px; border:0; background:transparent; color:#8e5148; font-size:11px; font-weight:700; text-align:right; text-decoration:underline; text-underline-offset:3px; }
#cartModal .cart-remove-button:hover { color:#6d302a; }
#cartModal .cart-empty { display:grid; gap:8px; padding:clamp(22px,5vw,38px); border:1px solid #dce3da; border-radius:5px 5px 5px 18px; background:#fff; }
#cartModal .cart-empty h3 { margin:0; color:#293d31; font-size:19px; font-weight:790; line-height:1.25; }
#cartModal .cart-empty p { max-width:52ch; margin:0; color:#627066; font-size:12px; line-height:1.6; }
#cartModal #cartFooter[hidden],#cartModal #cartEmpty[hidden] { display:none; }
#cartModal .cart-summary-panel { min-width:0; padding:20px; border-radius:18px 5px 5px 5px; background:#293d31; color:#f5f6f2; }
#cartModal .cart-summary-panel h3 { margin:0; color:#fff; font-size:15px; font-weight:780; line-height:1.35; }
#cartModal .cart-summary-total { display:grid; gap:6px; margin:16px 0 12px; padding:14px 0; border-block:1px solid #718075; }
#cartModal .cart-summary-total span { color:#d6dfd7; font-size:11px; font-weight:700; }
#cartModal .cart-summary-total strong { color:#fff; font-size:clamp(20px,2.5vw,25px); font-weight:820; line-height:1.2; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#cartModal .cart-summary-panel>p { margin:0 0 17px; color:#d3ddd5; font-size:11px; line-height:1.55; }
#cartModal .cart-checkout-button { display:flex; width:100%; min-height:53px; padding:11px 12px; border:0; border-radius:4px 4px 4px 14px; background:#c5d4b5; color:#20352a; font-size:12px; font-weight:820; line-height:1.35; text-align:center; white-space:normal; box-shadow:none; }
#cartModal .cart-checkout-button:hover { background:#d7e2cc; transform:translateY(-1px); box-shadow:none; }
#cartModal .cart-continue-button { width:100%; min-height:44px; margin-top:7px; padding:8px; border:1px solid #718377; border-radius:4px; background:transparent; color:#f0f4ed; font-size:11px; font-weight:700; }
#cartModal .cart-continue-button:hover { border-color:#c5d4b5; background:#354b3d; }
@media (max-width:740px) {
  #cartModal .cart-modal-layout { grid-template-columns:minmax(0,1fr); gap:14px; }
  #cartModal .cart-summary-panel { border-radius:5px 5px 5px 16px; }
}
@media (max-width:540px) {
  #cartModal .cart-modal-box { width:min(920px,100%); max-height:92dvh; border-radius:6px 6px 6px 18px; }
  #cartModal .cart-modal-header { padding:22px 58px 19px 18px; }
  #cartModal .cart-modal-header h2 { font-size:25px; }
  #cartModal .cart-modal-close { top:10px; right:10px; width:40px; height:40px; }
  #cartModal .cart-modal-layout { gap:12px; padding:14px 16px 19px; }
  #cartModal .cart-line-item { grid-template-columns:66px minmax(0,1fr); gap:11px; padding:14px 0; }
  #cartModal .cart-line-image { width:66px; }
  #cartModal .cart-line-price { grid-column:2; justify-items:start; text-align:left; padding-top:0; }
  #cartModal .cart-line-price strong { font-size:14px; }
  #cartModal .cart-remove-button { justify-self:start; text-align:left; }
  #cartModal .cart-control-field select { min-width:0; width:100%; }
  #cartModal .cart-control-field input { width:76px; }
  #cartModal .cart-summary-panel { padding:17px; }
}
