/* ==========================================================================
   PAGES.CSS — collection, produit, panier, commande (COD), confirmation, suivi, pages
   ========================================================================== */

.page-head { padding: clamp(40px, 6vw, 72px) 0 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.crumbs a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .icon { font-size: 13px; opacity: 0.6; }

/* ---------- Champs de formulaire (communs) -------------------------------------- */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.field .opt { font-weight: 400; opacity: 0.7; }
input[type='text'], input[type='tel'], input[type='email'], input[type='search'], input[type='password'], select, textarea {
  width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface);
  font: inherit; font-size: 16px; color: var(--text-primary); transition: border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 160ms;
}
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); background: var(--bg); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 13.5px; }
.field.has-error .err { display: block; }
.field-hint { font-size: 13.5px; color: var(--text-secondary); }
.phone-field { display: flex; }
.phone-field .prefix { display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--border-strong); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-elevated); font-family: var(--font-mono); font-size: 15px; color: var(--text-secondary); }
.phone-field input { border-radius: 0 12px 12px 0; font-family: var(--font-mono); letter-spacing: 0.04em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Collection ------------------------------------------------------------ */
.col-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.toolbar { position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-block: 1px solid var(--border); margin-bottom: 36px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: border-color 160ms, background-color 160ms, transform 140ms; }
.chip:active { transform: scale(0.97); }
.chip.is-active { border-color: var(--accent); background: var(--surface-elevated); }
.chip .n { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tools select { width: auto; padding: 10px 40px 10px 16px; border-radius: var(--radius-pill); font-size: 15px; }
.range { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.range input[type='range'] { width: 130px; accent-color: var(--accent); }
.range output { font-family: var(--font-mono); min-width: 86px; color: var(--text-primary); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-secondary); }
.empty-state .ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 30px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.empty-state h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 8px; }
@media (max-width: 900px) { .toolbar { flex-direction: column; align-items: stretch; top: 64px; } .tools { justify-content: space-between; } .range { display: none; } }

/* ---------- Produit ----------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.gallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; position: sticky; top: 92px; }
.g-thumbs { display: flex; flex-direction: column; gap: 12px; max-height: 640px; overflow-y: auto; scrollbar-width: none; }
.g-thumbs::-webkit-scrollbar { display: none; }
.g-thumb { position: relative; width: 88px; aspect-ratio: 1; flex-shrink: 0; padding: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; cursor: pointer; opacity: 0.72; transition: opacity 200ms, border-color 200ms, box-shadow 260ms var(--ease-out), transform 200ms; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb img.is-cutout { object-fit: contain; padding: 8%; }
.g-thumb:active { transform: scale(0.96); }
.g-thumb.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.g-stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); overflow: hidden; touch-action: pan-y; }
.g-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity 520ms var(--ease-out), transform 800ms var(--ease-out); pointer-events: none; }
.g-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-slide img.is-cutout { object-fit: contain; padding: 7% 12%; filter: drop-shadow(0 28px 36px color-mix(in srgb, var(--text-primary) 24%, transparent)); transition: filter 320ms var(--ease-out); }
.g-slide img.f-basalt, .p-media img.f-basalt { filter: saturate(0.14) brightness(0.68) contrast(1.18) drop-shadow(0 28px 36px rgba(5, 8, 7, 0.45)); }
.g-slide img.f-glacier { filter: saturate(0.08) brightness(1.38) contrast(1.08) drop-shadow(0 28px 36px rgba(5, 8, 7, 0.3)); }
.g-ctrl { position: absolute; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(12px); color: var(--text-primary); font-size: 20px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms; }
.g-ctrl:active { transform: scale(0.94); }
.g-prev { left: 14px; top: 50%; translate: 0 -50%; }
.g-next { right: 14px; top: 50%; translate: 0 -50%; }
.g-zoom { right: 14px; top: 14px; }
.g-label { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); font-size: 13px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.g-label .mono { color: var(--text-secondary); }
.g-stage .p-badges { z-index: 3; }

.pdp-info { display: grid; gap: 24px; }
.pdp-title { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.pdp-short { font-size: 18px; line-height: 1.55; color: var(--text-secondary); max-width: 46ch; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); }
.pdp-price .now { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; transition: opacity 160ms; }
.pdp-price s { font-size: 18px; color: var(--text-secondary); }
.pdp-price .save { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-text); }
.stock { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.stock i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.stock.is-low i { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 24%, transparent); animation: blink 1.8s ease-in-out infinite; }
.stock.is-out i { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent); }
@keyframes blink { 50% { opacity: 0.45; } }
.pdp-info .config-group { margin-top: 0; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 500; color: var(--text-secondary); margin-bottom: 12px; }
.opt-label b { color: var(--text-primary); font-weight: 700; }
.pill-option.is-unavailable { opacity: 0.42; text-decoration: line-through; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); }
.qty button { width: 48px; height: 52px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--text-primary); border-radius: 999px; transition: background-color 160ms, transform 140ms; }
.qty button:active { transform: scale(0.88); }
.qty output { min-width: 28px; text-align: center; font-family: var(--font-mono); font-size: 16px; }
.buy-row .btn-primary { flex: 1 1 220px; }
.pdp-actions { display: grid; gap: 12px; }
.mini-trust { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); }
.mini-trust li { list-style: none; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.mini-trust .ic { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 19px; background: var(--bg); border: 1px solid var(--border); color: var(--accent); }
.mini-trust b { display: block; font-weight: 700; }
.mini-trust span { color: var(--text-secondary); font-size: 14px; }
.deliv-est { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--radius-card); border: 1px dashed var(--border-strong); }
.deliv-est select { padding: 12px 40px 12px 16px; font-size: 15px; }
.deliv-res { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 24px; color: var(--text-secondary); }
.deliv-res b { color: var(--text-primary); font-family: var(--font-mono); font-weight: 500; }
.deliv-res .icon { color: var(--accent); font-size: 19px; }

/* Carte description (onglets) */
.desc-card { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.desc-tabs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-elevated) 55%, var(--surface)); }
.desc-tabs::-webkit-scrollbar { display: none; }
.desc-tab { flex-shrink: 0; padding: 12px 22px; border-radius: var(--radius-pill); border: 0; background: transparent; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: background-color 200ms, color 200ms, transform 140ms; }
.desc-tab:active { transform: scale(0.97); }
.desc-tab.is-active { background: var(--accent); color: var(--accent-text); }
.desc-panel { display: none; padding: clamp(28px, 4vw, 52px); }
.desc-panel.is-active { display: block; animation: panelIn 520ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.desc-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(28px, 5vw, 72px); }
.prose p { font-size: 18px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 18px; max-width: 62ch; }
.prose ul { list-style: none; display: grid; gap: 14px; margin: 22px 0; }
.prose li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.prose li .ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--accent); color: var(--accent-text); margin-top: 1px; }
.desc-aside { align-self: start; padding: 24px; border-radius: var(--radius-card); background: var(--bg); border: 1px solid var(--border); display: grid; gap: 16px; }
.desc-aside h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.zone-mini { display: grid; gap: 10px; }
.zone-mini div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.zone-mini div:last-child { border-bottom: 0; padding-bottom: 0; }
.zone-mini b { font-family: var(--font-mono); font-weight: 500; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }

