/* =====================================================================
   Boutique CSB : catalogue, fiche produit, panier, commande, confirmation (refonte du 5 nov. 2026).
   Fond blanc dominant, hero commun aux pages boutique (csb-boutique-hero.css, même gabarit que les formations), vert du centre, jaune mil en accent.
   Jetons de couleur : assets/css/csb-panier.css (:root --shop-*). Titres : sélecteurs « body … :not(#csb) »
   pour passer devant les tailles globales de csb.css.
   ===================================================================== */
.csb-shop { background: #fff; color: var(--shop-encre); padding-bottom: 88px; font-family: var(--csb-font-texte); }
.csb-shop p { color: var(--shop-encre); }
.csb-shop :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--shop-mil); outline-offset: 2px; box-shadow: 0 0 0 5px var(--shop-vert); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- En-tête compact ------------------------------------------------------------------------------ */
.shop-top { padding: 28px 0 8px; }
.shop-crumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; }
.shop-crumb li { color: var(--shop-gris); }
.shop-crumb li + li::before { content: "/"; margin: 0 8px; color: #A9B4AC; }
.shop-crumb a { color: var(--shop-gris); text-decoration: none; }
.shop-crumb a:hover { color: var(--shop-vert); text-decoration: underline; }
.shop-crumb [aria-current] { color: var(--shop-encre); font-weight: 600; }
body .csb-shop h1.shop-title:not(#csb) { margin: 0 0 10px; font-size: clamp(30px, 22px + 1.6vw, 44px); line-height: 1.1; color: var(--shop-vert); letter-spacing: -.02em; }
.csb-shop .shop-intro { max-width: 68ch; margin: 0; font-size: 16px; line-height: 1.65; color: var(--shop-gris); }

/* --- Catalogue : outils ------------------------------------------------------------------------- */
.shop-catalogue { padding-top: 20px; }
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--shop-trait); border-bottom: 1px solid var(--shop-trait); }
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--shop-trait); border-radius: 999px; background: #fff; color: var(--shop-encre); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.shop-chip i { color: var(--shop-vert); font-size: 15px; }
.shop-chip span { font-size: 12.5px; font-weight: 600; color: var(--shop-gris); }
.shop-chip:hover { border-color: var(--shop-vert); color: var(--shop-vert); }
.shop-chip[aria-current="true"] { background: var(--shop-vert); border-color: var(--shop-vert); color: #fff; }
.shop-chip[aria-current="true"] :is(i, span) { color: inherit; }
.shop-search-sort { display: flex; gap: 10px; flex: 1 1 340px; justify-content: flex-end; }
.shop-search { position: relative; flex: 1 1 220px; max-width: 300px; margin: 0; }
.shop-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--shop-gris); pointer-events: none; }
.shop-search input, .shop-sort select { width: 100%; height: 44px; border: 1px solid #CBD5CE; border-radius: 999px; background: #fff; font-size: 14.5px; color: var(--shop-encre); }
.shop-search input { padding: 0 16px 0 42px; }
.shop-sort { margin: 0; }
.shop-sort select { padding: 0 38px 0 16px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316231A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.csb-shop .shop-count { margin: 20px 0 16px; font-size: 14px; color: var(--shop-gris); }

/* --- Grille et cartes ---------------------------------------------------------------------------- */
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.shop-card[hidden] { display: none; }
.shop-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.shop-card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--shop-rayon); background: var(--shop-doux); }
.shop-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--shop-ease); }
.shop-card-link:hover .shop-card-img { transform: scale(1.04); }
.shop-card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 2px 0; }
.shop-card-cat { font-size: 13px; font-weight: 600; color: var(--shop-gris); }
.shop-card-name { font-family: var(--csb-font-titre); font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--shop-encre); text-wrap: balance; }
.shop-card-link:hover .shop-card-name { color: var(--shop-vert); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.shop-card-price { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--shop-vert); }

