/**
 * Flore — Divertissement. Version 1.14.0.
 *
 * Les cartes des jeux. Mêmes pigments que le reste de l'extension : --flore-violet et
 * --flore-orange, que les chartes Herbier et Atelier redéfinissent.
 */

.flore-divert {
	list-style: none;
	margin: 1.5rem 0 1rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 1.1rem;
}

.flore-divert__jeu {
	margin: 0;
	padding: 0 0 .9rem;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--flore-violet-pale, #d6c9e6);
	border-radius: 14px;
	background: rgba(255, 255, 255, .55);
	overflow: hidden;
}

html.flore-nuit .flore-divert__jeu {
	background: rgba(255, 255, 255, .04);
	border-color: #3a3346;
}

.flore-divert .flore-divert__lien {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	border-bottom: 0;
	box-shadow: none;
}

.flore-divert__vignette {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: color-mix(in srgb, var(--flore-violet, #7b5aa6) 7%, #fffdf8);
}

html.flore-nuit .flore-divert__vignette {
	background: #1d2023;
}

.flore-divert__vignette img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.flore-divert__motif {
	width: 58%;
	height: auto;
}

.flore-divert__case {
	fill: #fffdf8;
	stroke: var(--flore-violet, #7b5aa6);
	stroke-width: .8;
}

.flore-divert__def {
	fill: color-mix(in srgb, var(--flore-violet, #7b5aa6) 22%, #fffdf8);
	stroke: var(--flore-violet, #7b5aa6);
	stroke-width: .8;
}

/* Mots croisés : les cases noires sont noires. */
.flore-divert__motif--croises .flore-divert__def {
	fill: var(--flore-violet, #7b5aa6);
}

html.flore-nuit .flore-divert__motif--croises .flore-divert__def {
	fill: #8e7caa;
}

/* Jeu des paires : des dos de carte à fleur, une paire retournée. */
.flore-divert__point {
	fill: var(--flore-orange, #935516);
}

.flore-divert__trait-carte {
	fill: var(--flore-violet, #7b5aa6);
}

html.flore-nuit .flore-divert__point {
	fill: #db9f62;
}

html.flore-nuit .flore-divert__trait-carte {
	fill: #cbb6e6;
}

/* Mots mêlés : deux noms surlignés, comme dans la grille. */
.flore-divert__trait {
	stroke: var(--flore-orange, #935516);
	stroke-width: 7;
	stroke-linecap: round;
	opacity: .45;
}

.flore-divert__trait--2 {
	stroke: var(--flore-violet, #7b5aa6);
}

html.flore-nuit .flore-divert__trait {
	stroke: #db9f62;
	opacity: .55;
}

html.flore-nuit .flore-divert__trait--2 {
	stroke: #cbb6e6;
}

html.flore-nuit .flore-divert__case {
	fill: #1d2023;
	stroke: #8e7caa;
}

html.flore-nuit .flore-divert__def {
	fill: #2b2634;
	stroke: #8e7caa;
}

.flore-divert__nom {
	margin: .75rem .9rem 0;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--flore-violet-fonce, #4c3a6b);
}

html.flore-nuit .flore-divert__nom {
	color: #e4d8f3;
}

.flore-divert__compte {
	margin: .15rem .9rem 0;
	font-size: .88rem;
	color: var(--flore-orange, #935516);
	font-weight: 600;
}

html.flore-nuit .flore-divert__compte {
	color: #db9f62;
}

.flore-divert__texte {
	margin: .45rem .9rem 0;
	font-size: .95rem;
	line-height: 1.45;
}

.flore-divert__lien:hover .flore-divert__vignette img,
.flore-divert__lien:focus-visible .flore-divert__vignette img {
	transform: scale(1.04);
}

.flore-divert__lien:hover .flore-divert__nom,
.flore-divert__lien:focus-visible .flore-divert__nom {
	color: var(--flore-violet, #7b5aa6);
}

.flore-divert__note {
	font-size: .9rem;
	color: var(--contrast-2, #5c5266);
}

@media (prefers-reduced-motion: reduce) {
	.flore-divert__vignette img {
		transition: none;
	}
}
