/**
 * BaromÃ¨tre AGIRES â€“ style front (shortcode)
 * Design : fond blanc, accent orange/jaune, typo lisible
 */
 .agires-barometre-shortcode {
	--baro-orange: #2396B9;
	--baro-orange-light: #fbbf24;
	--baro-orange-gradient: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
	--baro-text: #00005A;
	--baro-text-muted: #00005A;
	--baro-source: #2396B9;
	--baro-border: 1px solid #00005A;
	--baro-radius: 0;
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	color: var(--baro-text);
	text-align: center;
}

.agires-barometre-intro {
	margin: 0 0 24px;
	line-height: 1.6;
	color: #00005A;
	font-size: 16px;
	text-align: center;
}

.agires-barometre-filters-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}

.agires-barometre-filters-row--2 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 700px) {
	.agires-barometre-filters-row,
	.agires-barometre-filters-row--2 {
		grid-template-columns: 1fr;
	}
}

.agires-barometre-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.agires-barometre-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--baro-text);
}

.agires-barometre-select {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
    color: #fff;
    background: var(--baro-text);
	border: var(--baro-border);
	border-radius: var(--baro-radius);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.agires-barometre-actions {
	display: flex;
	gap: 12px;
	margin-top: 30px;
	margin-bottom: 30px;
	justify-content: center;
}

.agires-barometre-results {
	position: relative;
	min-height: 120px;
}

.agires-barometre-loader {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	border: 3px solid var(--baro-border);
	border-top-color: var(--baro-orange);
	border-radius: 50%;
	animation: agires-barometre-spin 0.8s linear infinite;
	z-index: 2;
}

.agires-barometre-loading .agires-barometre-loader {
	display: block;
}

.agires-barometre-loading .agires-barometre-results-grid {
	opacity: 0.4;
	pointer-events: none;
}

@keyframes agires-barometre-spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

.agires-barometre-btn {
	display: inline-block;
	padding: 10px 28px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: opacity 0.2s, box-shadow 0.2s;
	line-height: 18px;
}

.agires-barometre-btn--reset {
	background: #2396B9;
	color: #fff;
	border: 1px solid #2396B9;
}

.agires-barometre-btn--reset:hover {
	background: #fff;
	color: #2396B9;
}

.agires-barometre-results-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 28px;
}

@media (max-width: 600px) {
	.agires-barometre-results-grid {
		grid-template-columns: 1fr;
	}
}

.agires-barometre-result-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 20px;
	background: #fff;
}

.agires-barometre-result-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.agires-barometre-result-card__icon img {
	display: block;
	max-width: 56px;
	height: auto;
	object-fit: contain;
}

.agires-barometre-result-card__label {
	font-size: 15px;
	color: var(--baro-text-muted);
	line-height: 1.3;
	font-weight: 600;
}

.agires-barometre-result-card__value {
	font-size: 26px;
	font-weight: 700;
	color: #2396B9;
	letter-spacing: -0.02em;
}

.agires-barometre-source {
	margin: 0;
	font-size: 16px;
	font-style: italic;
	color: var(--baro-source);
	line-height: 1.5;
	display: block;
}

/* ============================================================================
   FILTRES BAROMÈTRE — lisibilité et responsive
   ============================================================================ */

/* Liste déroulante native en thème sombre : le navigateur dessine le menu
   avec un fond foncé et un texte clair, cohérent avec le select fermé.
   Évite le blanc-sur-blanc sans avoir à styler les <option> une par une. */
.agires-barometre-select,
.agires-barometre-select:not(:focus) {
	color: #ffffff !important;
	color-scheme: dark;
}

/* ── Tablette ── */
@media (max-width: 980px) {
	.agires-barometre-select {
		font-size: 14px;
		padding: 8px 32px 8px 10px;
		background-position: right 10px center;
	}
}

/* ── Mobile ── */
@media (max-width: 768px) {
	.agires-barometre-select {
		font-size: 13px;
		padding: 7px 30px 7px 9px;
		background-position: right 9px center;
	}
}

/* ── Petit mobile ── */
@media (max-width: 480px) {
	.agires-barometre-select {
		font-size: 12px;
		padding: 7px 28px 7px 8px;
	}
}