/* Disponibilité : pastille de couleur + texte (jamais la couleur seule) */
.shop-dispo { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--shop-gris); }
.shop-dispo::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9AA59D; }
.shop-dispo--saison::before, .shop-dispo--commande::before { background: #2E8B57; }
.shop-dispo--annonce::before { background: #D9A400; }
.shop-dispo--indisponible::before { background: var(--shop-erreur); }

/* Visuel de remplacement (aucune photo fournie) */
.shop-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--shop-doux) 0 14px, #F1F3EE 14px 28px); color: #7E9285; }
.shop-placeholder i { font-size: 34px; }
.shop-placeholder span { font-size: 12.5px; font-weight: 600; }
.shop-placeholder--large i { font-size: 56px; }
.shop-placeholder--large { aspect-ratio: 1; border-radius: var(--shop-rayon); }

.shop-empty { padding: 56px 16px; text-align: center; }
.shop-empty p { margin: 0 0 16px; font-size: 16px; }

.shop-reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; padding: 28px; border-radius: var(--shop-rayon); background: var(--shop-doux); }
.shop-reassure > div { display: flex; gap: 14px; align-items: flex-start; }
.shop-reassure i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--shop-vert); font-size: 19px; }
.csb-shop .shop-reassure p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--shop-gris); }
.shop-reassure strong { display: block; color: var(--shop-encre); font-size: 15px; }

/* --- Fiche produit ------------------------------------------------------------------------------ */
.shop-product { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 56px; align-items: start; padding: 8px 0 64px; }
.csb-shop-page .shop-product + * { margin-top: 0; }
.shop-gallery { position: sticky; top: 112px; }
.shop-gallery-main { position: relative; margin: 0; }
.shop-gallery-main img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--shop-rayon); background: var(--shop-doux); transition: opacity .2s; }
.shop-gallery-main img.is-changing { opacity: .35; }
.shop-gallery-main figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--shop-gris); }
.shop-gallery-nav { position: absolute; top: calc(50% - 22px); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--shop-encre); box-shadow: 0 2px 10px rgba(22, 35, 26, .15); cursor: pointer; }
.shop-gallery-prev { left: 14px; }
.shop-gallery-next { right: 14px; }
.shop-gallery-nav:hover { background: #fff; color: var(--shop-vert); }
.shop-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px 2px; }
.shop-thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; overflow: hidden; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-thumb:hover { opacity: 1; }
.shop-thumb[aria-current="true"] { border-color: var(--shop-vert); opacity: 1; }

