/*!
 * WeDrive Amazon Tables - Public styles
 * Version: 1.0.0
 */

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
.wdat,
.wdat *,
.wdat *::before,
.wdat *::after {
	box-sizing: border-box;
}

.wdat {
	--wdat-color-primary: #ff9900;
	--wdat-color-primary-hover: #f08804;
	--wdat-color-primary-dark: #c97600;
	--wdat-color-text: #1a202c;
	--wdat-color-text-muted: #5a6577;
	--wdat-color-border: #e3e7eb;
	--wdat-color-bg: #ffffff;
	--wdat-color-bg-alt: #f8fafc;
	--wdat-color-accent: #232f3e;
	--wdat-color-success: #10b981;
	--wdat-color-danger: #ef4444;
	--wdat-color-warning: #f59e0b;
	--wdat-radius: 14px;
	--wdat-radius-sm: 8px;
	--wdat-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
	--wdat-shadow: 0 4px 16px rgba(20, 30, 50, .08);
	--wdat-shadow-lg: 0 12px 32px rgba(20, 30, 50, .12);
	--wdat-font-size: 16px;
	--wdat-line-height: 1.55;

	font-size: var(--wdat-font-size);
	line-height: var(--wdat-line-height);
	color: var(--wdat-color-text);
	margin: 32px 0;
	font-family: inherit;
}

.wdat__heading {
	font-size: 1.4em;
	font-weight: 700;
	margin: 0 0 18px;
	line-height: 1.25;
}

/* ============================================================
   BOUTON
   ============================================================ */
.wdat__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	background: linear-gradient(180deg, #ffb84d 0%, var(--wdat-color-primary) 100%);
	color: #1a202c !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px;
	border-radius: var(--wdat-radius-sm);
	border: 1px solid var(--wdat-color-primary-dark);
	box-shadow: 0 1px 0 #ffd070 inset, 0 2px 6px rgba(255, 153, 0, .25);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	white-space: nowrap;
	line-height: 1.2;
}

.wdat__btn:hover {
	background: linear-gradient(180deg, #ffa927 0%, var(--wdat-color-primary-hover) 100%);
	transform: translateY(-1px);
	box-shadow: 0 1px 0 #ffd070 inset, 0 4px 14px rgba(255, 153, 0, .35);
	color: #1a202c !important;
}

.wdat__btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 0 #ffd070 inset, 0 1px 3px rgba(255, 153, 0, .25);
}

.wdat__btn--block {
	display: flex;
	width: 100%;
}

.wdat__btn--lg {
	padding: 13px 24px;
	font-size: 15px;
}

.wdat__btn-arrow {
	transition: transform .2s ease;
}

.wdat__btn:hover .wdat__btn-arrow {
	transform: translateX(3px);
}

/* ============================================================
   ÉTOILES — overlay technique pour rendu fractionnaire fidèle
   ============================================================ */
.wdat-stars {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	line-height: 1;
	white-space: nowrap;
}

.wdat-stars__inner {
	position: relative;
	display: inline-block;
	letter-spacing: 1px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple Color Emoji", sans-serif;
}

.wdat-stars__bg {
	display: inline-block;
	color: #d4d8de;
	line-height: 1;
}

.wdat-stars__fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #ffa726;
	white-space: nowrap;
	line-height: 1;
}

.wdat-stars__value {
	color: var(--wdat-color-text-muted);
	font-size: .9em;
	font-weight: 600;
}

/* ============================================================
   PRIX & DISCLAIMER
   ============================================================ */
.wdat__price {
	font-size: 1.2em;
	font-weight: 800;
	color: #b12704;
	display: inline-block;
	line-height: 1.2;
}

