/* Boutique — manuels « tout en un » : filtres à gauche, grille de couvertures, fiche détaillée (voir assets/js/boutique.js) */

.shop { width: 100%; }

.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.shop.is-detail .shop-head { display: none; }
.shop-head-side { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.shop-corr-btn { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.55rem 1rem 0.55rem 0.6rem; border-radius: 999px; background: linear-gradient(135deg, #cf9d36, var(--color-primary, #b8872b) 55%, var(--color-primary-dark, #96701f)); color: #fff; font-weight: 700; font-size: 0.92rem; line-height: 1.2; text-decoration: none; box-shadow: 0 4px 12px rgba(150, 112, 31, 0.28); }
.shop-corr-btn small { display: block; font-weight: 500; font-size: 0.74rem; opacity: 0.92; }
.shop-corr-btn:hover, .shop-corr-btn:focus-visible { filter: brightness(1.06); }
.shop-corr-ico { flex: none; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--color-primary-dark, #96701f); font-size: 1.15rem; }
@media (max-width: 700px) { .shop-head-side { width: 100%; } .shop-corr-btn { width: 100%; justify-content: flex-start; } }
.shop-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.12; margin: 0.15rem 0 0.4rem; }
.shop-lead { margin: 0; color: var(--color-text-muted); max-width: 46rem; }
.shop-sim { margin: 0; padding: 0.5rem 0.8rem; font-size: 0.85rem; color: #7a4d00; background: var(--color-accent-light); border: 1px solid #ecd9a6; border-radius: var(--radius-md); max-width: 24rem; }

.shop-layout { display: block; }

/* ---- filtres : dans la barre latérale commune (components/sidebar-boutique.php), thème marine ---- */
/* (barre de défilement de la barre latérale : style commun dans sidebar.css) */
.sidebar-shop .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.sidebar-shop .shop-search { display: flex; align-items: center; gap: 0.5rem; margin: 0 0.25rem 1rem; padding: 0.5rem 0.75rem; background: var(--color-navy-elevated); border: 1px solid var(--color-navy-border); border-radius: 999px; color: var(--color-on-navy-muted); }
.sidebar-shop .shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.85rem; color: var(--color-on-navy); }
.sidebar-shop .shop-search input::placeholder { color: var(--color-on-navy-muted); }
.sidebar-shop .shop-search:focus-within { border-color: var(--color-primary); }
.sidebar-shop .shop-fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.sidebar-shop .shop-fieldset legend { padding: 0 0.75rem; margin: 0 0 0.3rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--classe-accent, var(--color-primary)); }
.sidebar-shop .shop-opt { position: relative; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.82rem; font-style: italic; color: var(--color-on-navy-muted); transition: background var(--transition-fast), color var(--transition-fast); }
.sidebar-shop .shop-opt::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--classe-accent, var(--color-primary)); opacity: 0.5; }
.sidebar-shop .shop-opt:hover { background: var(--color-navy-elevated); color: var(--color-on-navy); }
.sidebar-shop .shop-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.sidebar-shop .shop-opt:has(input:checked) { background: var(--color-navy-active); color: var(--color-primary); font-weight: 600; font-style: normal; box-shadow: inset 3px 0 0 var(--color-primary); }
.sidebar-shop .shop-opt:has(input:checked)::before { opacity: 1; }
.sidebar-shop .shop-opt:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.sidebar-shop .shop-opt span { flex: 1; min-width: 0; }
.sidebar-shop .shop-opt em { font-style: normal; font-size: 0.75rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.sidebar-shop .shop-opt.is-empty { opacity: 0.4; }
.sidebar-shop .shop-reset { margin: 0.25rem 0.75rem 0; border: 0; background: none; padding: 0.2rem 0; font: inherit; font-size: 0.82rem; color: var(--color-primary); text-decoration: underline; cursor: pointer; text-align: left; }

/* ---- grille ---- */
.shop-count { margin: 0 0 0.75rem; color: var(--color-text-muted); font-size: 0.9rem; }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1.5rem 1.25rem; }
.shop-item[hidden] { display: none; }
.shop-card { display: block; color: inherit; text-decoration: none; }
.shop-card .shop-cover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.shop-card:hover .shop-cover, .shop-card:focus-visible .shop-cover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 14px 26px -10px rgba(16, 28, 48, 0.55); }
.shop-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; border-radius: 10px; }
.shop-card-cap { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 0.7rem; }
.shop-card-title { font-weight: 700; line-height: 1.25; }
.shop-card-meta { font-size: 0.85rem; color: var(--color-text-muted); }
.shop-card-price { margin-top: 0.15rem; font-weight: 700; color: var(--color-primary-dark); }
.shop-none { text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }
.shop-none[hidden] { display: none; }

