/* AffiCards v3 - styles configurables via variables CSS */
.afc {
	--afc-accent: #7c3aed; --afc-accent2: #d63384;
	--afc-radius: 16px; --afc-btn-radius: 30px;
	--afc-btn-bg: linear-gradient(135deg, var(--afc-accent), var(--afc-accent2));
	--afc-card-shadow: 0 2px 10px rgba(20,20,50,.05);
	margin: 28px 0; font-family: inherit;
}
.afc *, .afc *::before, .afc *::after { box-sizing: border-box; }
.afc img { max-width: 100%; height: auto; display: block; }
.afc .afc-title { font-size: 15px; line-height: 1.35; font-weight: 600; margin: 0 0 6px; color: #2a2a3a; }
.afc .afc-desc { font-size: 13px; line-height: 1.5; color: #6b6b7b; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.afc .afc-price { font-size: 22px; font-weight: 700; color: #1a1a2a; display: block; }
.afc .afc-price s { font-size: 13px; font-weight: 400; color: #a0a0b0; margin-left: 6px; }
.afc .afc-noprice { font-size: 15px; font-weight: 600; color: #666; }

/* Logo Amazon */
.afc .afc-amz svg { display: block; height: auto; }
.afc .afc-amz-medium { display: block; width: 78px; margin: 0 auto 10px; }
.afc .afc-amz-small { display: block; width: 58px; margin: 0 auto 8px; }
.afc .afc-amz-pastille { display: inline-flex; align-items: center; gap: 5px; background: #f3f3f7; border-radius: 20px; padding: 3px 11px 3px 9px; font-size: 10px; color: #8a8a98; margin-bottom: 8px; }
.afc .afc-amz-pastille svg { width: 52px; }
.afc-list .afc-amz-medium, .afc-list .afc-amz-small, .afc-table .afc-amz-medium, .afc-table .afc-amz-small { margin-left: 0; margin-right: auto; }

/* Bouton */
.afc .afc-btn {
	display: inline-block; background: var(--afc-btn-bg); color: #fff !important;
	text-align: center; padding: 12px 22px; border-radius: var(--afc-btn-radius);
	font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none;
	transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--afc-accent) 30%, transparent);
}
.afc .afc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--afc-accent) 40%, transparent); color: #fff !important; }

/* Badges */
.afc .afc-badge { position: absolute; top: 10px; right: 10px; background: #e63946; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; z-index: 3; }
.afc .afc-tag { display: inline-block; background: color-mix(in srgb, var(--afc-accent) 12%, #fff); color: var(--afc-accent); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }

/* Ruban diagonal */
.afc .afc-ribbon { position: absolute; top: 0; left: 0; width: 128px; height: 128px; overflow: hidden; z-index: 4; pointer-events: none; }
.afc .afc-ribbon span { position: absolute; display: block; width: 200px; padding: 6px 0; top: 30px; left: -54px; transform: rotate(-45deg); background: linear-gradient(135deg, var(--afc-accent), var(--afc-accent2)); color: #fff; font-size: 11px; font-weight: 700; text-align: center; letter-spacing: .5px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.afc .afc-ribbon-solid span { background: var(--afc-accent); }
/* Ruban plat */
.afc .afc-ribbon-flat { position: absolute; top: 12px; left: 0; background: linear-gradient(135deg, var(--afc-accent), var(--afc-accent2)); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 14px 5px 12px; border-radius: 0 20px 20px 0; z-index: 4; }

/* Thumbs */
.afc .afc-thumb { position: relative; background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 16px; }
.afc .afc-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.afc .afc-thumb-sm { width: 84px; height: 84px; flex-shrink: 0; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.afc .afc-thumb-sm img { max-height: 100%; width: auto; object-fit: contain; }
.afc .afc-thumb-lg { position: relative; width: 160px; height: 160px; flex-shrink: 0; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.afc .afc-thumb-lg img { max-height: 100%; width: auto; object-fit: contain; }
.afc .afc-thumb-xl { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1/1; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.afc .afc-thumb-xl img { max-height: 100%; width: auto; object-fit: contain; }

.afc .afc-feat { margin: 4px 0 14px; padding-left: 18px; font-size: 13px; color: #555; line-height: 1.6; }
.afc .afc-feat li { margin: 3px 0; }

/* Conformité - mentions discretes */
.afc .afc-mentions-a { font-size: 10px; color: #b8b8c0; margin: 14px 0 0; line-height: 1.4; }
.afc .afc-mentions-b { margin: 14px 0 0; }
.afc .afc-mentions-b summary { font-size: 10px; color: #c0c0c8; cursor: pointer; list-style: none; outline: none; }
.afc .afc-mentions-b summary::-webkit-details-marker { display: none; }
.afc .afc-mentions-b summary::before { content: "\25B8 "; color: #c8c8d0; }
.afc .afc-mentions-b[open] summary::before { content: "\25BE "; }
.afc .afc-mentions-b span { display: block; font-size: 10px; color: #c0c0c8; margin: 6px 0 0; line-height: 1.4; }

/* Grid */
.afc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.afc-grid .afc-card { position: relative; background: #fff; border: 1px solid #eaeaf0; border-radius: var(--afc-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--afc-card-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.afc-grid .afc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,20,50,.10); }
.afc-grid .afc-card.afc-feat-card { border: 2px solid var(--afc-accent); box-shadow: 0 8px 26px color-mix(in srgb, var(--afc-accent) 18%, transparent); }
.afc-grid .afc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.afc-grid .afc-body .afc-price { margin-bottom: 14px; }
.afc-grid .afc-body .afc-btn { margin-top: auto; align-self: center; }

/* List */
.afc-list { display: flex; flex-direction: column; gap: 12px; }
.afc-list .afc-row { background: #fff; border: 1px solid #eaeaf0; border-radius: var(--afc-radius); padding: 14px; display: flex; align-items: center; gap: 16px; box-shadow: var(--afc-card-shadow); }
.afc-list .afc-row-body { flex: 1; min-width: 0; }
.afc-list .afc-row-body .afc-price { font-size: 18px; }
.afc-list .afc-desc { -webkit-line-clamp: 2; margin-bottom: 6px; }

/* Box */
.afc-box .afc-box-inner { position: relative; background: #fff; border: 2px solid var(--afc-accent); border-radius: var(--afc-radius); padding: 20px; display: flex; gap: 20px; align-items: center; overflow: hidden; box-shadow: 0 8px 26px color-mix(in srgb, var(--afc-accent) 15%, transparent); }
.afc-box .afc-box-body { flex: 1; min-width: 0; }
.afc-box .afc-box-body .afc-title { font-size: 17px; }
.afc-box .afc-box-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.afc-box .afc-box-foot .afc-price { font-size: 25px; }

/* Table */
.afc-table { display: flex; flex-direction: column; gap: 10px; }
.afc-table .afc-trow { position: relative; background: #fff; border: 1px solid #eaeaf0; border-radius: var(--afc-radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--afc-card-shadow); }
.afc-table .afc-trow.afc-first { border: 2px solid var(--afc-accent); }
.afc-table .afc-rank { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #f0f0f5; color: #666; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.afc-table .afc-trow.afc-first .afc-rank { background: linear-gradient(135deg, var(--afc-accent), var(--afc-accent2)); color: #fff; }
.afc-table .afc-trow-body { flex: 1; min-width: 0; }
.afc-table .afc-trow-body .afc-title { margin-bottom: 2px; font-size: 14px; }
.afc-table .afc-trow-body .afc-price { font-size: 16px; }

/* Spotlight */
.afc-spotlight .afc-spot-inner { position: relative; background: linear-gradient(135deg, color-mix(in srgb, var(--afc-accent) 6%, #fff), color-mix(in srgb, var(--afc-accent2) 6%, #fff)); border: 2px solid var(--afc-accent); border-radius: 20px; padding: 26px; display: flex; gap: 28px; align-items: center; overflow: hidden; box-shadow: 0 10px 34px color-mix(in srgb, var(--afc-accent) 16%, transparent); }
.afc-spotlight .afc-spot-media { flex-shrink: 0; display: flex; justify-content: center; }
.afc-spotlight .afc-spot-body { flex: 1; min-width: 0; }
.afc-spotlight .afc-spot-body .afc-title { font-size: 21px; line-height: 1.3; }
.afc-spotlight .afc-spot-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.afc-spotlight .afc-spot-foot .afc-price { font-size: 30px; }
.afc-spotlight .afc-btn { padding: 14px 30px; font-size: 15px; }

/* Duo */
.afc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.afc-duo .afc-duo-card { position: relative; background: #fff; border: 1px solid #eaeaf0; border-radius: var(--afc-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--afc-card-shadow); }
.afc-duo .afc-duo-card.afc-feat-card { border: 2px solid var(--afc-accent); box-shadow: 0 8px 26px color-mix(in srgb, var(--afc-accent) 18%, transparent); }
.afc-duo .afc-body { padding: 18px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.afc-duo .afc-feat { text-align: left; }
.afc-duo .afc-price { margin-bottom: 14px; }
.afc-duo .afc-btn { margin-top: auto; align-self: center; }

@media (max-width: 640px) {
	.afc-box .afc-box-inner, .afc-spotlight .afc-spot-inner { flex-direction: column; align-items: stretch; text-align: center; }
	.afc-box .afc-thumb-lg, .afc-spotlight .afc-thumb-xl { width: 100%; max-width: none; height: 200px; margin: 0 auto; }
	.afc-box .afc-box-foot, .afc-spotlight .afc-spot-foot { justify-content: center; }
	.afc-spotlight .afc-spot-media { width: 100%; }
	.afc-list .afc-row { flex-wrap: wrap; }
	.afc-list .afc-row .afc-btn, .afc-table .afc-trow .afc-btn { width: 100%; margin-top: 8px; }
	.afc-table .afc-trow { flex-wrap: wrap; }
	.afc-duo { grid-template-columns: 1fr; }
}