.wdat__price-old {
	display: inline-block;
	font-size: .85em;
	color: var(--wdat-color-text-muted, #8c8f94);
	font-weight: 400;
	text-decoration: line-through;
	margin-right: 6px;
	vertical-align: baseline;
}

.wdat__price-note {
	display: block;
	font-size: .75em;
	color: var(--wdat-color-text-muted);
	font-weight: 400;
	margin-top: 2px;
	font-style: italic;
}

.wdat__disclaimer {
	margin: 14px 0 0;
	padding: 10px 14px;
	font-size: .8em;
	color: var(--wdat-color-text-muted);
	background: var(--wdat-color-bg-alt);
	border-radius: var(--wdat-radius-sm);
	font-style: italic;
	border-left: 3px solid var(--wdat-color-primary);
	line-height: 1.4;
}

.wdat__disclaimer--compact {
	margin-top: 6px;
	padding: 6px 10px;
	font-size: .72em;
}

/* ============================================================
   BADGE
   ============================================================ */
.wdat__badge,
.wdat__card-badge,
.wdat__cmp-badge,
.wdat__hero-badge,
.wdat__compact-badge,
.wdat__ed-badge {
	display: inline-block;
	padding: 4px 10px;
	background: var(--wdat-color-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-radius: 4px;
	line-height: 1.4;
}

.wdat__empty {
	padding: 20px;
	background: var(--wdat-color-bg-alt);
	border-radius: var(--wdat-radius);
	text-align: center;
	color: var(--wdat-color-text-muted);
}

/* ============================================================
   TEMPLATE 1 — CLASSIC
   ============================================================ */
.wdat--classic .wdat__table-wrap {
	background: var(--wdat-color-bg);
	border: 1px solid var(--wdat-color-border);
	border-radius: var(--wdat-radius);
	box-shadow: var(--wdat-shadow-sm);
}

.wdat--classic .wdat__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	margin: 0;
}

.wdat--classic .wdat__table thead {
	background: var(--wdat-color-bg-alt);
}

.wdat--classic .wdat__table thead th:first-child {
	border-top-left-radius: var(--wdat-radius);
}

.wdat--classic .wdat__table thead th:last-child {
	border-top-right-radius: var(--wdat-radius);
}

.wdat--classic .wdat__table th {
	padding: 14px 16px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--wdat-color-text-muted);
	border-bottom: 1px solid var(--wdat-color-border);
	background: var(--wdat-color-bg-alt);
}

.wdat--classic .wdat__th-rank {
	width: 50px;
	text-align: center;
}

.wdat--classic .wdat__th-rating,
.wdat--classic .wdat__th-cta {
	text-align: center;
}

.wdat--classic .wdat__row {
	transition: background .15s ease;
}

.wdat--classic .wdat__table td {
	padding: 18px 16px;
	vertical-align: middle;
	border-bottom: 1px solid var(--wdat-color-border);
	background: var(--wdat-color-bg);
}

.wdat--classic .wdat__row:last-child td {
	border-bottom: 0;
}

.wdat--classic .wdat__row:last-child td:first-child {
	border-bottom-left-radius: var(--wdat-radius);
}

.wdat--classic .wdat__row:last-child td:last-child {
	border-bottom-right-radius: var(--wdat-radius);
}

.wdat--classic .wdat__row:hover td {
	background: rgba(255, 153, 0, .03);
}

.wdat--classic .wdat__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--wdat-color-accent);
	color: #fff;
	border-radius: 50%;
	font-weight: 800;
	font-size: 14px;
}

.wdat--classic .wdat__cell-product {
	text-align: center;
	max-width: 200px;
}

.wdat--classic .wdat__image {
	max-width: 120px;
	max-height: 120px;
	height: auto;
	width: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto 10px;
}

.wdat--classic .wdat__title {
	font-weight: 600;
	color: var(--wdat-color-text) !important;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.35;
	display: block;
	margin-top: 6px;
}

.wdat--classic .wdat__title:hover {
	color: var(--wdat-color-primary-dark) !important;
	text-decoration: underline;
}

.wdat--classic .wdat__features {
	margin: 0;
	padding-left: 18px;
	font-size: 14px;
	color: var(--wdat-color-text-muted);
}