/* ---- couverture (tout se dimensionne en cqw : la même couverture sert en grille, en vol et en fiche) ---- */
.shop-cover {
  --c: #1f3d2b;
  container-type: inline-size;
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 8px 18px -8px rgba(16, 28, 48, 0.5), inset 5px 0 0 rgba(0, 0, 0, 0.18), inset 7px 0 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}
.shop-cover > span { position: absolute; left: 11cqw; right: 8cqw; }
.shop-cover .sc-brand { top: 7cqw; font-size: 6.2cqw; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92; }
.shop-cover .sc-art { right: auto; top: 29cqw; width: 58cqw; height: 40.6cqw; left: 22.5cqw; border-radius: 3.5cqw; background-color: var(--c); background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: 0 1.5cqw 4cqw -1cqw rgba(0, 0, 0, 0.45), 0 0 0 0.8cqw rgba(255, 255, 255, 0.35); display: grid; place-items: center; }
.shop-cover .sc-art.sc-glyph { background: color-mix(in srgb, var(--c) 35%, #fff); color: var(--c); font-family: Georgia, serif; font-size: 30cqw; font-weight: 700; line-height: 1; }
.shop-cover .sc-level { top: 15.5cqw; font-size: 5.8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; opacity: 0.95; }
.shop-cover .sc-title { top: 74cqw; font-size: 9cqw; line-height: 1.08; overflow-wrap: anywhere; hyphens: auto; font-weight: 800; font-family: Georgia, "Times New Roman", serif; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.shop-cover .sc-band { left: 0; right: 0; bottom: 20cqw; padding: 2.4cqw 0 2.4cqw 11cqw; background: var(--color-accent); color: #3a2a00; font-size: 6.6cqw; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.shop-cover .sc-foot { bottom: 6cqw; font-size: 5.6cqw; opacity: 0.9; }

/* ---- fiche détaillée ---- */
.shop-stage { position: relative; min-width: 0; }
.shop-detail[hidden], .shop-grid-view[hidden] { display: none; }
.shop-back { border: 0; background: none; padding: 0.2rem 0; margin: 0 0 1rem; font: inherit; font-weight: 600; color: var(--color-primary-dark); cursor: pointer; }
.shop-back:hover { text-decoration: underline; }
.shop-detail-grid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); grid-template-areas: "slot head" "slot rest"; column-gap: 2rem; row-gap: 0; align-items: start; }
.shop-detail-slot { grid-area: slot; position: sticky; top: calc(var(--header-height, 64px) + 1rem); width: 13rem; aspect-ratio: 3 / 4; }
.shop-detail-slot .shop-cover { height: 100%; }
.shop-flying { position: fixed; z-index: 400; margin: 0; pointer-events: none; will-change: left, top, width, height; transition: left 0.5s cubic-bezier(.2,.8,.2,1), top 0.5s cubic-bezier(.2,.8,.2,1), width 0.5s cubic-bezier(.2,.8,.2,1), height 0.5s cubic-bezier(.2,.8,.2,1); }
.shop-flying .shop-cover { height: 100%; box-shadow: 0 18px 34px -12px rgba(16, 28, 48, 0.6); }

.shop-detail-body { display: contents; }
.sd-head, .sd-rest { min-width: 0; opacity: 0; transform: translateX(18px); transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s; }
.sd-head { grid-area: head; }
.sd-rest { grid-area: rest; }
.shop-detail.is-in .sd-head, .shop-detail.is-in .sd-rest { opacity: 1; transform: none; }
.sd-eyebrow { margin: 0 0 0.25rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-eyebrow); }
.sd-title { margin: 0 0 0.35rem; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.sd-chips li { padding: 0.2rem 0.65rem; font-size: 0.82rem; font-weight: 600; border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary-dark); }
.sd-summary { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.55; }
.sd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1rem 1.1rem; margin: 0 0 1.5rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.sd-price { font-size: 1.6rem; font-weight: 800; color: var(--color-primary-dark); }
.sd-price small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--color-text-muted); }
.sd-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-left: auto; }
.sd-h { margin: 1.5rem 0 0.6rem; font-size: 1.1rem; }
.sd-points { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.sd-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.6rem; margin: 0; }
.sd-specs div { padding: 0.6rem 0.8rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; }
.sd-specs dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.sd-specs dd { margin: 0.1rem 0 0; font-weight: 600; }
.sd-lessons { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.35rem 1.25rem; counter-reset: l; }
.sd-lessons li { padding: 0.3rem 0 0.3rem 1.6rem; border-bottom: 1px dashed var(--color-border); font-size: 0.92rem; position: relative; }
.sd-lessons li::before { content: "✓"; position: absolute; left: 0.1rem; color: var(--color-primary-dark); font-weight: 700; }
.sd-more { margin: 0.5rem 0 0; color: var(--color-text-muted); font-size: 0.9rem; }
.sd-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.sd-related a { display: block; color: inherit; text-decoration: none; font-size: 0.78rem; line-height: 1.25; }
.sd-related a span.t { display: block; margin-top: 0.3rem; }
.sd-related .shop-cover { transition: transform 0.15s; }
.sd-related a:hover .shop-cover { transform: translateY(-3px); }