/* Barre d'achat collante (mobile) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--glass-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform 420ms var(--ease-drawer); }
.sticky-buy.is-on { transform: none; }
.sticky-buy .sb-price { display: grid; line-height: 1.2; min-width: 0; }
.sticky-buy .sb-price small { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .sb-price b { font-family: var(--font-mono); font-weight: 500; font-size: 18px; }
.sticky-buy .btn { flex-shrink: 0; padding-inline: 26px; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(5, 8, 7, 0.92); opacity: 1; transition: opacity 260ms var(--ease-out); }
.lightbox[hidden] { opacity: 0; display: grid !important; visibility: hidden; pointer-events: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox .g-ctrl { position: fixed; color: #eff3f1; background: rgba(239, 243, 241, 0.12); border-color: rgba(239, 243, 241, 0.18); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .g-prev { left: 18px; }
.lightbox .g-next { right: 18px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; position: static; }
  .g-thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .g-thumb { width: 72px; }
  .g-stage { aspect-ratio: 1 / 1.05; }
  .sticky-buy { display: flex; }
  .desc-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .g-prev, .g-next { display: none; }
}

/* ---------- Panier (tiroir + page) ---------------------------------------------------- */
.ship-progress { margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.ship-progress .bar { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; margin-top: 10px; }
.ship-progress .bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--accent); transition: width 600ms var(--ease-out); }
.bag-item { position: relative; }
.bag-item-thumb { flex-shrink: 0; }
.bag-item-thumb.f-basalt, .line-thumb.f-basalt { filter: saturate(0.14) brightness(0.68) contrast(1.18); }
.bag-item-thumb.f-glacier, .line-thumb.f-glacier { filter: saturate(0.08) brightness(1.38) contrast(1.08); }
.bag-item-price { font-family: var(--font-mono); font-size: 15px; }
.bag-remove { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border: 0; background: none; color: var(--text-secondary); cursor: pointer; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.bag-remove:hover { color: var(--danger); }
.drawer-foot-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13.5px; color: var(--text-secondary); margin-top: 12px; }
.drawer-foot-note .icon { color: var(--accent); font-size: 17px; }
.drawer-footer .btn + .btn { margin-top: 10px; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 80px; }
.cart-lines { border-top: 1px solid var(--border); }
.cart-line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); }
.line-thumb { width: 104px; height: 128px; object-fit: cover; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.line-thumb.is-cutout { object-fit: contain; padding: 8px; }
.cart-line h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.cart-line .meta { font-size: 14.5px; color: var(--text-secondary); margin-top: 3px; }
.cart-line .qty { margin-top: 14px; }
.cart-line .qty button { width: 38px; height: 40px; font-size: 17px; }
.cart-line .line-total { font-family: var(--font-mono); font-size: 17px; text-align: right; }
.cart-line .rm { display: inline-block; margin-top: 10px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--text-secondary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cart-line .rm:hover { color: var(--danger); }
.card { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); padding: 28px; }
.card h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; font-size: 16px; }
.sum-row .v { font-family: var(--font-mono); }
.sum-row.disc .v { color: var(--ok); }
.sum-row.total { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border-strong); font-size: 20px; font-weight: 700; }
.sum-row.total .v { font-size: 22px; }
.sum-note { font-size: 13.5px; color: var(--text-secondary); }
.promo-form { display: flex; gap: 8px; margin: 18px 0 6px; }
.promo-form input { text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.04em; padding-block: 13px; }
.promo-form .btn { flex-shrink: 0; padding: 13px 20px; }
.promo-msg { font-size: 14px; min-height: 20px; margin-bottom: 6px; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.ko { color: var(--danger); }
.cod-pill { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-card); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: 14.5px; margin-top: 18px; }
.cod-pill .icon { font-size: 22px; color: var(--accent); }
.cod-pill b { display: block; font-size: 15px; }