.wdat--classic .wdat__features li {
	margin: 4px 0;
}

.wdat--classic .wdat__cell-rating {
	text-align: center;
}

.wdat--classic .wdat__reviews {
	font-size: 12px;
	color: var(--wdat-color-text-muted);
	margin-top: 4px;
}

.wdat--classic .wdat__cell-cta {
	text-align: center;
	min-width: 150px;
}

.wdat--classic .wdat__cell-cta .wdat__price {
	margin-bottom: 8px;
	font-size: 1.1em;
}

/* Responsive Classic : transformer en cartes empilées */
@media (max-width: 768px) {
	.wdat--classic .wdat__table,
	.wdat--classic .wdat__table thead,
	.wdat--classic .wdat__table tbody,
	.wdat--classic .wdat__table tr,
	.wdat--classic .wdat__table th,
	.wdat--classic .wdat__table td {
		display: block;
		width: 100%;
	}

	.wdat--classic .wdat__table thead {
		display: none;
	}

	.wdat--classic .wdat__row {
		padding: 14px;
		display: grid;
		grid-template-columns: 100px 1fr;
		gap: 12px;
		align-items: start;
	}

	.wdat--classic .wdat__table td {
		padding: 0;
		border: 0;
	}

	.wdat--classic .wdat__cell-rank {
		grid-column: 1 / -1;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.wdat--classic .wdat__cell-product {
		grid-column: 1;
		text-align: center;
	}

	.wdat--classic .wdat__image {
		max-width: 100px;
		max-height: 100px;
	}

	.wdat--classic .wdat__cell-features,
	.wdat--classic .wdat__cell-rating,
	.wdat--classic .wdat__cell-cta {
		grid-column: 2;
		text-align: left;
	}

	.wdat--classic .wdat__cell-cta {
		grid-column: 1 / -1;
		text-align: center;
		padding-top: 10px;
		border-top: 1px solid var(--wdat-color-border);
	}
}

/* ============================================================
   TEMPLATE 2 — CARDS
   ============================================================ */
.wdat--cards .wdat__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.wdat--cards .wdat__grid[data-count="1"] {
	grid-template-columns: minmax(0, 380px);
	justify-content: center;
}

.wdat--cards .wdat__grid[data-count="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wdat--cards .wdat__grid[data-count="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.wdat--cards .wdat__grid[data-count="3"] {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.wdat--cards .wdat__grid,
	.wdat--cards .wdat__grid[data-count="2"],
	.wdat--cards .wdat__grid[data-count="3"] {
		grid-template-columns: 1fr;
	}
}

.wdat--cards .wdat__card {
	position: relative;
	background: var(--wdat-color-bg);
	border: 1px solid var(--wdat-color-border);
	border-radius: var(--wdat-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--wdat-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wdat--cards .wdat__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wdat-shadow);
	border-color: rgba(255, 153, 0, .4);
}

.wdat--cards .wdat__card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

/* Hauteur fixe de la zone image pour aligner toutes les cartes */
.wdat--cards .wdat__card-image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	padding: 20px;
	background: linear-gradient(180deg, #fafbfc 0%, #f4f6f8 100%);
	overflow: hidden;
}

.wdat--cards .wdat__card-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform .25s ease;
}

.wdat--cards .wdat__card:hover .wdat__card-image {
	transform: scale(1.04);
}

.wdat--cards .wdat__card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

/* Titre : min 2 lignes pour aligner verticalement les blocs suivants */
.wdat--cards .wdat__card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	min-height: 2.7em; /* 2 lignes */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wdat--cards .wdat__card-title a {
	color: var(--wdat-color-text) !important;
	text-decoration: none;
}

.wdat--cards .wdat__card-title a:hover {
	color: var(--wdat-color-primary-dark) !important;
}

/* Note : hauteur min pour alignement vertical entre cartes */
.wdat--cards .wdat__card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--wdat-color-text-muted);
	min-height: 22px;
}

