/*
 * Fiche produit, mise en page mobile (inc/shop/fiche-mobile.php).
 * Chargée seulement sur les fiches activées (classe body.pd-m2). Tout est sous 768 px :
 * tablette et ordinateur gardent la fiche actuelle. Mesures reprises du prototype validé
 * le 07/10/2026 (« version mixte »).
 */

.m2-only { display: none; }

@media (max-width: 767.98px) {

	body.pd-m2 .m2-desk { display: none !important; }

	/* Barre noire du haut (ville, liens) : retirée sur la fiche, le bandeau suffit. */
	body.pd-m2 > .bg-ink.text-cream { display: none; }

	/* ---------- Fil : « ‹ Catégorie » ---------- */
	body.pd-m2 .m2-fil { background: transparent; border: 0; }
	body.pd-m2 .m2-retour { display: block; padding: 10px 16px 8px; font-size: 12px; color: #7a7268; text-decoration: none; }

	/* ---------- Bloc principal ---------- */
	body.pd-m2 [data-product-detail] { display: block; padding: 0; }

	/* Galerie qui défile */
	body.pd-m2 .m2-gal { display: block; position: relative; margin: 0 16px; border-radius: 18px; overflow: hidden; background: #EFE8DD; }
	body.pd-m2 .m2-pistes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	body.pd-m2 .m2-pistes::-webkit-scrollbar { display: none; }
	body.pd-m2 .m2-pistes img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; display: block; }
	body.pd-m2 .m2-stock { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(250,248,246,.92); color: #2F6B4F; font-size: 11px; font-weight: 600; }
	body.pd-m2 .m2-stock i { width: 6px; height: 6px; border-radius: 3px; background: #3C8A63; }
	body.pd-m2 .m2-stock.is-off { color: #7E6040; }
	body.pd-m2 .m2-stock.is-off i { background: #B3541E; }
	body.pd-m2 .m2-pts { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
	body.pd-m2 .m2-pts i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .2s; }
	body.pd-m2 .m2-pts i.on { background: #fff; width: 16px; }

	/* Identité, prix, pastilles, achat : un seul ordre de lecture */
	body.pd-m2 .m2-achat { display: flex; flex-direction: column; padding: 14px 18px 0; }
	body.pd-m2 .m2-achat > script { display: none; }
	body.pd-m2 .m2-o-eb { order: 1; margin: 0; font-size: 10.5px; letter-spacing: .2em; }
	body.pd-m2 .m2-o-h1 { order: 2; margin: 3px 0 4px; font-size: 33px; line-height: 1.02; font-style: italic; font-weight: 500; }
	body.pd-m2 .m2-o-etoiles { order: 3; display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12.5px; color: #5a544c; text-decoration: none; }
	body.pd-m2 .m2-o-etoiles span { color: #8E6A3E; letter-spacing: 1px; font-size: 13px; }
	body.pd-m2 .m2-o-prix { order: 4; margin: 10px 0 0; align-items: baseline; gap: 10px; }
	body.pd-m2 .m2-o-prix [data-price-display] { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
	body.pd-m2 .m2-o-prix .text-gold { font-size: 27px; line-height: 1; font-weight: 600; color: #6E4E2E; font-variant-numeric: tabular-nums; }
	body.pd-m2 .m2-o-prix .line-through { font-size: 15px; color: #9a9288; }
	body.pd-m2 .m2-o-puces { order: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; padding: 0; list-style: none; }
	body.pd-m2 .m2-o-puces li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(29,26,23,.12); background: #fff; font-size: 12px; line-height: 1.2; color: #3d3832; }
	body.pd-m2 .m2-o-puces svg { flex: none; color: #7E6040; }
	body.pd-m2 .m2-o-var { order: 6; margin-top: 14px; }
	/* Sélecteur de variantes : volume ou épaisseur, puis courbure, puis longueur en grille */
	body.pd-m2 .m2-o-var > h3 { display: none; }
	body.pd-m2 .m2-o-var { display: grid; gap: 12px; }
	body.pd-m2 .m2-o-var > * { margin: 0 !important; }
	body.pd-m2 .m2-o-var > div > p { margin: 0 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7a7268; }
	body.pd-m2 .m2-o-var > div > p b { margin-left: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #1D1A17; }
	body.pd-m2 .m2-o-var [data-dim], body.pd-m2 .m2-o-var [data-variant-flat] { gap: 6px; }
	body.pd-m2 .m2-o-var .chip { min-width: 46px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(29,26,23,.16); background: #fff; color: #1D1A17; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: 1; box-shadow: none; }
	body.pd-m2 .m2-o-var .chip.is-active { background: #1D1A17; border-color: #1D1A17; color: #fff; }
	body.pd-m2 .m2-o-var .chip:disabled, body.pd-m2 .m2-o-var .chip.opacity-40 { opacity: 1; color: #b5aea5; background: #F6F3EF; border-style: dashed; }
	body.pd-m2 .m2-o-var .chip.line-through { text-decoration-color: rgba(29,26,23,.25); }
	body.pd-m2 .m2-o-var [data-dim="l"] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
	body.pd-m2 .m2-o-var [data-dim="l"] .chip { min-width: 0; padding: 0 4px; }
	body.pd-m2 .m2-o-var [data-dim="l"] .m2-mix { grid-column: span 2; }
	body.pd-m2 .m2-o-var [data-variant-stock-msg] { font-size: 12.5px; color: #2F6B45; }
	body.pd-m2 .m2-o-var [data-variant-stock-msg]:empty { display: none; }
	body.pd-m2 .m2-o-achat { order: 7; margin-top: 14px; gap: 8px; }
	body.pd-m2 .m2-o-achat [data-add-to-cart] { min-height: 48px; font-size: 15px; }
	body.pd-m2 .m2-o-achat2 { order: 8; }
	body.pd-m2 .m2-o-achat3 { order: 9; margin-top: 8px; }
	body.pd-m2 .m2-o-paie { order: 10; margin: 16px 0 6px; }
	body.pd-m2 .m2-o-st { order: 11; margin: 18px 0 0; font-family: Inter, system-ui, sans-serif; font-style: normal; font-size: 14px; line-height: 1.6; color: #3d3832; }
	body.pd-m2 .m2-o-arg { order: 12; margin: 18px -2px 0 !important; padding: 14px 16px !important; border: 0 !important; border-radius: 14px !important; background: #F1EBE2 !important; }
	body.pd-m2 .m2-o-arg p:first-child { font-size: 10.5px !important; letter-spacing: .14em !important; margin-bottom: 2px !important; }
	body.pd-m2 .m2-o-arg p:nth-child(2) { font-size: 21px !important; line-height: 1.15 !important; margin-bottom: 4px !important; }
	body.pd-m2 .m2-o-arg p:nth-child(3) { font-size: 13.5px !important; line-height: 1.5 !important; color: #3d3832 !important; }
	body.pd-m2 .m2-o-reass { order: 13; display: grid; gap: 7px; margin: 20px 0 0; padding: 0; font-size: 13px; }
	body.pd-m2 .m2-o-reass > li { margin: 0 !important; gap: 8px; line-height: 1.4; }
	body.pd-m2 .m2-o-reass svg { color: #4F7A5C; margin-top: 2px; }

	/* ---------- Onglets ---------- */
	body.pd-m2 .m2-onglets { padding: 28px 0 0; }
	body.pd-m2 .m2-onglets > div { padding: 0; }
	body.pd-m2 .m2-onglets .sticky { background: rgba(250,248,246,.97); }
	body.pd-m2 .m2-onglets [role="tablist"] { flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 0 18px; scrollbar-width: none; }
	body.pd-m2 .m2-onglets [role="tablist"]::-webkit-scrollbar { display: none; }
	body.pd-m2 .m2-onglets .tab { flex: none; padding: 11px 0 9px; font-size: 13.5px; color: #5a544c; }
	body.pd-m2 .m2-onglets .tab.is-active { color: #1D1A17; }
	body.pd-m2 .m2-onglets .tab-panel { padding: 16px 18px 0; }

	body.pd-m2 .pd-desc { font-size: 14px; line-height: 1.6; color: #3d3832; }
	body.pd-m2 .pd-desc p, body.pd-m2 .pd-desc .pd-lead { margin: 0 0 10px; font-size: 14px; line-height: 1.6; font-family: inherit; font-style: normal; color: inherit; }
	body.pd-m2 .pd-desc h2, body.pd-m2 .pd-desc h3 { margin: 22px 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.15; color: #1D1A17; }

	/* Contenu du kit : une liste d'étapes numérotées */
	body.pd-m2 .pd-kit { display: block; counter-reset: etape; list-style: none; margin: 0; padding: 2px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(29,26,23,.07); }
	body.pd-m2 .pd-kit li { counter-increment: etape; display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 10px 0; border-radius: 0; background: none; border: 0; box-shadow: none; }
	body.pd-m2 .pd-kit li + li { border-top: 1px solid rgba(29,26,23,.06); }
	body.pd-m2 .pd-kit-etape { grid-column: 1; grid-row: 1 / span 2; width: 21px; height: 21px; margin-top: 1px; border-radius: 11px; background: #F1EBE2; font-size: 0; letter-spacing: 0; text-align: center; }
	body.pd-m2 .pd-kit-etape::before { content: counter(etape); font: 600 11px/21px Inter, system-ui, sans-serif; color: #7E6040; }
	body.pd-m2 .pd-kit b { grid-column: 2; grid-row: 1; font-size: 13.5px; font-weight: 600; }
	body.pd-m2 .pd-kit-role { grid-column: 2; grid-row: 2; font-size: 12.5px; line-height: 1.4; color: #6f675c; }
	body.pd-m2 .pd-kit-vol { grid-column: 3; grid-row: 1; margin: 2px 0 0; font: 500 12px Inter, system-ui, sans-serif; color: #7E6040; }
	body.pd-m2 .pd-kit-plus { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
	body.pd-m2 .pd-kit-plus li { margin: 0; padding: 4px 10px; border-radius: 999px; background: #F1EBE2; border: 0; font-size: 12.5px; line-height: 1.4; color: #1D1A17; }
	body.pd-m2 .pd-kit-plus b { font: 600 12.5px Inter, system-ui, sans-serif; color: #1D1A17; }

	body.pd-m2 .pd-specs dl > div { padding: 9px 0; font-size: 13px; }
	body.pd-m2 #tab-tips > div { padding: 0; text-align: left; }
	body.pd-m2 #tab-tips blockquote { font-family: Inter, system-ui, sans-serif; font-style: normal; font-size: 14px; line-height: 1.6; color: #3d3832; }
	body.pd-m2 #tab-tips blockquote + p { margin-top: 8px; font-size: 12.5px; color: #7a7268; }
	body.pd-m2 .pd-compo { font-size: 12.5px; line-height: 1.6; }

	/* ---------- Sections du bas : même gabarit ---------- */
	body.pd-m2 .m2-avis, body.pd-m2 .m2-faq, body.pd-m2 .m2-sec { margin: 32px 16px 0; padding: 0; border: 0; }
	body.pd-m2 .m2-avis > div, body.pd-m2 .m2-faq > div { padding: 0; max-width: none; }
	body.pd-m2 .m2-tete, body.pd-m2 .m2-faq h2 { margin: 0 2px 12px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.1; color: #1D1A17; text-align: left; }

	/* Avis */
	body.pd-m2 .m2-avis-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 2px 12px; text-align: left; }
	body.pd-m2 .m2-avis-tete > p { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: 0; text-transform: none; color: #1D1A17; }
	body.pd-m2 .m2-avis-tete > div { margin: 0; gap: 5px; white-space: nowrap; }
	body.pd-m2 .m2-avis-tete > div span { font-family: Inter, system-ui, sans-serif; font-style: normal; font-size: 12.5px; color: #5a544c; }
	body.pd-m2 .m2-avis-tete > div .text-gold { color: #8E6A3E; }
	body.pd-m2 .m2-avis-liste { margin: 0; }
	body.pd-m2 .m2-avis-liste > li { display: flex; flex-direction: column-reverse; margin: 10px 0 0 !important; padding: 14px 16px; border-radius: 16px; background: #F1EBE2; box-shadow: none; }
	body.pd-m2 .m2-avis-liste > li:first-child { margin-top: 0 !important; }
	body.pd-m2 .m2-avis-liste > li > p { margin: 0 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.3; color: #1D1A17; }
	body.pd-m2 .m2-avis-liste > li > div { font-size: 12px; color: #5a544c; }
	body.pd-m2 .m2-avis-liste > li > div .font-medium { font-weight: 400; }
	body.pd-m2 .m2-avis-liste > li > div > span:last-child, body.pd-m2 .m2-avis-liste > li > div > .inline-flex { font-size: 12px; }
	body.pd-m2 .m2-avis-liste:not(.is-tous) > li:nth-child(n+4) { display: none; }
	body.pd-m2 .m2-avis-tous { display: block; width: 100%; margin-top: 10px; padding: 0; border: 0; background: none; color: #7E6040; font-size: 13px; font-weight: 600; text-align: left; }
	body.pd-m2 .m2-avis-tous[hidden] { display: none; }

	body.pd-m2 .m2-donner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(126,96,64,.25); background: #fff; }
	body.pd-m2 .m2-avis > div > .m2-donner:first-child, body.pd-m2 .m2-avis > div > div.m2-desk + .m2-donner { margin-top: 0; }
	body.pd-m2 .m2-donner-txt { display: block; flex: 1 1 150px; margin: 0; }
	body.pd-m2 .m2-donner-txt b { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.15; color: #1D1A17; }
	body.pd-m2 .m2-donner-txt span { display: block; margin-top: 2px; font-size: 12px; color: #7a7268; }
	body.pd-m2 .m2-donner > button, body.pd-m2 .m2-donner > details > summary { flex: none; height: 40px; padding: 0 16px; border-radius: 20px; background: #1D1A17; color: #FAF8F6; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
	body.pd-m2 .m2-donner > button svg, body.pd-m2 .m2-donner > details > summary svg { display: none; }
	body.pd-m2 .m2-donner > details { width: auto; max-width: none; align-items: stretch; }
	body.pd-m2 .m2-donner > details[open] { flex-basis: 100%; }
	body.pd-m2 .m2-donner > details[open] > summary { align-self: flex-start; }
	body.pd-m2 .m2-donner > p:not(.m2-donner-txt) { flex-basis: 100%; margin: 0; font-size: 12.5px; }

	/* Produits proposés : sélection groupée */
	body.pd-m2 .m2-compl { display: block; }
	body.pd-m2 .m2-grp { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(29,26,23,.08); border-radius: 14px; background: #fff; }
	body.pd-m2 .m2-grp li + li { border-top: 1px solid rgba(29,26,23,.06); }
	body.pd-m2 .m2-grp label { display: grid; grid-template-columns: 20px 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
	body.pd-m2 .m2-grp input { width: 18px; height: 18px; margin: 0; accent-color: #1D1A17; }
	body.pd-m2 .m2-grp img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
	body.pd-m2 .m2-grp .t { font-size: 13px; line-height: 1.3; color: #1D1A17; }
	body.pd-m2 .m2-grp .pr { font-size: 13px; font-weight: 600; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
	body.pd-m2 .m2-grp .pr s { display: block; font-size: 11px; font-weight: 400; color: #9a9288; }
	body.pd-m2 .m2-grp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 10px; border: 0; border-radius: 23px; background: #D7C3A5; color: #1D1A17; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
	body.pd-m2 .m2-grp-btn.is-ok { background: #1D1A17; color: #fff; }
	body.pd-m2 .m2-grp-btn:disabled { opacity: .5; }

	/* Produits proposés : carrousel, ajout par icône sur la photo */
	body.pd-m2 .m2-car { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; list-style: none; }
	body.pd-m2 .m2-car::-webkit-scrollbar { display: none; }
	body.pd-m2 .m2-car li { flex: none; width: 148px; scroll-snap-align: start; display: flex; flex-direction: column; padding-bottom: 10px; background: #fff; border: 1px solid rgba(29,26,23,.08); border-radius: 14px; overflow: hidden; }
	body.pd-m2 .m2-im { position: relative; }
	body.pd-m2 .m2-im img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
	body.pd-m2 .m2-car .t { padding: 10px 10px 0; min-height: 3.65em; font-size: 12.5px; line-height: 1.3; color: #1D1A17; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	body.pd-m2 .m2-car .pr { padding: 4px 10px 0; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
	body.pd-m2 .m2-car .pr s { margin-left: 3px; font-size: 11.5px; font-weight: 400; color: #9a9288; }
	body.pd-m2 .m2-ic { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border: 0; border-radius: 18px; background: rgba(250,248,246,.95); color: #1D1A17; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(29,26,23,.18); }
	body.pd-m2 .m2-ic.is-added { background: #1D1A17; color: #fff; }
	body.pd-m2 .m2-gamme { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: #7E6040; text-decoration: none; }

	/* FAQ */
	body.pd-m2 .m2-faq .text-center { text-align: left; }
	body.pd-m2 .m2-faq .eyebrow { display: none; }
	body.pd-m2 .m2-faq h2 { margin-top: 0; }
	body.pd-m2 .m2-faq .mt-12 { margin-top: 0; }
	body.pd-m2 .m2-faq details { margin: 0 !important; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid rgba(29,26,23,.08); }
	body.pd-m2 .m2-faq details:last-child { border-bottom: 1px solid rgba(29,26,23,.08); }
	body.pd-m2 .m2-faq summary { padding: 13px 2px; gap: 10px; }
	body.pd-m2 .m2-faq summary > span:first-child { font-size: 13.5px; font-weight: 400; color: #1D1A17; }
	body.pd-m2 .m2-faq .acc-icon { font-size: 18px; }
	body.pd-m2 .m2-faq details > div { padding: 0 2px 12px; font-size: 13px; line-height: 1.55; color: #5a544c; }

	/* Une question avant d'acheter */
	body.pd-m2 .m2-cta { background: transparent; }
	body.pd-m2 .m2-cta > div { display: block; margin: 32px 16px 40px; padding: 16px; border-radius: 16px; background: #1D1A17; color: #F1EBE2; }
	body.pd-m2 .m2-cta .eyebrow { display: none; }
	body.pd-m2 .m2-cta h3 { margin: 0 0 4px; font-size: 23px; line-height: 1.1; color: #fff; }
	body.pd-m2 .m2-cta p { margin: 0 0 10px; max-width: none; font-size: 13px; line-height: 1.5; color: #d9cfbf; }
	body.pd-m2 .m2-cta a { width: 100%; height: 40px; padding: 0; border-radius: 20px; font-size: 13px; font-weight: 600; }
	body.pd-m2 .m2-cta > div > div + div { margin-top: 0; }
}