/* ---------- Commande (paiement à la livraison) ---------------------------------------- */
.co { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 96px; }
.co-block { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.co-block + .co-block { margin-top: 20px; }
.co-step { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.co-step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700; background: var(--accent); color: var(--accent-text); }
.co-step h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.form-grid { display: grid; gap: 20px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.pay-option { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 2px solid var(--accent); border-radius: var(--radius-card); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.pay-option + .pay-option { margin-top: 12px; }
.pay-option.is-off { border: 1px solid var(--border-strong); background: transparent; opacity: 0.6; }
.pay-option .radio { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; margin-top: 2px; }
.pay-option .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(1); }
.pay-option b { display: block; font-size: 17px; }
.pay-option p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin-top: 4px; }
.co-summary { position: sticky; top: 92px; }
.co-items { display: grid; gap: 16px; margin-bottom: 8px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.co-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.co-item .thumb { position: relative; }
.co-item img { width: 64px; height: 76px; object-fit: cover; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
.co-item img.is-cutout { object-fit: contain; padding: 5px; }
.co-item .q { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; display: grid; place-items: center; background: var(--text-primary); color: var(--bg); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.co-item b { font-size: 15.5px; display: block; line-height: 1.3; }
.co-item span { font-size: 13.5px; color: var(--text-secondary); }
.co-item .v { font-family: var(--font-mono); font-size: 15px; }
.ship-info { display: none; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-size: 14.5px; }
.ship-info.is-on { display: flex; animation: panelIn 420ms var(--ease-out); }
.ship-info .icon { font-size: 22px; color: var(--accent); }
.err-banner { padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); margin-bottom: 20px; font-size: 15px; }
.co-empty { text-align: center; padding: 100px 20px; }
@media (max-width: 900px) {
  .cart-layout, .co { grid-template-columns: minmax(0, 1fr); }
  .co > *, .cart-layout > * { min-width: 0; }
  .co-summary { position: static; order: -1; }
  .form-grid.two { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-line .line-total { grid-column: 2; text-align: left; }
  .line-thumb { width: 84px; height: 104px; }
  .co-block { padding: 22px; }
}

/* ---------- Confirmation ------------------------------------------------------------- */
.thanks { max-width: 880px; margin-inline: auto; padding: clamp(40px, 7vw, 88px) 0 96px; text-align: center; }
.check-anim { position: relative; width: 112px; height: 112px; margin: 0 auto 28px; }
.check-anim::before, .check-anim::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); opacity: 0.22; animation: ring 2.4s ease-out infinite; }
.check-anim::after { animation-delay: 1.2s; }
.check-anim svg { position: relative; z-index: 2; width: 112px; height: 112px; }
.check-anim circle { fill: var(--accent); transform-origin: center; animation: pop 600ms var(--ease-out) both; }
.check-anim path { fill: none; stroke: var(--accent-text); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 600ms 360ms var(--ease-out) forwards; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.3; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order-no { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 10px 10px 22px; border-radius: var(--radius-pill); border: 1px dashed var(--border-strong); background: var(--surface); font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.04em; }
.order-no button { padding: 9px 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-text); font: inherit; font-family: var(--font-sans); font-size: 14px; font-weight: 500; cursor: pointer; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0 32px; text-align: left; }
.next-steps li { list-style: none; padding: 24px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); }
.next-steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-family: var(--font-mono); font-weight: 700; margin-bottom: 16px; }
.next-steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.next-steps span { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.thanks .card { text-align: left; }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 768px) { .next-steps { grid-template-columns: 1fr; } }