.wdat--cards .wdat__card-features {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--wdat-color-text-muted);
}

.wdat--cards .wdat__card-features li {
	position: relative;
	padding-left: 18px;
	margin: 4px 0;
}

.wdat--cards .wdat__card-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wdat-color-success);
	font-weight: 700;
}

.wdat--cards .wdat__card-price {
	margin-top: 4px;
	min-height: 24px;
}

/* Bouton collé en bas pour alignement même si features sont de longueurs différentes */
.wdat--cards .wdat__card .wdat__btn--block {
	margin-top: auto;
}

/* ============================================================
   TEMPLATE 3 — COMPARISON
   ============================================================ */
.wdat--comparison .wdat__cmp {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.wdat--comparison[data-cols="2"] .wdat__cmp {
	grid-template-columns: repeat(2, 1fr);
}

.wdat--comparison[data-cols="3"] .wdat__cmp {
	grid-template-columns: repeat(3, 1fr);
}

.wdat--comparison[data-cols="4"] .wdat__cmp {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.wdat--comparison[data-cols="4"] .wdat__cmp,
	.wdat--comparison[data-cols="3"] .wdat__cmp {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.wdat--comparison .wdat__cmp {
		grid-template-columns: 1fr !important;
	}
}

.wdat--comparison .wdat__cmp-col {
	position: relative;
	background: var(--wdat-color-bg);
	border: 1px solid var(--wdat-color-border);
	border-radius: var(--wdat-radius);
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--wdat-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}

.wdat--comparison .wdat__cmp-col:hover {
	transform: translateY(-2px);
	box-shadow: var(--wdat-shadow);
}

.wdat--comparison .wdat__cmp-badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--wdat-color-primary);
	color: #1a202c;
}

.wdat--comparison .wdat__cmp-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 160px;
	padding: 10px 0;
	overflow: hidden;
}

.wdat--comparison .wdat__cmp-image img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wdat--comparison .wdat__cmp-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wdat--comparison .wdat__cmp-title a {
	color: var(--wdat-color-text) !important;
	text-decoration: none;
}

.wdat--comparison .wdat__cmp-rating {
	text-align: center;
	font-size: 13px;
	min-height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.wdat--comparison .wdat__cmp-desc {
	margin: 0;
	font-size: 13px;
	color: var(--wdat-color-text-muted);
	text-align: center;
	min-height: 40px;
}

.wdat--comparison .wdat__cmp-features {
	margin: 0;
	padding: 12px 0 0;
	border-top: 1px dashed var(--wdat-color-border);
	font-size: 13px;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 10px;
}

.wdat--comparison .wdat__cmp-features dt {
	font-weight: 600;
	color: var(--wdat-color-text-muted);
}

.wdat--comparison .wdat__cmp-features dt.wdat__cmp-feature-single {
	color: var(--wdat-color-success);
	font-weight: 700;
}

.wdat--comparison .wdat__cmp-features dd {
	margin: 0;
}

.wdat--comparison .wdat__cmp-price {
	text-align: center;
	margin-top: auto;
	padding-top: 8px;
	min-height: 36px;
}

/* Bouton toujours collé en bas */
.wdat--comparison .wdat__cmp-col .wdat__btn--block {
	margin-top: auto;
}

/* ============================================================
   TEMPLATE 4 — HERO
   ============================================================ */
.wdat--hero .wdat__hero {
	background: var(--wdat-color-bg);
	border: 1px solid var(--wdat-color-border);
	border-radius: var(--wdat-radius);
	padding: 28px;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	box-shadow: var(--wdat-shadow);
	position: relative;
	overflow: hidden;
}

.wdat--hero .wdat__hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--wdat-color-primary), #ffd070, var(--wdat-color-primary));
}

@media (max-width: 700px) {
	.wdat--hero .wdat__hero {
		grid-template-columns: 1fr;
		padding: 20px;
		gap: 18px;
	}
}