.shop-buy { display: flex; flex-direction: column; }
.shop-buy-cat { align-self: flex-start; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--shop-vert); text-decoration: none; }
.shop-buy-cat:hover { text-decoration: underline; }
body .csb-shop .shop-buy-title:not(#csb) { margin: 0 0 12px; font-size: clamp(30px, 24px + 1.4vw, 42px); line-height: 1.1; color: var(--shop-encre); letter-spacing: -.02em; }
.csb-shop .shop-buy-lead { margin: 0 0 22px; font-size: 16.5px; line-height: 1.65; color: var(--shop-gris); max-width: 52ch; }
.shop-buy-price { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--shop-trait); }
.shop-buy-price strong { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--shop-vert); }
.shop-buy-price span { font-size: 14px; color: var(--shop-gris); }
.shop-buy > .shop-dispo { margin: 0 0 22px; }
.shop-add { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; border-top: 1px solid var(--shop-trait); }
.shop-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.shop-field legend, .shop-field > label, .shop-label { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; color: var(--shop-encre); }
.shop-options { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-option { position: relative; margin: 0; cursor: pointer; }
.shop-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #CBD5CE; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--shop-encre); transition: border-color .2s, background-color .2s; }
.shop-option:hover span { border-color: var(--shop-vert); }
.shop-option input:checked + span { border-color: var(--shop-vert); background: var(--shop-vert); color: #fff; }
.shop-option input:focus-visible + span { outline: 3px solid var(--shop-mil); outline-offset: 2px; }
.shop-field-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.shop-stepper { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid #CBD5CE; border-radius: 999px; }
.shop-stepper button { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; color: var(--shop-encre); cursor: pointer; }
.shop-stepper button:hover { background: var(--shop-doux); }
.shop-stepper input { width: 52px; height: 44px; border: 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--shop-encre); background: none; -moz-appearance: textfield; }
.shop-stepper input::-webkit-outer-spin-button, .shop-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-add select, .shop-checkout select { width: 100%; height: 48px; padding: 0 38px 0 16px; border: 1.5px solid #CBD5CE; border-radius: 999px; font-size: 15px; color: var(--shop-encre); appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316231A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.csb-shop .shop-unit-fixed { display: flex; align-items: center; height: 48px; margin: 0; font-size: 15px; font-weight: 600; }
.csb-shop .shop-help { margin: -6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--shop-gris); }
.csb-shop .shop-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--shop-erreur); }
.shop-btn i { font-size: 17px; }
.shop-btn.is-added { animation: shop-pop .5s var(--shop-ease); }
@keyframes shop-pop { 40% { transform: scale(.97); } }
.shop-assurances { list-style: none; margin: 26px 0 0; padding: 20px; border-radius: var(--shop-rayon); background: var(--shop-doux); display: flex; flex-direction: column; gap: 14px; }
.shop-assurances li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--shop-gris); }
.shop-assurances i { flex: none; width: 22px; margin-top: 2px; color: var(--shop-vert); font-size: 18px; text-align: center; }
.shop-assurances strong { display: block; color: var(--shop-encre); }
.csb-shop .shop-note { margin: 16px 0; padding: 16px 18px; border-radius: 10px; background: var(--shop-doux); font-size: 14.5px; line-height: 1.6; }
.csb-shop .shop-note p { margin: 0 0 12px; }

body .csb-shop .shop-related h2:not(#csb) { margin: 0 0 14px; font-size: 24px; line-height: 1.2; color: var(--shop-encre); }
.shop-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--shop-vert); text-decoration: underline; text-underline-offset: 4px; }
.shop-related { padding-top: 48px; border-top: 1px solid var(--shop-trait); }
.shop-grid--related { margin-top: 8px; }