/* ---------- Suivi de commande -------------------------------------------------------- */
.lookup { max-width: 560px; margin: clamp(32px, 6vw, 72px) auto 96px; text-align: center; }
.lookup .card { text-align: left; margin-top: 32px; padding: 32px; }
.lookup .ic { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-weight: 500; font-size: 15px; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
.status-pill.is-done i { animation: none; background: var(--ok); }
.stepper { --p: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding: 36px 20px 30px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); margin-bottom: 20px; }
.stepper::before { content: ''; position: absolute; top: 58px; left: calc(10% + 20px); right: calc(10% + 20px); height: 3px; border-radius: 3px; background: var(--border); }
.stepper::after { content: ''; position: absolute; top: 58px; left: calc(10% + 20px); width: calc((80% - 40px) * var(--p) / 100); height: 3px; border-radius: 3px; background: var(--accent); transition: width 1400ms var(--ease-out) 300ms; }
.stepper.is-prep::after { width: 0; }
.step { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; text-align: center; padding-inline: 6px; }
.step .node { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text-secondary); transition: background-color 500ms var(--ease-out), border-color 500ms, color 500ms, transform 500ms var(--ease-out); }
.step.done .node { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.step.current .node { background: var(--accent); border-color: var(--accent); color: var(--accent-text); transform: scale(1.12); animation: nodePing 2s ease-out infinite; }
@keyframes nodePing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.step b { font-size: 15px; line-height: 1.25; }
.step small { font-size: 12.5px; color: var(--text-secondary); font-family: var(--font-mono); }
.step.todo b { color: var(--text-secondary); font-weight: 500; }
.track-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 96px; }
.tl { display: grid; gap: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 18px; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--border-strong); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--accent); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; margin-top: 2px; }
.tl-item.done .tl-dot, .tl-item.current .tl-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-size: 12px; }
.tl-item.current .tl-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.tl-item.todo { opacity: 0.55; }
.tl-item b { display: block; font-size: 17px; }
.tl-item p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }
.tl-item time { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }
.courier { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.courier .t-avatar { width: 46px; height: 46px; }
.courier div { flex: 1; min-width: 0; }
.courier b { font-size: 15.5px; display: block; }
.courier span { font-size: 13.5px; color: var(--text-secondary); }
.courier .btn { padding: 10px 16px; font-size: 14px; }
.eta-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius-card); background: var(--accent); color: var(--accent-text); margin-bottom: 20px; }
.eta-card .icon { font-size: 30px; }
.eta-card b { display: block; font-size: 18px; }
.eta-card span { font-size: 14.5px; opacity: 0.85; }
.info-list { display: grid; gap: 14px; margin-top: 8px; }
.info-list div { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.info-list .icon { font-size: 18px; color: var(--accent); margin-top: 2px; }
.pay-due { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 500; }
.pay-due b { font-family: var(--font-mono); font-size: 20px; }
@media (max-width: 900px) {
  .track-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; gap: 0; padding: 26px 22px; }
  .stepper::before, .stepper::after { top: 48px; bottom: 48px; left: 43px; right: auto; width: 3px; height: auto; }
  .stepper::after { height: calc((100% - 96px) * var(--p) / 100); width: 3px; transition: height 1400ms var(--ease-out) 300ms; }
  .stepper.is-prep::after { height: 0; }
  .step { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; align-items: center; padding: 12px 0; gap: 16px; }
  .step > div { display: grid; gap: 2px; }
}

