/* V3.54 — Héros produits (blocks/phero.php) et cartes qui vendent (woocommerce/content-product.php, assets/js/cards.js). */

/* ---------- Héros produits ---------- */
.cdp-phero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, var(--paper, #fffdfb) 0%, var(--rose-tint, #fbf3f6) 52%, var(--gold-soft, #f6eedd) 100%); }
.cdp-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--zellige); background-size: 80px 80px; opacity: .5; -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 90%); mask-image: linear-gradient(100deg, transparent 40%, #000 90%); }
.cdp-phero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cdp-phero__track::-webkit-scrollbar { display: none; }
.cdp-phero__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.cdp-phero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(24px, 5vw, 84px); align-items: center; padding-block: 36px 78px; }
.cdp-phero__media { order: 2; position: relative; display: block; justify-self: center; width: min(100%, 410px); }
.cdp-phero__arch { aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(90, 36, 57, .2); background: #fff; }
.cdp-phero__arch img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cdp-phero__media:hover .cdp-phero__arch img { transform: scale(1.03); }
.cdp-phero__media::before { content: ""; position: absolute; inset: -16px -16px 28px 28px; border-radius: 999px 999px 26px 26px; border: 1px solid var(--gold-line, #d9bf86); z-index: -1; }
.cdp-phero__seal { position: absolute; inset-inline-start: -20px; bottom: 32px; width: 78px; height: 78px; border-radius: 50%; background: var(--plum-deep); background-image: var(--zellige-gold-strong); background-size: 40px; display: grid; place-items: center; box-shadow: var(--shadow); border: 2px solid var(--gold-line, #d9bf86); }
.cdp-phero__seal .cdp-logo__mark { background: var(--gold-soft); width: 20px; height: 42px; }
.cdp-phero__text { min-width: 0; }
.cdp-phero__eyebrow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cdp-phero__title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.07; margin: 0 0 12px; color: var(--plum); }
.cdp-phero__title a { color: inherit; text-decoration: none; }
.cdp-phero__title em { color: var(--rose); font-style: italic; }
.cdp-phero__lead { margin: 0 0 14px; max-width: 470px; color: var(--muted); font-size: 16.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdp-phero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 14px; }
.cdp-phero__price .cdp-price { font-size: 28px; }
.cdp-phero__save { padding: 3px 10px; border-radius: 999px; background: var(--rose); color: #fff; font: 800 13px var(--font-sans); }
.cdp-phero__save .woocommerce-Price-amount, .cdp-phero__eyebrow .woocommerce-Price-amount { color: inherit; }
.cdp-phero__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 4px; }
.cdp-phero__sizes, .cdp-phero__colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cdp-phero__sizes li { min-width: 38px; height: 32px; padding: 0 9px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .8); font: 700 12.5px var(--font-sans); color: var(--ink); }
.cdp-phero__colors li { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(43, 37, 48, .18); }
.cdp-phero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cdp-phero__cta { min-height: 52px; padding-inline: 30px; gap: 8px; }
.cdp-phero__reassure { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.cdp-phero__reassure .cdp-icon { color: var(--gold); }
.cdp-phero__nav { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 6px; pointer-events: none; }
.cdp-phero__nav > * { pointer-events: auto; }
.cdp-phero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--plum); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.cdp-phero__arrow:hover { background: var(--plum); color: #fff; }
.cdp-phero__dots { display: flex; }
.cdp-phero__dots button { width: 34px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cdp-phero__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); transition: width .25s, background .25s; }
.cdp-phero__dots button[aria-current="true"]::before { width: 26px; background: var(--plum); }
@media (prefers-reduced-motion: reduce) { .cdp-phero__arch img, .cdp-phero__dots button::before { transition: none; } .cdp-phero__track { scroll-behavior: auto; } }

@media (max-width: 760px) {
	body.cdp .cdp-home > .cdp-phero.cdp-phero { display: block !important; } /* L'accueil mobile masque les sections « ordinateur » : sauf celle-ci. */
	.cdp-phero__inner { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px 60px; text-align: center; }
	.cdp-phero__media { order: -1; width: min(56vw, 232px); }
	.cdp-phero__media::before { inset: -10px -10px 20px 20px; }
	.cdp-phero__seal { width: 56px; height: 56px; inset-inline-start: -12px; bottom: 22px; }
	.cdp-phero__seal .cdp-logo__mark { width: 15px; height: 32px; }
	.cdp-phero__eyebrow { justify-content: center; margin-bottom: 2px; }
	.cdp-phero__title { font-size: 25px; line-height: 1.15; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.cdp-phero__lead { font-size: 13.5px; margin: 0 auto 8px; -webkit-line-clamp: 1; }
	.cdp-phero__price { justify-content: center; margin-bottom: 8px; }
	.cdp-phero__price .cdp-price { font-size: 22px; }
	.cdp-phero__opts { justify-content: center; gap: 8px 12px; }
	.cdp-phero__sizes li { min-width: 34px; height: 28px; font-size: 12px; }
	.cdp-phero__colors li { width: 18px; height: 18px; }
	.cdp-phero__actions { margin-top: 12px; flex-wrap: nowrap; }
	.cdp-phero__actions .cdp-btn { flex: 1 1 0; min-height: 48px; padding-inline: 12px; font-size: 14.5px; white-space: nowrap; }
	.cdp-phero__cta { flex-grow: 1.5 !important; }
	.cdp-phero__reassure { justify-content: center; font-size: 12px; margin-top: 10px; }
	.cdp-phero__nav { bottom: 8px; }
	.cdp-phero__arrow { width: 40px; height: 40px; }
	body.cdp .cdp-mhome--phero .cdp-stories { padding-top: 6px; }
}

/* ---------- « Habillez votre grand jour » : jamais une tuile seule collée à gauche ---------- */
.cdp-occasions--n2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.cdp-occasions--n1 { grid-template-columns: minmax(0, 860px); justify-content: center; }
.cdp-occasions--n1 .cdp-occasion { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(115deg, var(--paper, #fffdfb), var(--rose-tint, #fbf3f6)); text-align: start; }
.cdp-occasions--n1 .cdp-occasion__body { align-items: flex-start; padding-top: 0; gap: 6px; }
.cdp-occasions--n1 .cdp-occasion__title { font-size: clamp(28px, 3.4vw, 40px); }
.cdp-occasions--n1 .cdp-occasion__text { font-size: 16px; }
.cdp-occasions--n1 .cdp-occasion__cta { margin-top: 12px; padding: 12px 22px; border-radius: 999px; background: var(--plum); color: #fff; }
.cdp-occasion .cdp-arch img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
	.cdp-occasions--n1, .cdp-occasions--n2 { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; }
	.cdp-occasions--n2 { grid-template-columns: 1fr 1fr; }
	.cdp-occasions--n1 .cdp-occasion { grid-template-columns: 42% 1fr; padding: 12px; gap: 14px; }
	.cdp-occasions--n1 .cdp-occasion__title { font-size: 22px; }
	.cdp-occasions--n1 .cdp-occasion__text { font-size: 13px; }
	.cdp-m-occ--n1 { grid-template-columns: minmax(0, 160px); justify-content: center; }
	.cdp-m-occ--n2 { grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; }
}

/* ---------- Cartes produit ---------- */
.cdp-card-swatches { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 8px 2px 0; }
.cdp-card-swatches .cdp-card-colors { margin: 0; }
.cdp-card-swatch { position: relative; flex: none; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(43, 37, 48, .2); cursor: pointer; }
button.cdp-card-swatch::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; } /* Zone de toucher 32 px. */
.cdp-card-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--plum); }
.cdp-card-swatches__more { font: 700 12px var(--font-sans); color: var(--muted); text-decoration: none; padding: 4px 2px; }
body.cdp .cdp-card-product__body { padding-top: 4px !important; }
.cdp-card-product__hint, .cdp-card-product__low { display: block; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdp-card-product__hint--sizes { letter-spacing: .04em; }
.cdp-card-product__low b { font-weight: 800; }
.cdp-card-product__buy { padding-top: 10px; }
.cdp-card-add { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--plum); border-radius: 12px; background: #fff; color: var(--plum); font: 700 13.5px var(--font-sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cdp-card-add:hover, .cdp-card-add[aria-expanded="true"] { background: var(--plum); color: #fff; }
a.cdp-card-add:hover { color: #fff; }
.cdp-card-add.is-loading { opacity: .6; pointer-events: none; }
.cdp-card-add.is-added { background: var(--green, #38745a); border-color: var(--green, #38745a); color: #fff; }
.cdp-card-add.is-added span::after { content: " ✓"; }
.cdp-card-add--out { border-color: var(--line); background: var(--paper-soft); color: var(--muted); cursor: default; font-weight: 600; }
.cdp-card-add--out:hover { background: var(--paper-soft); color: var(--muted); }
/* Tailles sur la carte : panneau posé sur le bas de la photo. */
.cdp-qa { position: absolute; z-index: 4; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 10px 26px rgba(43, 37, 48, .2); animation: cdp-qa-in .18s ease-out; }
.cdp-qa[hidden] { display: none; }
@keyframes cdp-qa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cdp-qa__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 4px; }
.cdp-qa__t { min-width: 0; font: 700 12.5px var(--font-sans); color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdp-qa__x { width: 36px; height: 36px; margin: -4px -4px -4px 0; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.cdp-qa__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.cdp-qa__sizes button { min-width: 42px; min-height: 40px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: 700 13px var(--font-sans); cursor: pointer; }
.cdp-qa__sizes button:hover, .cdp-qa__sizes button:focus-visible { border-color: var(--plum); color: var(--plum); }
.cdp-qa__sizes button.is-loading { background: var(--plum); color: #fff; opacity: .7; }
.cdp-card-product.is-qa .cdp-heart { opacity: 0; pointer-events: none; }
/* Points des photos (glisser sur téléphone). */
.cdp-card-dots { position: absolute; z-index: 2; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; }
.cdp-card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .25); }
.cdp-card-dots i.is-on { background: #fff; }
@media (prefers-reduced-motion: reduce) { .cdp-qa { animation: none; } .cdp-card-add { transition: none; } }
@media (max-width: 760px) {
	.cdp-card-swatches { gap: 7px; min-height: 26px; padding-top: 7px; }
	.cdp-card-swatch { width: 16px; height: 16px; }
	.cdp-card-add { min-height: 40px; font-size: 13px; border-radius: 11px; }
	.cdp-card-product__buy { padding-top: 8px; }
	.cdp-qa { left: 6px; right: 6px; bottom: 6px; padding: 4px 6px 8px; }
	.cdp-qa__sizes { gap: 5px; }
	.cdp-qa__t { font-size: 11.5px; }
	.cdp-qa__sizes button { min-width: 40px; min-height: 40px; font-size: 12.5px; }
	/* Rangées défilantes de l'accueil mobile : bouton compact. */
	.cdp-mhome .cdp-m-row .cdp-card-add { min-height: 36px; font-size: 12.5px; gap: 5px; }
	.cdp-mhome .cdp-m-row .cdp-card-add svg { width: 15px; height: 15px; }
	.cdp-m-flash .cdp-card-swatches { display: none; }
}