/* --- Page panier ---------------------------------------------------------------------------------- */
.shop-cartpage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-top: 16px; }
.shop-cartpage-lines { border-top: 1px solid var(--shop-trait); }
.shop-cartpage-lines .cl { grid-template-columns: 110px 1fr; padding: 24px 0; }
.shop-cartpage-lines .cl-media, .shop-cartpage-lines .cl-media img { width: 110px; height: 110px; }
.shop-cartpage-lines .cl-name { font-size: 17px; }
.shop-cartpage-lines .cart-empty { min-height: 320px; }
.shop-cartpage-summary { position: sticky; top: 112px; padding: 24px; border-radius: var(--shop-rayon); background: var(--shop-doux); }
body .csb-shop .shop-cartpage-summary h2:not(#csb) { margin: 0 0 14px; font-size: 22px; }
.shop-cartpage-summary .shop-btn + .shop-btn { margin-top: 10px; }

/* --- Commande (mise en page type checkout) ---------------------------------------------------------- */
.csb-shop[data-vue="commande"] { padding-bottom: 0; }
.shop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 70vh; border-top: 1px solid var(--shop-trait); }
.shop-checkout-main { padding: 32px 48px 72px 24px; display: flex; justify-content: flex-end; }
.shop-checkout-side { padding: 32px 24px 72px 48px; background: var(--shop-doux); border-left: 1px solid var(--shop-trait); }
.shop-checkout-inner { width: 100%; max-width: 560px; }
.shop-checkout-side .shop-checkout-inner { position: sticky; top: 112px; max-width: 460px; }
.shop-fieldset { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.shop-fieldset legend { margin-bottom: 14px; padding: 0; font-family: var(--csb-font-titre); font-size: 21px; font-weight: 600; color: var(--shop-encre); }
.shop-checkout .shop-field { margin-bottom: 14px; }
.shop-checkout .shop-field > label { font-weight: 600; font-size: 14px; }
.shop-optional { font-weight: 500; color: var(--shop-gris); }
.shop-checkout input:not([type="checkbox"]), .shop-checkout textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C3CDC6; border-radius: 8px; background: #fff; font-size: 15.5px; line-height: 1.4; color: var(--shop-encre); transition: border-color .2s, box-shadow .2s; }
.shop-checkout textarea { resize: vertical; }
.shop-checkout :is(input, textarea):focus { border-color: var(--shop-vert); box-shadow: 0 0 0 3px rgba(0, 69, 64, .15); outline: none; }
.shop-checkout [aria-invalid="true"] { border-color: var(--shop-erreur) !important; }
.shop-fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.csb-shop .shop-field-help { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--shop-gris); }
.csb-shop .shop-field-err { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--shop-erreur); }
.csb-shop .shop-error--box { margin: 20px 0 0; padding: 14px 16px; border: 1px solid #F1B5AE; border-radius: 8px; background: #FDF1EF; }
.shop-payment { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--shop-vert); border-radius: 8px; background: #F2F8F4; }
.shop-payment i { flex: none; font-size: 22px; color: var(--shop-vert); margin-top: 2px; }
.csb-shop .shop-payment p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--shop-gris); }
.shop-payment strong { display: block; color: var(--shop-encre); font-size: 15px; }
.shop-consent { display: flex !important; gap: 12px; align-items: flex-start; margin-top: 24px !important; font-weight: 500 !important; font-size: 14px !important; line-height: 1.5; cursor: pointer; }
.shop-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--shop-vert); }
.shop-honeypot { position: absolute; left: -9999px; }
.shop-checkout #shop-submit { margin-top: 10px; }
.shop-btn.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: shop-spin .8s linear infinite; }
@keyframes shop-spin { to { transform: rotate(360deg); } }
.csb-shop .shop-center { text-align: center; }
.shop-back { margin: 18px 0 0; text-align: center; font-size: 14px; }
.shop-back a { color: var(--shop-vert); font-weight: 600; }
body .csb-shop .shop-recap-title:not(#csb) { margin: 0 0 8px; font-size: 21px; }
.shop-recap-toggle { display: none; }
.cs--recap { padding-top: 16px; border-top: 1px solid var(--shop-trait); }

/* --- Confirmation ------------------------------------------------------------------------------- */
.shop-confirm { max-width: 760px; padding: 8px 0 24px; outline: none; }
body .csb-shop .shop-confirm h1:not(#csb) { margin: 0 0 20px; font-size: clamp(28px, 22px + 1.4vw, 40px); line-height: 1.15; color: var(--shop-vert); }
.shop-confirm-ref { display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 10px; background: var(--shop-doux); }
.shop-confirm-ref span { font-size: 13px; color: var(--shop-gris); }
.shop-confirm-ref strong { font-size: 15px; letter-spacing: .02em; word-break: break-all; }
.csb-shop .shop-confirm-status { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 600; }
.shop-dot { width: 10px; height: 10px; border-radius: 50%; background: #D9A400; }
body .csb-shop .shop-confirm-h2:not(#csb) { margin: 36px 0 12px; font-size: 22px; }
.shop-steps { margin: 0; padding-left: 22px; }
.shop-steps li { margin-bottom: 8px; font-size: 15px; line-height: 1.6; }
.shop-confirm-recap .cl-list { border-top: 1px solid var(--shop-trait); }
.shop-confirm-recap .cl { grid-template-columns: 72px 1fr; }
.shop-confirm-recap .cl-media, .shop-confirm-recap .cl-media img { width: 72px; height: 72px; }
.csb-shop .shop-confirm-total { display: flex; justify-content: space-between; margin: 0; padding: 14px 0; border-top: 1px solid var(--shop-trait); font-size: 16px; }
.shop-confirm-client p { margin: 0; font-size: 15px; line-height: 1.6; }
.shop-confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- Responsive -------------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.shop-product { gap: 40px; }
}
@media (max-width: 991px) {
	.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.shop-product { grid-template-columns: 1fr; gap: 28px; }
	.shop-gallery { position: static; }
	.shop-cartpage { grid-template-columns: 1fr; gap: 24px; }
	.shop-cartpage-summary { position: static; }
	.shop-reassure { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; padding: 22px; }
	.shop-checkout { grid-template-columns: 1fr; }
	.shop-checkout-side { order: -1; padding: 0; border-left: 0; border-bottom: 1px solid var(--shop-trait); }
	.shop-checkout-side .shop-checkout-inner { position: static; max-width: none; }
	.shop-checkout-main { padding: 24px 16px 64px; justify-content: center; }
	.shop-checkout-inner { max-width: 640px; margin: 0 auto; }
	.shop-recap-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: none; color: var(--shop-vert); font-size: 15px; font-weight: 700; cursor: pointer; }
	.shop-recap-toggle .fa-chevron-down { transition: transform .2s; }
	.shop-recap-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
	.shop-recap-panel { display: none; padding: 0 16px 20px; }
	.recap-open .shop-recap-panel { display: block; }
	body .csb-shop .shop-recap-title:not(#csb) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 767px) {
	.shop-top { padding-top: 20px; }
	.shop-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.shop-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--bs-gutter-x, 30px) * -.5); padding: 2px calc(var(--bs-gutter-x, 30px) * .5) 6px; /* = marge du conteneur (1 px de débordement corrigé le 6 nov. 2026) */ scrollbar-width: none; }
	.shop-filters::-webkit-scrollbar { display: none; }
	.shop-search-sort { flex-basis: auto; }
	.shop-search { max-width: none; }
	.shop-sort { flex: 0 0 150px; }
	.shop-card-name { font-size: 16.5px; }
	.shop-card-price { font-size: 14px; }
	.shop-dispo { font-size: 12.5px; }
	.shop-fields-2 { grid-template-columns: 1fr; }
	.shop-cartpage-lines .cl { grid-template-columns: 80px 1fr; }
	.shop-cartpage-lines .cl-media, .shop-cartpage-lines .cl-media img { width: 80px; height: 80px; }
	.shop-gallery-nav { width: 40px; height: 40px; top: calc(50% - 20px); }
	.shop-thumb { width: 64px; height: 64px; }
}
@media (max-width: 359px) {
	.shop-grid { grid-template-columns: 1fr; }
	.shop-sort { flex-basis: 120px; }
	.shop-field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.shop-card-img, .shop-gallery-main img, .shop-chip, .shop-option span { transition: none; }
	.shop-card-link:hover .shop-card-img { transform: none; }
	.shop-btn.is-added, .shop-btn.is-loading::before { animation: none; }
}

