/* Flore — Reconnaissance des fleurs.
   Les couleurs sont empruntées au thème quand il en propose ; les valeurs de
   repli restent lisibles dans les trois registres du socle (jour, sépia, nuit). */

.flore-reco {
	--reco-trait: var(--flore-trait, currentColor);
	--reco-fond: var(--flore-fond-doux, rgba(127, 127, 127, .07));
	--reco-accent: var(--flore-accent, #4a7c59);
	margin: 2rem 0;
}

.flore-reco-titre {
	margin-bottom: .8rem;
}

/* Zone de dépôt ---------------------------------------------------------- */

.flore-reco-zone {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 1.6rem 1.4rem;
	border: 2px dashed var(--reco-trait);
	border-radius: 10px;
	background: var(--reco-fond);
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.flore-reco-zone:hover,
.flore-reco-zone:focus-within {
	border-color: var(--reco-accent);
	border-style: solid;
}

.flore-reco-zone.est-survolee {
	border-color: var(--reco-accent);
	border-style: solid;
	background: color-mix(in srgb, var(--reco-accent) 12%, transparent);
}

.flore-reco-dessin {
	flex: 0 0 auto;
	opacity: .75;
}

.flore-reco-appel {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	line-height: 1.4;
}

.flore-reco-appel span {
	font-size: .92em;
	opacity: .82;
}

.flore-reco-zone kbd {
	font-size: .85em;
	padding: 0 .3em;
	border: 1px solid currentColor;
	border-radius: 3px;
	opacity: .8;
}

.flore-reco-zone input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.flore-reco-note {
	margin: .7rem 0 0;
	font-size: .86em;
	opacity: .78;
	line-height: 1.5;
}

.flore-reco-absent {
	padding: .9rem 1.1rem;
	border-left: 3px solid var(--reco-accent);
	background: var(--reco-fond);
}

/* Attente ---------------------------------------------------------------- */

.flore-reco-attente {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 1.2rem 0;
}

.flore-reco-rond {
	width: 1.1em;
	height: 1.1em;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: flore-reco-tourne 1s linear infinite;
}

@keyframes flore-reco-tourne {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.flore-reco-rond {
		animation: none;
		border-top-color: currentColor;
		opacity: .5;
	}
}

/* Résultat --------------------------------------------------------------- */

.flore-reco-resume {
	margin: 1.4rem 0 .6rem;
	font-size: 1.25em;
	font-weight: 600;
	line-height: 1.35;
}

.flore-reco-photo {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.flore-reco-cartes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
	padding: 0;
	list-style: none;
}

.flore-reco-carte {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--reco-trait);
	border-radius: 8px;
	overflow: hidden;
}

.flore-reco-carte img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.flore-reco-corps {
	padding: .8rem .9rem 1rem;
}

.flore-reco-combien {
	margin: 0 0 .5rem;
	font-weight: 600;
}

.flore-reco-teinte {
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-right: .35em;
	border: 1px solid var(--reco-trait);
	border-radius: 50%;
	vertical-align: baseline;
}

.flore-reco-pistes {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .93em;
}

.flore-reco-pistes li {
	display: flex;
	justify-content: space-between;
	gap: .6rem;
	padding: .28rem 0;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.flore-reco-pistes li:first-child {
	border-top: 0;
	font-weight: 600;
}

.flore-reco-latin {
	display: block;
	font-style: italic;
	font-size: .88em;
	opacity: .72;
	font-weight: 400;
}

.flore-reco-score {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	opacity: .72;
}

.flore-reco-avis {
	margin: 1rem 0;
	padding: .8rem 1rem;
	border-left: 3px solid var(--reco-accent);
	background: var(--reco-fond);
	font-size: .93em;
}

.flore-reco-erreur {
	margin: 1rem 0;
	padding: .8rem 1rem;
	border-left: 3px solid #b3261e;
	background: var(--reco-fond);
}

.flore-reco-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 1.2rem 0 0;
}

.flore-reco-bouton {
	padding: .45rem 1rem;
	border: 1px solid var(--reco-trait);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.flore-reco-bouton:hover {
	border-color: var(--reco-accent);
	color: var(--reco-accent);
}

.flore-reco-quota {
	margin: .8rem 0 0;
	font-size: .84em;
	opacity: .7;
}

@media (max-width: 560px) {
	.flore-reco-zone {
		flex-direction: column;
		text-align: center;
	}
}

@media print {
	.flore-reco-depot,
	.flore-reco-actions,
	.flore-reco-travail { display: none !important; }
}