/* ---------- Pages simples ------------------------------------------------------------ */
.page-narrow { max-width: 820px; margin-inline: auto; padding-bottom: 96px; }
.page-narrow h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.page-narrow .lead { font-size: 20px; line-height: 1.55; color: var(--text-secondary); margin-top: 18px; max-width: 54ch; }
.page-block { margin-top: 44px; }
.page-block h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.page-block p { font-size: 18px; line-height: 1.7; color: var(--text-secondary); }
.zones { display: grid; gap: 14px; margin-top: 36px; }
.zone-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; padding: 22px 24px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); transition: border-color 200ms, transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .zone-card:hover { border-color: var(--border-strong); transform: translateY(-2px); } }
.zone-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.zone-card .fee { font-family: var(--font-mono); font-size: 20px; text-align: right; }
.zone-card .eta { font-size: 14px; color: var(--text-secondary); text-align: right; }
.zone-card .communes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.zone-card .communes span { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.zone-card .note { grid-column: 1 / -1; font-size: 14px; color: var(--text-secondary); }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; }
.contact-cards a, .contact-cards div { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); }
.contact-cards .ic { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); color: var(--accent); font-size: 22px; }
.contact-cards b { display: block; font-size: 16px; }
.contact-cards span { font-size: 14.5px; color: var(--text-secondary); }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }

.step b, .step small { display: block; }
.courier .t-avatar { color: var(--accent-text); font-size: 15px; }
.co-items { padding-top: 10px; }