/* Champs : le thème agrandit les textes indicatifs */
.csb-shop :is(input, textarea)::placeholder { font-size: 15px; color: #8A968E; opacity: 1; }
.csb-shop .shop-search input::placeholder { font-size: 14.5px; }

/* Fiche : l'attribut height de l'image ne doit pas annuler le ratio (image trop haute sur mobile) */
.shop-gallery-main img { height: auto; }
.shop-placeholder--large { height: auto; }
@media (max-width: 991px) {
	.shop-gallery-main img, .shop-placeholder--large { aspect-ratio: 4 / 3; max-height: 62vh; }
}
@media (max-width: 480px) {
	.shop-gallery-main img, .shop-placeholder--large { aspect-ratio: 1 / 1; max-height: 58vh; }
}

/* Ordinateur : image de fiche plus compacte (4/3, 560 px au plus) pour voir aussi les miniatures et le bouton d'ajout sans défiler */
@media (min-width: 992px) {
	.shop-product { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); }
	.shop-gallery-main img, .shop-placeholder--large { aspect-ratio: 4 / 3; max-height: 560px; }
	.shop-gallery { top: 96px; }
}

/* --- Illustrations générées (badge), agrandissement ---------------------------------------------------- */
.shop-ia-badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--shop-vert); font-size: 12px; font-weight: 700; line-height: 1.4; box-shadow: 0 1px 4px rgba(22, 35, 26, .18); pointer-events: none; }
.shop-ia-badge[hidden] { display: none; }
.shop-gallery-main .shop-ia-badge { left: 14px; bottom: auto; top: 14px; font-size: 12.5px; }
.shop-gallery-main .shop-ia-badge[hidden] { display: none; }
.shop-gallery-zoom { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--shop-encre); box-shadow: 0 2px 10px rgba(22, 35, 26, .15); cursor: zoom-in; }
.shop-gallery-zoom:hover { background: #fff; color: var(--shop-vert); }
.shop-gallery-main img { cursor: zoom-in; }
/* Cartes : les illustrations (fond clair, sujet centré) restent entières */
.shop-card-media { background: #F7F8F5; }
@media (max-width: 767px) { .shop-ia-badge { left: 6px; bottom: 6px; padding: 3px 8px; font-size: 11px; } .shop-gallery-zoom { width: 40px; height: 40px; } }

/* --- Description éditoriale : une seule colonne, 100 % de la largeur du conteneur (5 nov. 2026) ----------- */
.csb-shop { --shop-texte-max: none; }   /* limite de largeur des paragraphes : mettre 90ch pour réduire la longueur des lignes sur très grands écrans */
.shop-editorial { display: block; width: 100%; margin: 0; padding: 8px 0 24px; border-top: 1px solid var(--shop-trait); }
.shop-ed-sec { display: block; width: 100%; padding: 32px 0; border-bottom: 1px solid var(--shop-trait); }
.shop-ed-sec:last-child { border-bottom: 0; }
body .csb-shop .shop-ed-sec h2:not(#csb) { margin: 0 0 16px; font-size: clamp(22px, 19px + .6vw, 27px); line-height: 1.2; color: var(--shop-encre); }
.csb-shop .shop-ed-sec p { width: 100%; max-width: var(--shop-texte-max); margin: 0 0 14px; font-size: 17px; line-height: 1.75; color: var(--shop-encre); }
.csb-shop .shop-ed-sec p:last-child { margin-bottom: 0; }
.shop-ed-list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: var(--shop-texte-max); display: flex; flex-direction: column; gap: 12px; }
.shop-ed-list li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.7; color: var(--shop-encre); }
.shop-ed-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 20px; height: 20px; border-radius: 50%; background: var(--shop-mil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%23004540' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.shop-ed-list strong { color: var(--shop-vert); }
.csb-shop .shop-ed-sec .shop-ed-link { margin-top: 18px; }
.csb-shop .shop-ed-sec .shop-ed-contact { margin-top: 18px; color: var(--shop-gris); font-size: 15.5px; }
@media (max-width: 767px) {
	.shop-ed-sec { padding: 26px 0; }
	.csb-shop .shop-ed-sec p, .shop-ed-list li { font-size: 16px; line-height: 1.7; }
	.shop-ed-list li { padding-left: 30px; }
}
body .csb-shop .shop-ed-sec .shop-ed-contact a:not(#csb) { color: var(--shop-vert); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Produits similaires : 4 cartes sur une ligne dès 768 px (pas de carte orpheline), 2 colonnes en dessous */
@media (min-width: 768px) { .shop-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
