/* Bloc « Test / Review » — style néon / verre dépoli. Surchargeable par le thème via --mytm-review-*. */
.mytm-review {
	--mytm-bg: var(--mytm-review-bg, linear-gradient(160deg, #eef0f7 0%, #e4e7f1 100%));
	--mytm-glass: var(--mytm-review-glass, linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42)));
	--mytm-edge: var(--mytm-review-edge, rgba(255, 255, 255, .95));
	--mytm-line: var(--mytm-review-line, rgba(28, 33, 64, .10));
	--mytm-text: var(--mytm-review-text, #161a33);
	--mytm-radius: var(--mytm-review-radius, 12px);
	--mytm-pro: var(--mytm-review-pro, #1fe070);
	--mytm-con: var(--mytm-review-con, #ff2d55);
	--mytm-verdict: var(--mytm-review-verdict, #1fa8ff);
	--mytm-neon: linear-gradient(90deg, #ff2d55, #ff9f0a, #ffd60a, #2ee66b, #1fb6ff, #8a5cff, #ff3fd0);
	container-type: inline-size;
	position: relative;
	padding: 8px;
	background: var(--mytm-bg);
	color: var(--mytm-text);
	border-radius: calc(var(--mytm-radius) + 4px);
	font-family: inherit;
	box-sizing: border-box;
}
.mytm-review *, .mytm-review *::before, .mytm-review *::after { box-sizing: border-box; }

/* Grille : + | note | -   puis le verdict sur toute la largeur */
.mytm-review__grid {
	display: grid;
	grid-template-columns: 1fr 1.12fr 1fr;
	gap: 10px;
	align-items: stretch;
}
.mytm-review__verdict { grid-column: 1 / -1; }

/* Cartes en verre */
.mytm-review__col,
.mytm-review__card {
	--mytm-accent-line: var(--mytm-neon);
	position: relative;
	min-width: 0;
	padding: 10px 8px 8px;
	background: var(--mytm-glass);
	border: 1px solid var(--mytm-edge);
	border-radius: var(--mytm-radius);
	box-shadow:
		inset 0 1px 0 #fff,
		0 1px 2px rgba(28, 33, 64, .08),
		0 6px 18px rgba(28, 33, 64, .10);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
/* Liseré lumineux en haut et en bas */
.mytm-review__col::before,
.mytm-review__col::after,
.mytm-review__card::before,
.mytm-review__card::after {
	content: "";
	position: absolute;
	left: 14%;
	right: 14%;
	height: 2px;
	background: var(--mytm-accent-line);
	border-radius: 2px;
	filter: blur(2px);
	opacity: .38;
	pointer-events: none;
}
.mytm-review__col::before, .mytm-review__card::before { top: -1px; }
.mytm-review__col::after, .mytm-review__card::after { bottom: -1px; }

/* Bordures néon par cadre : + vert, - rouge, verdict bleu */
.mytm-review__col--pros { --mytm-accent: var(--mytm-pro); }
.mytm-review__col--cons { --mytm-accent: var(--mytm-con); }
.mytm-review__verdict { --mytm-accent: var(--mytm-verdict); }
.mytm-review__col--pros,
.mytm-review__col--cons,
.mytm-review__verdict {
	--mytm-accent-line: linear-gradient(90deg, transparent, var(--mytm-accent), transparent);
	border: 1.5px solid color-mix(in srgb, var(--mytm-accent) 80%, #fff);
	box-shadow:
		inset 0 1px 0 #fff,
		inset 0 0 10px color-mix(in srgb, var(--mytm-accent) 12%, transparent),
		0 0 0 1px color-mix(in srgb, var(--mytm-accent) 18%, transparent),
		0 0 10px color-mix(in srgb, var(--mytm-accent) 38%, transparent),
		0 6px 18px rgba(28, 33, 64, .08);
}
.mytm-review__col--pros .mytm-review__item,
.mytm-review__col--cons .mytm-review__item {
	border-color: color-mix(in srgb, var(--mytm-accent) 28%, #fff);
}

.mytm-review__col { display: flex; flex-direction: column; }

/* Titres + filet dégradé dessous */
.mytm-review__title {
	margin: 0 0 8px;
	padding-bottom: 7px;
	font-size: clamp(.95rem, 3.3cqi, 1.45rem);
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: var(--mytm-text);
	background: linear-gradient(90deg, transparent, var(--mytm-line) 20%, var(--mytm-line) 80%, transparent) bottom / 100% 1px no-repeat;
}
.mytm-review__title small { font-size: .72em; font-weight: 500; text-transform: none; white-space: nowrap; }

/* Points forts / faibles */
.mytm-review__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.mytm-review__item {
	position: relative;
	display: flex; align-items: center; gap: 9px;
	margin: 0;
	padding: 8px 20px 8px 7px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
	border: 1px solid var(--mytm-edge);
	border-radius: calc(var(--mytm-radius) - 3px);
	box-shadow: 0 1px 3px rgba(28, 33, 64, .08);
	font-size: clamp(.85rem, 2.6cqi, 1.05rem);
	font-weight: 600;
	line-height: 1.25;
}
.mytm-review__text { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
/* Petit rond (+)/(−) décoratif en bas à droite */
.mytm-review__item::after {
	position: absolute; right: 5px; bottom: 5px;
	width: 13px; height: 13px;
	display: grid; place-items: center;
	border: 1px solid currentColor; border-radius: 50%;
	font: 600 11px/1 system-ui, sans-serif;
	opacity: .3;
}
.mytm-review__item--pro::after { content: "+"; }
.mytm-review__item--con::after { content: "−"; }
.mytm-review__empty { text-align: center; opacity: .45; margin: 0; }

/* (+) décoratif en pied de colonne */
.mytm-review__col > .mytm-review__list::after {
	content: "+";
	align-self: center;
	width: 20px; height: 20px;
	margin-top: auto;
	display: grid; place-items: center;
	border: 1.5px solid currentColor; border-radius: 50%;
	font: 500 15px/1 system-ui, sans-serif;
	opacity: .28;
}

/* Pastilles néon */
.mytm-dot {
	flex: 0 0 auto;
	width: 30px; height: 30px;
	display: inline-grid; place-items: center;
	border-radius: 50%;
	border: 2.5px solid var(--dot, #3b6bff);
	background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--dot, #3b6bff) 90%, #fff) 0%, color-mix(in srgb, var(--dot, #3b6bff) 55%, #1a1238) 100%);
	color: #fff;
	font: 800 18px/1 system-ui, sans-serif;
	text-shadow: 0 0 3px var(--dot, #3b6bff);
	box-shadow:
		0 0 4px var(--dot, #3b6bff),
		0 0 8px color-mix(in srgb, var(--dot, #3b6bff) 35%, transparent),
		inset 0 0 4px var(--dot, #3b6bff);
}
.mytm-dot--pro.mytm-dot--1 { --dot: #3b6bff; }
.mytm-dot--pro.mytm-dot--2 { --dot: #22e05f; }
.mytm-dot--pro.mytm-dot--3 { --dot: #ff2fd6; }
.mytm-dot--con.mytm-dot--1 { --dot: #ff3b1f; }
.mytm-dot--con.mytm-dot--2 { --dot: #ffd60a; }
.mytm-dot--con.mytm-dot--4 { --dot: #8a5cff; }
/* Pastille arc-en-ciel */
.mytm-dot--pro.mytm-dot--4,
.mytm-dot--con.mytm-dot--3 {
	--dot: #b24dff;
	border-color: transparent;
	background:
		radial-gradient(circle at 50% 40%, #3a2170 0%, #1a1238 100%) padding-box,
		conic-gradient(#ff2d55, #ffd60a, #2ee66b, #1fb6ff, #8a5cff, #ff3fd0, #ff2d55) border-box;
	box-shadow: 0 0 4px #ff3fd0, 0 0 8px rgba(31, 182, 255, .35), inset 0 0 4px #8a5cff;
}

/* Note : contour néon qui change de couleur en boucle */
@property --mytm-neon-c {
	syntax: "<color>";
	inherits: true;
	initial-value: #ff3fd0;
}
@keyframes mytm-neon-cycle {
	0%, 100% { --mytm-neon-c: #ff3fd0; }
	20% { --mytm-neon-c: #ff2d55; }
	40% { --mytm-neon-c: #ffd60a; }
	60% { --mytm-neon-c: #2ee66b; }
	80% { --mytm-neon-c: #1fb6ff; }
}

.mytm-review__score {
	display: flex; flex-direction: column; justify-content: center;
	text-align: center;
}
.mytm-review__score > .mytm-review__title { align-self: stretch; }
.mytm-review__number {
	margin: 4px 0 0;
	display: flex; align-items: baseline; justify-content: center; gap: 8px;
	line-height: 1;
}
.mytm-review__number strong,
.mytm-review__number span,
.mytm-edit-score {
	color: var(--mytm-text);
	paint-order: stroke fill;
	animation: mytm-neon-cycle 8s linear infinite;
}
.mytm-review__number strong {
	font-size: clamp(2.6rem, 12cqi, 5rem);
	font-weight: 900;
	-webkit-text-stroke: 6px var(--mytm-neon-c);
	text-shadow: 0 0 10px color-mix(in srgb, var(--mytm-neon-c) 60%, transparent);
}
.mytm-review__number span {
	font-size: clamp(1.4rem, 5.5cqi, 2.4rem);
	font-weight: 800;
	-webkit-text-stroke: 4px var(--mytm-neon-c);
	text-shadow: 0 0 6px color-mix(in srgb, var(--mytm-neon-c) 50%, transparent);
}

/* Jauge */
.mytm-gauge { display: block; width: 100%; max-width: 300px; margin: 6px auto 0; overflow: visible; }
.mytm-gauge__rim { opacity: .14; filter: blur(3px); }
.mytm-gauge__seg {
	fill: rgba(255, 255, 255, .55);
	stroke: var(--seg);
	stroke-width: 1.5;
	stroke-opacity: .4;
	stroke-linejoin: round;
}
.mytm-gauge__seg.is-lit {
	fill: color-mix(in srgb, var(--seg) 30%, #fff);
	stroke-width: 2.4;
	stroke-opacity: 1;
	filter: drop-shadow(0 0 2px var(--seg));
}
.mytm-gauge__needle {
	stroke: #161a33;
	stroke-width: 3.5;
	stroke-linecap: round;
	filter: drop-shadow(0 0 2px var(--now));
}
.mytm-gauge__hub {
	fill: #161a33;
	stroke: var(--now);
	stroke-width: 2.5;
	filter: drop-shadow(0 0 2px var(--now));
}

/* Verdict automatique sous la jauge (couleur de la note) */
.mytm-review__tier {
	align-self: center;
	margin: 6px 0 0;
	padding: 4px 14px;
	border: 1.5px solid var(--now, #2ee66b);
	border-radius: 999px;
	background: color-mix(in srgb, var(--now, #2ee66b) 12%, #fff);
	box-shadow: 0 0 8px color-mix(in srgb, var(--now, #2ee66b) 45%, transparent);
	font-size: clamp(.9rem, 3.4cqi, 1.3rem);
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--mytm-text);
}
/* 100/100 : PRISMATIX CŒUR en arc-en-ciel */
.mytm-review__score.is-coeur .mytm-review__tier {
	border-color: transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		var(--mytm-neon) border-box;
	box-shadow: 0 0 8px rgba(255, 63, 208, .5), 0 0 14px rgba(31, 182, 255, .35);
}
.mytm-review__score.is-coeur .mytm-review__tier::after { content: " ♥"; color: #ff2d55; }

/* Logo du site + légende */
.mytm-review__brand {
	margin: 8px 0 0;
	display: flex; align-items: center; justify-content: center; gap: 6px;
	flex-wrap: wrap;
}
.mytm-review__brand .mytm-review__logo {
	display: block;
	width: auto; height: auto;
	max-height: 26px; max-width: 120px;
	object-fit: contain;
}
.mytm-review__gauge-label {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .75;
}

/* Verdict de la rédaction : texte libre, petit */
.mytm-review__verdict { padding: 10px 14px 12px; }
.mytm-review__verdict-text {
	font-size: clamp(.88rem, 2.2cqi, 1rem);
	font-weight: 400;
	line-height: 1.55;
	color: var(--mytm-text);
	text-align: left;
}
.mytm-review__verdict-text p { margin: 0 0 .6em; }
.mytm-review__verdict-text p:last-child { margin-bottom: 0; }

/* Bloc moyen (colonne d'article ~450-720 px) : on resserre */
@container (min-width: 441px) and (max-width: 720px) {
	.mytm-review__grid { gap: 8px; }
	.mytm-review__col, .mytm-review__score { padding: 8px 6px 6px; }
	.mytm-review__item { gap: 6px; padding: 6px 14px 6px 5px; font-size: .82rem; }
	.mytm-review__item::after { width: 11px; height: 11px; font-size: 9px; right: 3px; bottom: 3px; }
	.mytm-dot { width: 24px; height: 24px; font-size: 15px; border-width: 2px; }
	.mytm-review__number strong { -webkit-text-stroke-width: 5px; }
	.mytm-review__number span { -webkit-text-stroke-width: 3px; }
	.mytm-review__gauge-label { font-size: .62rem; letter-spacing: .04em; }
}

/* Bloc étroit (mobile) : une seule colonne — note, +, -, verdict */
@container (max-width: 440px) {
	.mytm-review__grid { grid-template-columns: 1fr; }
	.mytm-review__score { order: -1; }
	.mytm-review__title { font-size: 1.15rem; }
	.mytm-review__item { font-size: .98rem; }
	.mytm-review__number strong { font-size: 4.2rem; }
	.mytm-review__number span { font-size: 1.9rem; }
	.mytm-review__tier { font-size: 1.15rem; }
	.mytm-review__verdict-text { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
	.mytm-review__number strong, .mytm-review__number span, .mytm-edit-score { animation: none; }
}
