/* YEP'S — infobulle d'aide accessible (scoring). RGAA : focus visible,
   contraste, révélée au survol ET au focus clavier ET au clic. */

.yeps-help-wrap {
	position: relative;
	display: inline-block;
	margin-inline-start: 4px;
	vertical-align: middle;
	line-height: 1;
}

/* Page de réglages ACF : libellé + icône sur la même ligne, instructions
   (description) renvoyées à la ligne suivante. Portée aux champs modifiés. */
.acf-field.yeps-help-field > .acf-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.acf-field.yeps-help-field > .acf-label label {
	display: inline;
	margin: 0;
}

.acf-field.yeps-help-field > .acf-label .description {
	flex: 1 0 100%;
	margin-top: 2px;
}

.yeps-help {
	background: none;
	border: 0;
	padding: 2px;
	margin: 0;
	cursor: help;
	color: #2271b1;
	line-height: 1;
}

.yeps-help:hover,
.yeps-help:focus-visible {
	color: #135e96;
}

.yeps-help:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	border-radius: 50%;
}

.yeps-help .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

/* Position fixe + placement JS : échappe à tout conteneur scrollable qui
   rognerait l'infobulle (ex. zone metaboxes de l'éditeur Gutenberg). */
.yeps-help-tip {
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 320px;
	max-width: 70vw;
	background: #1d2327;
	color: #fff;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-align: start;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	display: none;
}

.yeps-help-tip.is-open {
	display: block;
}
