/* AS DZ MARKET v4 – pages magasins WCFM (Blocksy) · FR + AR · LTR/RTL
   Idée centrale : un auvent de souk au-dessus de chaque boutique. Le reste reste calme. */
.asdz-store {
	--green: #0a5c36;
	--green-d: #073d24;
	--mint: #ddefe4;
	--mint-l: #f1f8f4;
	--ink: #12261b;
	--muted: #4f6358;
	--red: #d7263d;
	--orange: #f28c28;
	--line: #d5e5db;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--w: min(1240px, 100% - 2rem);
	font-family: 'Cairo', system-ui, sans-serif;
	color: var(--ink);
	line-height: 1.6;
	overflow-x: clip;
}
.asdz-store *, .asdz-store *::before, .asdz-store *::after { box-sizing: border-box; }
.asdz-store h1, .asdz-store h2, .asdz-store h3 { font-family: 'Bricolage Grotesque', 'Cairo', sans-serif; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.asdz-store[dir="rtl"] h1, .asdz-store[dir="rtl"] h2, .asdz-store[dir="rtl"] h3 { font-family: 'Cairo', sans-serif; letter-spacing: 0; font-weight: 800; line-height: 1.3; }
.asdz-store a { color: inherit; }
.asdz-store a:focus-visible, .asdz-store button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.asdz-wrap { width: var(--w); margin-inline: auto; position: relative; }
.asdz-facts, .asdz-store .tab_links, .asdz-results__list { list-style: none; margin: 0; padding: 0; }

/* Annonce */
.asdz-announce { background: var(--green-d); color: #fff; text-align: center; padding: .45rem 1rem; font-size: .85rem; font-weight: 600; }
.asdz-announce p { margin: 0; }

/* Boutons : le remplissage rouge monte au survol */
.asdz-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.asdz-btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 12px; font-weight: 700; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background-size .35s var(--ease), transform .25s var(--ease), color .25s, border-color .25s, box-shadow .25s; }
.asdz-btn:hover { transform: translateY(-2px); }
.asdz-btn--primary { color: #fff !important; background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 100% 0, var(--green); box-shadow: 0 8px 20px rgba(10,92,54,.28); }
.asdz-btn--primary:hover { background-size: 100% 100%; box-shadow: 0 10px 24px rgba(215,38,61,.32); }
.asdz-btn--light { background: #fff; color: var(--green) !important; }
.asdz-btn--light:hover { background: var(--mint); }
.asdz-btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff !important; }
.asdz-btn--outline-light:hover { background: #fff; color: var(--green) !important; }
.asdz-btn--red { background: var(--red); color: #fff !important; }
.asdz-btn--red:hover { background: #b81d31; }
.asdz-btn--small { width: 100%; margin-top: .7rem; padding: .6rem 1rem; font-size: .9rem; text-align: center; }

/* En-tête : bannière basse + auvent + identité */
.asdz-hero { position: relative; }
.asdz-banner { position: relative; }
.asdz-cover { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1536 / 1024; background-color: var(--green); background-image: radial-gradient(circle at 25% 30%, rgba(255,255,255,.09) 0 2px, transparent 3px), radial-gradient(circle at 75% 70%, rgba(255,255,255,.09) 0 2px, transparent 3px); background-size: 34px 34px; }
.asdz-cover picture { position: absolute; inset: 0; display: block; }
.asdz-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; margin: 0; }
.asdz-cover--empty { aspect-ratio: auto; height: clamp(120px, 15vw, 190px); }
@media (max-width: 640px) { .asdz-cover { aspect-ratio: 1125 / 633; } .asdz-cover--empty { height: 120px; } }
/* L'auvent est posé sous l'image : la bannière reste visible en entier */
.asdz-awning { position: absolute; z-index: 3; inset-inline: 0; bottom: -24px; height: 24px; transform-origin: top; background: repeating-linear-gradient(90deg, var(--green) 0 36px, var(--mint) 36px 72px); animation: asdz-unroll .8s var(--ease) .15s both; filter: drop-shadow(0 6px 5px rgba(7,61,36,.28)); }
.asdz-awning::after { content: ''; position: absolute; inset-inline: 0; top: 100%; height: 18px; background-image: radial-gradient(circle at 18px 0, var(--green) 17.5px, transparent 18px), radial-gradient(circle at 54px 0, var(--mint) 17.5px, transparent 18px); background-size: 72px 18px; background-repeat: repeat-x; }
@keyframes asdz-unroll { from { transform: scaleY(0); } }

.asdz-id { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.8rem; align-items: start; padding-block: 2.2rem 1.6rem; }
.asdz-id__logo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: #fff; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(7,61,36,.22); margin-top: -3.4rem; position: relative; z-index: 4; }
.asdz-id__main h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; animation: asdz-name .7s var(--ease) .55s both; }
@keyframes asdz-name { from { opacity: 0; transform: translateY(18px); } }
.asdz-id__tag { margin: .5rem 0 0; color: var(--muted); max-width: 62ch; }
.asdz-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .9rem; font-size: .93rem; font-weight: 600; }
.asdz-facts li, .asdz-facts a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.asdz-facts a { background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.asdz-facts a:hover { color: var(--green); background-size: 100% 2px; }
.asdz-facts .asdz-ico { color: var(--green); }
.asdz-facts__rating { color: #8a5200; }
.asdz-facts__rating .asdz-ico { color: var(--orange); fill: var(--orange); }
.asdz-facts__rating span { font-weight: 400; color: var(--muted); }
.asdz-id__side { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.asdz-wcfm-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; float: none; }
.asdz-wcfm-actions .spacer, .asdz-id__side .spacer { display: none; }
.asdz-social ul { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; }

@media (max-width: 900px) {
	.asdz-id { grid-template-columns: auto 1fr; }
	.asdz-id__side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (max-width: 560px) {
	.asdz-id { grid-template-columns: 1fr; text-align: center; }
	.asdz-id__logo { margin-inline: auto; width: 88px; height: 88px; }
	.asdz-facts, .asdz-id__side, .asdz-wcfm-actions { justify-content: center; }
	.asdz-id__tag { margin-inline: auto; }
	.asdz-actions, .asdz-actions .asdz-btn { width: 100%; text-align: center; }
	.asdz-awning { height: 18px; bottom: -18px; }
}

/* Offre : bande unie */
.asdz-offer { background: var(--red); color: #fff; padding: 1rem 0; }
.asdz-offer__inner { display: flex; justify-content: space-between; align-items: center; gap: .6rem 2rem; flex-wrap: wrap; }
.asdz-offer p { margin: 0; }
.asdz-offer__text { font-family: 'Bricolage Grotesque', 'Cairo', sans-serif; font-size: 1.3rem; font-weight: 700; }
.asdz-offer__date { font-weight: 700; }

/* Zone WCFM : onglets, sidebar, produits */
.asdz-store #asdz-products { width: var(--w); margin: 1.5rem auto 3rem; }
.asdz-store .tab_links_area { border: 0; }
.asdz-store .tab_links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: 0 0 1.6rem; border-bottom: 1px solid var(--line); }
.asdz-store .tab_links li { float: none; margin: 0; border: 0 !important; background: none !important; }
.asdz-store .tab_links li a { position: relative; display: block; padding: .7rem 0; border: 0 !important; background: none !important; color: var(--muted); font-weight: 700; text-decoration: none; transition: color .2s; }
.asdz-store .tab_links li a::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.asdz-store[dir="rtl"] .tab_links li a::after { transform-origin: right; }
.asdz-store .tab_links li a:hover { color: var(--green); }
.asdz-store .tab_links li a:hover::after, .asdz-store .tab_links li.active a::after { transform: scaleX(1); }
.asdz-store .tab_links li.active a { color: var(--green); }

.asdz-store .left_sidebar { background: transparent !important; padding: 0 !important; }
.asdz-store .left_sidebar .widget { background: none; border: 0; border-top: 3px solid var(--green); border-radius: 0; padding: .9rem 0 0; margin: 0 0 1.8rem; }
.asdz-store .left_sidebar .widget-title { font-size: 1.05rem; margin: 0 0 .7rem; }

.asdz-store ul.products li.product { background: none; border: 0; padding: 0 !important; transition: transform .35s var(--ease); }
.asdz-store ul.products li.product:hover { transform: translateY(-5px); }
.asdz-store ul.products li.product img { border-radius: 12px; transition: transform .6s var(--ease); }
.asdz-store ul.products li.product a:first-child { display: block; overflow: hidden; border-radius: 12px; }
.asdz-store ul.products li.product:hover img { transform: scale(1.06); }
.asdz-store ul.products li.product .woocommerce-loop-product__title { font-family: 'Bricolage Grotesque', 'Cairo', sans-serif; font-size: 1rem; }
.asdz-store ul.products li.product .price { color: var(--green); font-weight: 800; }
.asdz-store ul.products li.product .button,
.asdz-store ul.products li.product .add_to_cart_button { display: block; width: 100%; margin-top: .6rem; padding: .6rem 1rem !important; border: 0 !important; border-radius: 12px !important; color: #fff !important; font-size: .9rem !important; font-weight: 700; text-align: center; line-height: 1.3; background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 100% 0, var(--green) !important; transition: background-size .35s var(--ease); }
.asdz-store ul.products li.product .button:hover { background-size: 100% 100% !important; }
.asdz-store ul.products li.product .added_to_cart { display: block; margin-top: .4rem; font-size: .85rem; font-weight: 700; color: var(--green); text-align: center; }
.asdz-store ul.products li.product .onsale { background: var(--red) !important; border-radius: 8px !important; }

/* Sections sous les produits */
.asdz-section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; border-top: 1px solid var(--line); }
.asdz-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.asdz-prose p { margin: .8rem 0 0; color: var(--muted); font-size: 1.04rem; max-width: 62ch; }

.asdz-results__list { display: grid; gap: 1.6rem; margin-top: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.asdz-results__list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; }
.asdz-results__img img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; display: block; }
.asdz-results h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.asdz-results h3 a { text-decoration: none; }
.asdz-results p { margin: .15rem 0; font-size: .92rem; }
.asdz-results b { display: inline-block; min-width: 3.4rem; color: var(--muted); }
.asdz-results__after { color: var(--green); font-weight: 600; }

.asdz-info__grid { display: grid; gap: 2.2rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .asdz-info__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.asdz-h2-sub { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.asdz-dl { margin: 1rem 0 0; }
.asdz-dl > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); transition: padding-inline-start .3s var(--ease), background .3s; }
.asdz-dl > div:hover { padding-inline-start: .6rem; background: var(--mint-l); }
.asdz-dl dt { color: var(--muted); font-weight: 600; }
.asdz-dl dd { margin: 0; font-weight: 600; }

.asdz-proof__inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.asdz-proof__score { margin: 0; font-family: 'Bricolage Grotesque', 'Cairo', sans-serif; font-size: clamp(3.6rem, 9vw, 5.5rem); font-weight: 800; line-height: 1; color: var(--green); }
.asdz-proof h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: .4rem; }
.asdz-link { color: var(--green); font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.asdz-link:hover { background-size: 100% 2px; }

/* Appel à l'action */
.asdz-cta { background: var(--green); color: #fff; padding: clamp(2.4rem, 6vw, 4rem) 0; }
.asdz-cta__grid { display: grid; gap: 2.4rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .asdz-cta__grid { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.asdz-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.asdz-cta p { margin: .7rem 0 1.3rem; opacity: .9; max-width: 48ch; }
.asdz-cta__sell { padding-inline-start: 0; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.8rem; }
@media (min-width: 860px) { .asdz-cta__sell { border-top: 0; border-inline-start: 1px solid rgba(255,255,255,.3); padding: 0 0 0 3rem; } .asdz-store[dir="rtl"] .asdz-cta__sell { padding: 0 3rem 0 0; } }
.asdz-cta__sell h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }

/* Panier flottant */
.asdz-fab { position: fixed; z-index: 60; bottom: 1.2rem; inset-inline-end: 1.2rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(7,61,36,.4); transition: transform .25s var(--ease), background .25s; }
.asdz-fab:hover { transform: scale(1.08); background: var(--green-d); }
.asdz-fab .asdz-ico { width: 24px; height: 24px; }
.asdz-fab__n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--red); color: #fff; font: 700 12px/22px 'Cairo', sans-serif; text-align: center; }
.asdz-fab.is-bump { animation: asdz-bump .6s var(--ease); }
@keyframes asdz-bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }

/* Apparition douce au scroll (désactivée sans JS ou si mouvement réduit) */
.asdz-js [data-asdz-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.asdz-js [data-asdz-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.asdz-store *, .asdz-store *::before, .asdz-store *::after, .asdz-fab { animation: none !important; transition: none !important; }
	.asdz-js [data-asdz-reveal] { opacity: 1; transform: none; }
}