.shop-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); z-index: 500; max-width: min(92vw, 28rem); padding: 0.7rem 1rem; border-radius: 10px; background: var(--color-navy); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; font-size: 0.92rem; }
.shop-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.shop-trust { margin-top: 2.5rem; }

/* ---- fenêtre « Me prévenir de la sortie » ---- */
.shop-modal[hidden] { display: none; }
.shop-modal { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 1rem; }
.shop-modal-backdrop { position: absolute; inset: 0; background: rgba(16, 28, 48, 0.62); backdrop-filter: blur(2px); }
.shop-modal-box { position: relative; width: min(30rem, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.5rem 1.5rem 1.25rem; background: var(--color-surface); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); animation: am-in 0.22s ease; }
@keyframes am-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.shop-modal-x { position: absolute; top: 0.5rem; right: 0.6rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--color-text-muted); cursor: pointer; }
.shop-modal-x:hover { background: var(--color-primary-light); color: var(--color-text); }
.shop-modal h2 { margin: 0 2rem 0.35rem 0; font-size: 1.35rem; }
.am-product { margin: 0 0 0.5rem; padding: 0.4rem 0.7rem; font-size: 0.86rem; font-weight: 600; color: var(--color-primary-dark); background: var(--color-primary-light); border-radius: 8px; }
.am-lead { margin: 0 0 1rem; color: var(--color-text-muted); font-size: 0.94rem; }
.am-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.am-field { display: block; margin: 0 0 0.85rem; font-size: 0.82rem; font-weight: 700; color: var(--color-text); }
.am-field input, .am-field select { display: block; width: 100%; margin-top: 0.25rem; padding: 0.6rem 0.7rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--color-text); background: #fff; border: 1px solid var(--color-border-strong); border-radius: 9px; box-sizing: border-box; }
.am-field input:focus, .am-field select:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(184, 135, 43, 0.2); }
.am-field.is-bad input, .am-field.is-bad select { border-color: #c0392b; background: #fff6f5; }
.am-field small { display: block; margin-top: 0.25rem; font-size: 0.74rem; font-weight: 400; color: var(--color-text-muted); }
.am-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.4rem 0; font-size: 0.88rem; line-height: 1.4; cursor: pointer; }
.am-check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; accent-color: var(--color-primary-dark); }
.am-check.is-bad { color: #a8281b; }
.am-recap { margin: 0.7rem 0 0.4rem; padding: 0.6rem 0.75rem; font-size: 0.88rem; background: #fff; border: 1px dashed var(--color-border-strong); border-radius: 9px; }
.am-recap b { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.1rem; }
.am-recap.is-empty { color: var(--color-text-muted); }
.am-error { margin: 0.6rem 0 0; padding: 0.5rem 0.7rem; font-size: 0.86rem; color: #8a1f14; background: #fdecea; border-radius: 8px; }
.am-error[hidden] { display: none; }
.am-submit { width: 100%; margin-top: 0.8rem; padding: 0.75rem 1rem; font-size: 1rem; }
.am-submit[disabled] { opacity: 0.6; cursor: progress; }
.am-privacy { margin: 0.7rem 0 0; font-size: 0.74rem; color: var(--color-text-muted); text-align: center; }
.am-done { text-align: center; padding: 0.5rem 0 0.25rem; }
.am-done[hidden] { display: none; }
.am-done-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 0.8rem; border-radius: 50%; background: #e3f4e8; color: #1f7a4d; font-size: 1.8rem; font-weight: 800; }
.am-done h2 { margin: 0 0 0.5rem; }
.am-done p { margin: 0 0 1.1rem; line-height: 1.5; }
body.shop-modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .shop-modal { align-items: center; padding: 1.5rem 1rem; }   /* fenêtre centrée avec une marge tout autour (16 px de chaque côté, 24 px en haut et en bas) */
  .shop-modal-box { width: 100%; max-height: calc(100dvh - 3rem); border-radius: 16px; padding: 1.25rem 1rem 1rem; }
  .am-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .shop-modal-box { animation: none; } }

/* ---- petits écrans ---- */
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1.1rem 0.9rem; }
  .shop-detail-grid { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
  .shop-detail-slot { width: 7.5rem; }
  .sd-actions { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  /* mobile : le badge à gauche, « Terminale · Maths / titre / pastilles » à sa droite, le reste en dessous */
  .shop-detail-grid { grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-areas: "slot head" "rest rest"; column-gap: 0.9rem; }
  .shop-detail-slot { position: static; width: 6.5rem; }
  .sd-head, .sd-rest { opacity: 1; transform: none; }
  .sd-rest { margin-top: 1.1rem; }
  .sd-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
  .sd-eyebrow { font-size: 0.7rem; }
  .sd-chips { gap: 0.3rem; margin-bottom: 0; }
  .sd-chips li { padding: 0.15rem 0.5rem; font-size: 0.74rem; }
  /* boutons côte à côte, plus petits */
  .sd-buy { padding: 0.8rem; gap: 0.6rem; }
  .sd-price { font-size: 1.3rem; width: 100%; }
  .sd-actions { flex-wrap: nowrap; gap: 0.5rem; width: 100%; }
  .sd-actions .btn { flex: 1 1 0; min-width: 0; padding: 0.5rem 0.4rem; font-size: 0.78rem; line-height: 1.2; text-align: center; white-space: normal; }
  /* fiche technique et garanties : deux colonnes compactes */
  .sd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .sd-specs div { padding: 0.4rem 0.55rem; }
  .sd-specs dt { font-size: 0.64rem; }
  .sd-specs dd { font-size: 0.82rem; }
  .shop-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 0.6rem; margin-top: 1.5rem; }
  .shop .shop-trust .shortcut { padding: 0.4rem; gap: 0.45rem; font-size: 0.68rem; line-height: 1.25; }
  .shop .shop-trust .shortcut span:last-child { font-size: 0.68rem; }
  .shop .shop-trust .shortcut-icon { width: 1.7rem; height: 1.7rem; font-size: 0.8rem; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-flying, .sd-head, .sd-rest, .shop-card .shop-cover { transition: none; }
}

/* ---- Formats en vente : pastilles des cartes et choix du format dans la fiche (Imprimé / PDF) ---- */
.shop-formats { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.fmt { display: inline-block; padding: 0.1rem 0.5rem; font-size: 0.7rem; font-weight: 700; line-height: 1.4; border-radius: 999px; border: 1px solid transparent; }
.fmt-imprime { color: var(--color-primary-dark); background: var(--color-primary-light); border-color: rgba(150, 112, 31, 0.25); }
.fmt-pdf { color: #0b5d4b; background: #e3f4ee; border-color: rgba(11, 93, 75, 0.25); }
.fmt-soon { color: var(--color-text-muted); background: var(--color-surface, #f3f1ea); border-color: var(--color-border); font-weight: 600; }
.sd-offers { display: grid; gap: 0.7rem; margin: 0 0 1.5rem; }
.sd-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.5rem 1rem; padding: 0.9rem 1.1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); }
.sd-offer--pdf { border-left-color: #0b7a62; }
.sd-offer-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.sd-offer-name { font-size: 1rem; color: var(--color-text); }
.sd-offer-note { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.35; }
.sd-offer-price { font-size: 1.35rem; font-weight: 800; color: var(--color-primary-dark); white-space: nowrap; }
.sd-offer--pdf .sd-offer-price { color: #0b5d4b; }
@media (max-width: 700px) {
  .sd-offer { grid-template-columns: 1fr auto; padding: 0.75rem; }
  .sd-offer-main { grid-column: 1 / -1; }
  .sd-offer-price { font-size: 1.2rem; }
  .sd-offer .btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
}

/* ---- fenêtre de commande (PDF / livre imprimé) ---- */
.am-field[hidden], #orderAddrWrap[hidden], #orderSnBox[hidden] { display: none; }
.am-field select:disabled { background: #f3efe6; color: var(--color-text-muted); cursor: not-allowed; }
.om-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.6rem; padding: 0.55rem 0.8rem; font-size: 0.92rem; background: #fff; border: 1px solid var(--color-border-strong); border-radius: 9px; }
.om-price { font-size: 1.15rem; font-weight: 800; color: var(--color-primary-dark); white-space: nowrap; }
.om-opt { font-weight: 400; color: var(--color-text-muted); }

/* ---- Extrait feuilletable de la fiche (assets/js/boutique.js previewHtml, images assets/img/boutique-apercus/) ----
   Images seulement (aucun texte à copier), sélection, glisser et appui long désactivés, rien à l'impression. */
.sd-preview { margin: 0 0 1.6rem; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sd-preview-note { margin: -0.3rem 0 0.7rem; color: var(--color-text-muted, #5b6474); font-size: 0.9rem; }
.sdp-frame { position: relative; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--color-border, #e3dccb); border-radius: 10px; box-shadow: 0 10px 28px -14px rgba(16, 28, 48, 0.45); overflow: hidden; outline: none; }
.sdp-frame:focus-visible { box-shadow: 0 0 0 3px var(--color-accent, #f4c531); }
.sdp-img { display: block; width: 100%; height: auto; aspect-ratio: 820 / 1160; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.sdp-shield { position: absolute; inset: 0; }   /* couvre l'image : un clic ou un appui long ne la vise jamais */
.sdp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(22, 35, 58, 0.78); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.sdp-nav:disabled { opacity: 0.25; cursor: default; }
.sdp-prev { left: 8px; } .sdp-next { right: 8px; }
.sdp-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.7rem; }
.sdp-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.sdp-frame:fullscreen { max-width: none; border: 0; border-radius: 0; background: #2a2f38; display: flex; align-items: center; justify-content: center; }
.sdp-frame:fullscreen .sdp-img { width: auto; height: 100vh; max-width: 100vw; }
.sd-preview.is-big .sdp-frame { max-width: none; }
@media print {
  .sd-preview, .sdp-frame { display: none !important; }
}

/* ---- page de suivi d'une commande (/commande) ---- */
.order-track { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.order-track h1 { margin: 0.2rem 0 1rem; }
.ot-card { padding: 1.25rem 1.25rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 14px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06); }
.ot-ref { margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--color-text-muted); }
.ot-title { margin: 0 0 0.15rem; font-weight: 700; font-size: 1.05rem; }
.ot-meta { margin: 0 0 1rem; color: var(--color-text-muted); }
.ot-state { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0.6rem 0 1rem; padding: 0.9rem 1rem; border-radius: 10px; }
.ot-state p { margin: 0.2rem 0 0; font-size: 0.92rem; line-height: 1.45; }
.ot-wait { background: #fff7e0; }
.ot-ok { background: #e7f6ec; }
.ot-ko { background: #fdecea; }
.ot-check, .ot-cross { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 800; color: #fff; }
.ot-check { background: #1f7a4d; }
.ot-cross { background: #b3392b; font-size: 1.3rem; line-height: 1; }
.ot-spin { flex: none; width: 1.6rem; height: 1.6rem; border: 3px solid #e8d49b; border-top-color: var(--color-primary-dark); border-radius: 50%; animation: ot-rot 0.9s linear infinite; }
@keyframes ot-rot { to { transform: rotate(360deg); } }
.ot-actions { margin: 0.4rem 0 0.8rem; }
.ot-actions .btn { width: 100%; text-align: center; padding: 0.8rem 1rem; font-size: 1.02rem; }
.ot-muted { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .ot-spin { animation: none; } }
.om-quote { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin: -0.3rem 0 0.8rem; padding: 0.5rem 0.75rem; font-size: 0.88rem; background: #e7f6ec; border-radius: 9px; }
.om-quote[hidden] { display: none; }
.om-quote strong { white-space: nowrap; color: #17613c; }
.om-quote.is-wait { display: block; background: #fff7e0; color: #6a4d00; }
.om-quote.is-bad { display: block; background: #fdecea; color: #8a1f14; }

/* Localité : zone de saisie avec liste de suggestions (livraison). Hauteur = nombre entier de lignes : 10 sur ordinateur, 8 sur téléphone. */
.am-combo label { display: block; }
.am-combo-box { position: relative; }
.am-combo-list { --row: 2.6rem; --rows: 10; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; margin: 0; padding: 0.25rem; list-style: none; background: #fff; border: 1px solid var(--color-border-strong); border-radius: 12px; box-shadow: 0 14px 30px rgba(20, 20, 40, 0.2); max-height: calc(var(--row) * var(--rows) + 0.5rem); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.am-combo-list[hidden] { display: none; }
.am-combo-list::-webkit-scrollbar { width: 12px; }
.am-combo-list::-webkit-scrollbar-track { background: #f1eadb; border-radius: 10px; margin: 6px 0; }
.am-combo-list::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 10px; border: 3px solid #f1eadb; min-height: 36px; }
.am-combo-list::-webkit-scrollbar-thumb:hover { background: #9a6f1c; }
.am-combo-item { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; height: var(--row); box-sizing: border-box; padding: 0 0.7rem; border-radius: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 400; color: var(--color-text); }
.am-combo-item:hover, .am-combo-item[aria-selected="true"] { background: rgba(184, 135, 43, 0.16); }
.am-combo-item[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--color-primary); }
.am-combo-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-combo-name mark { background: none; color: inherit; font-weight: 800; }
.am-combo-tag { flex: none; padding: 0.1rem 0.5rem; border-radius: 999px; background: #efe4c7; color: #7a5a14; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.am-combo-other { font-weight: 700; color: var(--color-primary); border-top: 1px dashed var(--color-border-strong); border-radius: 0 0 8px 8px; }
.am-combo-other, .am-combo-other .am-combo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: var(--row); }
.am-combo-empty { height: var(--row); box-sizing: border-box; padding: 0 0.7rem; display: flex; align-items: center; font-size: 0.88rem; color: var(--color-text-muted); }
@media (max-width: 700px) {
  .am-combo-list { --rows: 8; }
  .am-combo-item { font-size: 1rem; }
}
#orderSnBox .am-row { display: block; }   /* région puis localité l'une sous l'autre : la liste de suggestions garde toute la largeur */

/* Fenêtres de commande et « Me prévenir » : défilement interne stylé (barre fine dorée à l'écart des coins arrondis, ombres haut/bas quand il reste du contenu, pas de défilement de la page derrière). */
.shop-modal-box {
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(var(--color-surface) 30%, rgba(255, 255, 255, 0)) top / 100% 28px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), var(--color-surface) 70%) bottom / 100% 28px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(60, 40, 0, 0.2), rgba(0, 0, 0, 0)) top / 100% 12px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(60, 40, 0, 0.2), rgba(0, 0, 0, 0)) bottom / 100% 12px no-repeat scroll,
    var(--color-surface);
}
.shop-modal-box::-webkit-scrollbar { width: 14px; }
.shop-modal-box::-webkit-scrollbar-track { background: rgba(184, 135, 43, 0.14); background-clip: padding-box; border: 3px solid transparent; border-radius: 10px; margin: 16px 0; }
.shop-modal-box::-webkit-scrollbar-thumb { background: var(--color-primary); background-clip: padding-box; border: 3px solid transparent; border-radius: 10px; min-height: 44px; }
.shop-modal-box::-webkit-scrollbar-thumb:hover { background: #9a6f1c; background-clip: padding-box; }
.shop-modal-box::-webkit-scrollbar-corner { background: transparent; }
/* Firefox ignore ::-webkit-scrollbar : barre fine aux mêmes couleurs (Chrome, Edge et Safari gardent la barre détaillée ci-dessus ; sans ce @supports, Chrome ignorerait ::-webkit-scrollbar). */
@supports not selector(::-webkit-scrollbar) {
  .shop-modal-box { scrollbar-width: thin; scrollbar-color: var(--color-primary) transparent; }
  .am-combo-list { scrollbar-width: thin; scrollbar-color: var(--color-primary) #f1eadb; }
}

/* Régions : bouton + fenêtre de choix stylée (même défilement que la liste des localités) — 8 lignes visibles sur ordinateur, 5 sur téléphone. */
.am-combo-btn { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%; margin-top: 0.25rem; padding: 0.6rem 0.7rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--color-text-muted); text-align: left; background: #fff; border: 1px solid var(--color-border-strong); border-radius: 9px; box-sizing: border-box; cursor: pointer; }
.am-combo-btn.has-value { color: var(--color-text); }
.am-combo-btn:focus-visible, .am-combo-btn[aria-expanded="true"] { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(184, 135, 43, 0.2); }
.am-combo-btn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-combo-chev { flex: none; color: var(--color-primary); transition: transform 0.15s; }
.am-combo-btn[aria-expanded="true"] .am-combo-chev { transform: rotate(180deg); }
.am-field.is-bad .am-combo-btn { border-color: #c0392b; background: #fff6f5; }
.am-combo-list--region { --rows: 8; }
.am-combo-list--region .am-combo-item[aria-selected="true"] { background: none; box-shadow: none; font-weight: 800; }
.am-combo-list--region .am-combo-item[aria-selected="true"]::after { content: "✓"; flex: none; color: var(--color-primary); font-weight: 800; }
.am-combo-list--region .am-combo-item:hover, .am-combo-list--region .am-combo-item.is-active { background: rgba(184, 135, 43, 0.16); box-shadow: inset 3px 0 0 var(--color-primary); }
@media (max-width: 700px) {
  .am-combo-list--region { --rows: 5; --row: 2.5rem; }
}