.wdat--hero .wdat__hero-media {
	position: relative;
	background: linear-gradient(180deg, #fafbfc 0%, #f1f4f7 100%);
	border-radius: var(--wdat-radius-sm);
	padding: 24px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
}

.wdat--hero .wdat__hero-badge {
	position: absolute;
	top: 12px;
	left: 12px;
}

.wdat--hero .wdat__hero-image {
	max-width: 100%;
	max-height: 260px;
	object-fit: contain;
}

.wdat--hero .wdat__hero-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wdat--hero .wdat__hero-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.wdat--hero .wdat__hero-title a {
	color: var(--wdat-color-text) !important;
	text-decoration: none;
}

.wdat--hero .wdat__hero-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--wdat-color-text-muted);
}

.wdat--hero .wdat__hero-desc {
	margin: 0;
	font-size: 15px;
	color: var(--wdat-color-text-muted);
	line-height: 1.6;
}

.wdat--hero .wdat__hero-features {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 16px;
	font-size: 14px;
}

@media (max-width: 500px) {
	.wdat--hero .wdat__hero-features {
		grid-template-columns: 1fr;
	}
}

.wdat--hero .wdat__hero-features li {
	position: relative;
	padding-left: 22px;
}

.wdat--hero .wdat__hero-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wdat-color-success);
	font-weight: 700;
}

.wdat--hero .wdat__hero-cta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--wdat-color-border);
}

.wdat--hero .wdat__hero-price .wdat__price {
	font-size: 1.5em;
}

/* ============================================================
   TEMPLATE 5 — COMPACT (v1.3 : peut afficher plusieurs encarts empilés)
   ============================================================ */
.wdat--compact-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wdat__heading--compact {
	margin: 0 0 4px;
	font-size: 1.2em;
}

.wdat--compact {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--wdat-color-bg);
	border: 1px solid var(--wdat-color-border);
	border-radius: var(--wdat-radius);
	padding: 14px 16px;
	box-shadow: var(--wdat-shadow-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.wdat--compact:hover {
	border-color: rgba(255, 153, 0, .35);
	box-shadow: var(--wdat-shadow);
}

.wdat--compact .wdat__compact-image-link {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wdat-color-bg-alt);
	border-radius: var(--wdat-radius-sm);
	overflow: hidden;
}

.wdat--compact .wdat__compact-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wdat--compact .wdat__compact-body {
	flex: 1;
	min-width: 0;
}

.wdat--compact .wdat__compact-badge {
	font-size: 10px;
	padding: 2px 6px;
	margin-bottom: 4px;
}

.wdat--compact .wdat__compact-title {
	display: block;
	color: var(--wdat-color-text) !important;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
	margin-bottom: 4px;
}

.wdat--compact .wdat__compact-title:hover {
	color: var(--wdat-color-primary-dark) !important;
}

.wdat--compact .wdat__compact-rating {
	font-size: 12px;
}

.wdat--compact .wdat__compact-rating .wdat-stars {
	font-size: 13px;
}

.wdat--compact .wdat__compact-price {
	margin-top: 4px;
}

.wdat--compact .wdat__compact-price .wdat__price {
	font-size: 1em;
}

.wdat--compact .wdat__compact-cta {
	flex-shrink: 0;
}

.wdat--compact .wdat__btn {
	padding: 10px 16px;
	font-size: 13px;
}

@media (max-width: 500px) {
	.wdat--compact {
		flex-direction: column;
		text-align: center;
	}
	.wdat--compact .wdat__compact-cta {
		width: 100%;
	}
	.wdat--compact .wdat__btn {
		width: 100%;
	}
}

/* ============================================================
   TEMPLATE 6 — EDITORIAL
   ============================================================ */
.wdat--editorial .wdat__ed-card {
	background: var(--wdat-color-bg);
	border: 1px solid var(--wdat-color-border);
	border-radius: var(--wdat-radius);
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: var(--wdat-shadow-sm);
	transition: box-shadow .2s ease;
}

.wdat--editorial .wdat__ed-card:hover {
	box-shadow: var(--wdat-shadow);
}

.wdat--editorial .wdat__ed-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	background: linear-gradient(90deg, var(--wdat-color-bg-alt) 0%, transparent 100%);
	border-bottom: 1px solid var(--wdat-color-border);
}

.wdat--editorial .wdat__ed-rank {
	font-size: 14px;
	font-weight: 800;
	color: var(--wdat-color-accent);
	background: #fff;
	border: 2px solid var(--wdat-color-accent);
	padding: 4px 12px;
	border-radius: 99px;
}

.wdat--editorial .wdat__ed-score-wrap {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wdat--editorial .wdat__ed-score-wrap small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--wdat-color-text-muted);
	font-weight: 600;
}

.wdat-score {
	display: inline-flex;
	align-items: baseline;
	padding: 4px 10px;
	border-radius: var(--wdat-radius-sm);
	font-weight: 800;
	color: #fff;
}

.wdat-score__value {
	font-size: 18px;
}

.wdat-score__max {
	font-size: 12px;
	opacity: .85;
	margin-left: 2px;
}

.wdat-score--excellent { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.wdat-score--good      { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.wdat-score--average   { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.wdat-score--poor      { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }

.wdat--editorial .wdat__ed-body {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	padding: 20px;
}

@media (max-width: 700px) {
	.wdat--editorial .wdat__ed-body {
		grid-template-columns: 1fr;
	}
}

.wdat--editorial .wdat__ed-media {
	text-align: center;
	background: var(--wdat-color-bg-alt);
	border-radius: var(--wdat-radius-sm);
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wdat--editorial .wdat__ed-media img {
	max-width: 100%;
	max-height: 200px;
	object-fit: contain;
}

.wdat--editorial .wdat__ed-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wdat--editorial .wdat__ed-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.wdat--editorial .wdat__ed-title a {
	color: var(--wdat-color-text) !important;
	text-decoration: none;
}

.wdat--editorial .wdat__ed-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wdat-color-text-muted);
}

.wdat--editorial .wdat__ed-desc {
	margin: 0;
	color: var(--wdat-color-text-muted);
	font-size: 14px;
	line-height: 1.55;
}

.wdat--editorial .wdat__ed-procon {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 12px;
	background: var(--wdat-color-bg-alt);
	border-radius: var(--wdat-radius-sm);
}

@media (max-width: 500px) {
	.wdat--editorial .wdat__ed-procon {
		grid-template-columns: 1fr;
	}
}

.wdat--editorial .wdat__ed-pros,
.wdat--editorial .wdat__ed-cons {
	font-size: 13px;
}

.wdat--editorial .wdat__ed-pros h5,
.wdat--editorial .wdat__ed-cons h5 {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.wdat--editorial .wdat__ed-pros h5 {
	color: var(--wdat-color-success);
}

.wdat--editorial .wdat__ed-cons h5 {
	color: var(--wdat-color-danger);
}

.wdat--editorial .wdat__ed-pros ul,
.wdat--editorial .wdat__ed-cons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wdat--editorial .wdat__ed-pros li,
.wdat--editorial .wdat__ed-cons li {
	padding: 3px 0;
	color: var(--wdat-color-text);
}

.wdat--editorial .wdat__ed-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 10px;
}

.wdat--editorial .wdat__ed-price .wdat__price {
	font-size: 1.3em;
}

/* ============================================================
   AMÉLIORATIONS A11Y
   ============================================================ */
.wdat a:focus-visible,
.wdat button:focus-visible {
	outline: 2px solid var(--wdat-color-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.wdat *,
	.wdat *::before,
	.wdat *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* ============================================================
   QUIZ / WIZARD
   ============================================================ */
.wdat-quiz {
	max-width: 720px;
	margin: 24px auto;
	font-family: var(--wdat-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	color: #1c1c1c;
}
.wdat-quiz__intro {
	background: #fff8ec;
	border: 0.5px solid #ffd485;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
}
.wdat-quiz__intro-text {
	font-size: 15px;
	color: #4a3712;
	line-height: 1.6;
	margin: 0 0 16px;
}
.wdat-quiz__start,
.wdat-quiz__restart {
	background: #ff9900;
	color: #1c1c1c;
	border: 0;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s, transform .15s;
}
.wdat-quiz__start:hover,
.wdat-quiz__restart:hover {
	background: #ffac1f;
	transform: translateY(-1px);
}
.wdat-quiz__app {
	background: #fff;
	border: 0.5px solid #e0e0e0;
	border-radius: 12px;
	padding: 24px;
}
.wdat-quiz__progress {
	margin-bottom: 20px;
}
.wdat-quiz__progress-bar {
	height: 6px;
	background: #f0f0f0;
	border-radius: 3px;
	overflow: hidden;
}
.wdat-quiz__progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #ff9900 0%, #ffac1f 100%);
	border-radius: 3px;
	transition: width .4s ease;
}
.wdat-quiz__progress-text {
	font-size: 12px;
	color: #666;
	margin: 8px 0 0;
	text-align: right;
}
.wdat-quiz__question {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 20px;
	line-height: 1.3;
}
.wdat-quiz__options {
	display: grid;
	gap: 10px;
	margin-bottom: 24px;
}
.wdat-quiz__option {
	background: #fafafa;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 15px;
	color: #1c1c1c;
	cursor: pointer;
	text-align: left;
	transition: border-color .2s, background .2s, transform .1s;
}
.wdat-quiz__option:hover {
	border-color: #ffac1f;
	background: #fff8ec;
}
.wdat-quiz__option--selected {
	border-color: #ff9900;
	background: #fff8ec;
	box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}
.wdat-quiz__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.wdat-quiz__prev {
	background: transparent;
	border: 0;
	color: #666;
	cursor: pointer;
	font-size: 14px;
	padding: 8px 12px;
}
.wdat-quiz__prev:hover { color: #1c1c1c; }
.wdat-quiz__next {
	background: #232f3e;
	color: #fff;
	border: 0;
	padding: 10px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: opacity .2s, transform .15s;
}
.wdat-quiz__next:disabled {
	opacity: .35;
	cursor: not-allowed;
}
.wdat-quiz__next:not(:disabled):hover {
	transform: translateY(-1px);
}
.wdat-quiz__result {
	text-align: center;
	margin-bottom: 20px;
}
.wdat-quiz__result-title {
	font-size: 13px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 16px;
}
.wdat-quiz__result-card {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 18px;
	background: linear-gradient(180deg, #fff8ec 0%, #fff 100%);
	border: 0.5px solid #ffd485;
	border-radius: 12px;
	padding: 20px;
	text-align: left;
}
.wdat-quiz__result-img {
	width: 100%;
	height: 140px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	border: 0.5px solid #f0f0f0;
}
.wdat-quiz__result-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.wdat-quiz__result-name {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.3;
}
.wdat-quiz__result-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
}
.wdat-quiz__tag {
	font-size: 11px;
	padding: 3px 8px;
	background: #ffe6b8;
	color: #5a3e0d;
	border-radius: 999px;
	text-transform: lowercase;
}
.wdat-quiz__result-cta {
	display: inline-block;
	background: #ff9900;
	color: #1c1c1c;
	text-decoration: none;
	padding: 11px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	transition: background .2s, transform .15s;
	align-self: flex-start;
}
.wdat-quiz__result-cta:hover {
	background: #ffac1f;
	transform: translateY(-1px);
}
.wdat-quiz__nomatch {
	background: #fceaea;
	color: #501313;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	margin: 0 0 16px;
}

@media (max-width: 600px) {
	.wdat-quiz { margin: 16px 8px; }
	.wdat-quiz__app, .wdat-quiz__intro { padding: 16px; }
	.wdat-quiz__question { font-size: 17px; }
	.wdat-quiz__result-card {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.wdat-quiz__result-img { max-width: 200px; margin: 0 auto; }
	.wdat-quiz__result-cta { align-self: center; }
}

/* ============================================================
   TEMPLATE — SINGLE PRODUCT (encart d'achat dédié, [wdat_product])
   ============================================================ */

.wdat--single-product .wdat__sp {
	display: flex;
	gap: 22px;
	align-items: stretch;
	padding: 22px;
	background: var(--wdat-color-bg);
	border: 1px solid var(--wdat-color-border);
	border-radius: var(--wdat-radius);
	box-shadow: var(--wdat-shadow);
	position: relative;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.wdat--single-product .wdat__sp:hover {
	box-shadow: var(--wdat-shadow-lg);
}

.wdat--single-product .wdat__sp-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: var(--wdat-color-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 5px 10px;
	border-radius: 99px;
	z-index: 1;
}

.wdat--single-product .wdat__sp-image-link {
	flex: 0 0 180px;
	display: block;
	border-radius: var(--wdat-radius-sm);
	overflow: hidden;
	background: var(--wdat-color-bg-alt);
}

.wdat--single-product .wdat__sp-image {
	width: 100%;
	height: 100%;
	min-height: 180px;
	object-fit: contain;
	display: block;
	padding: 12px;
	background: #fff;
	transition: transform .25s ease;
}

.wdat--single-product .wdat__sp-image-link:hover .wdat__sp-image {
	transform: scale(1.03);
}

.wdat--single-product .wdat__sp-image--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	opacity: .3;
}

.wdat--single-product .wdat__sp-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0; /* fix flex overflow */
}

.wdat--single-product .wdat__sp-title {
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 10px;
}

.wdat--single-product .wdat__sp-title a {
	color: var(--wdat-color-text);
	text-decoration: none;
}

.wdat--single-product .wdat__sp-title a:hover {
	color: var(--wdat-color-primary-dark);
	text-decoration: underline;
}

.wdat--single-product .wdat__sp-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: .9em;
}

.wdat--single-product .wdat__sp-features {
	margin: 0 0 14px;
	padding-left: 18px;
	font-size: .92em;
	color: var(--wdat-color-text-muted);
	list-style: '✓ ' inside;
	padding-left: 0;
}

.wdat--single-product .wdat__sp-features li {
	margin-bottom: 4px;
	line-height: 1.4;
}

.wdat--single-product .wdat__sp-cta-row {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 8px;
}

.wdat--single-product .wdat__sp-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.wdat--single-product .wdat__sp-price .wdat__price {
	font-size: 1.55em;
	font-weight: 800;
	color: var(--wdat-color-text);
}

.wdat--single-product .wdat__sp-price .wdat__price-old {
	font-size: 1em;
	color: var(--wdat-color-text-muted);
}

.wdat--single-product .wdat__sp-price .wdat__price-note {
	flex-basis: 100%;
	font-size: .8em;
	color: var(--wdat-color-text-muted);
}

.wdat--single-product .wdat__sp-btn {
	margin-left: auto;
	white-space: nowrap;
}

.wdat--single-product .wdat__sp-disclaimer {
	margin-top: 12px;
	font-size: .8em;
	color: var(--wdat-color-text-muted);
	font-style: italic;
}

/* Responsive : empilement vertical sous 600px */
@media (max-width: 600px) {
	.wdat--single-product .wdat__sp {
		flex-direction: column;
		gap: 16px;
		padding: 16px;
	}
	.wdat--single-product .wdat__sp-image-link {
		flex: 0 0 auto;
		align-self: center;
		max-width: 220px;
		width: 100%;
	}
	.wdat--single-product .wdat__sp-image {
		min-height: 160px;
	}
	.wdat--single-product .wdat__sp-cta-row {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.wdat--single-product .wdat__sp-btn {
		margin-left: 0;
		text-align: center;
		width: 100%;
	}
}
