/* Météo ONF — lien topbar + popup */

button.topbar-link.cftc-wx-chip {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
}
.cftc-wx-chip-emoji {
	flex: 0 0 auto;
	font-size: 13px;
	line-height: 1;
}

.cftc-wx-dlg {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	transform: translate(-50%, -50%) !important;
	padding: 0;
	border: 0;
	border-radius: 12px;
	width: min(720px, calc(100vw - 32px));
	max-width: min(720px, calc(100vw - 32px));
	height: auto;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	background: #fff;
	color: #1a2340;
	box-shadow: 0 18px 48px rgba(18, 24, 26, .28);
}
.cftc-wx-dlg::backdrop {
	background: rgba(18, 24, 26, .48);
}
.cftc-wx-pop {
	position: relative;
	margin: 0;
	background: #fff;
	max-height: calc(100vh - 40px);
	overflow: auto;
}
.cftc-wx-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: #0F3F93;
	color: #fff;
	line-height: 0;
	cursor: pointer;
}
.cftc-wx-close svg {
	display: block;
	width: 12px;
	height: 12px;
}
.cftc-wx-close:hover,
.cftc-wx-close:focus-visible {
	background: #212E81;
	color: #fff;
	outline: none;
}

.cftc-wx-scene {
	position: relative;
	height: 128px;
	overflow: hidden;
	background: #6b7886;
}
.cftc-wx-fx {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
}
.cftc-wx-fx-sky { opacity: 1; }
.cftc-wx-pop[data-wx="na"] .cftc-wx-fx-sky { background: linear-gradient(180deg, #8b98a4 0%, #c5ced6 100%); }
.cftc-wx-pop[data-wx="orage"] .cftc-wx-fx-sky { background: linear-gradient(180deg, #1a2230 0%, #3d4a5c 100%); }
.cftc-wx-pop[data-wx="pluie"] .cftc-wx-fx-sky { background: linear-gradient(180deg, #3e5166 0%, #6d7f92 100%); }
.cftc-wx-pop[data-wx="couvert"] .cftc-wx-fx-sky { background: linear-gradient(180deg, #6b7886 0%, #9aa6b2 100%); }
.cftc-wx-pop[data-wx="eclaircies"] .cftc-wx-fx-sky { background: linear-gradient(180deg, #4a9ad4 0%, #b7d8ee 100%); }
.cftc-wx-pop[data-wx="beau"] .cftc-wx-fx-sky { background: linear-gradient(180deg, #1e7fd4 0%, #7ec4f0 100%); }

.cftc-wx-fx-sun {
	inset: auto;
	top: 22px;
	right: 36px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #FBBB1D;
	box-shadow: 0 0 0 8px rgba(251, 187, 29, .28), 0 0 32px 12px rgba(251, 187, 29, .55);
}
.cftc-wx-fx-sun::before {
	content: "";
	position: absolute;
	inset: -22px;
	background: repeating-conic-gradient(from 8deg, #FBBB1D 0 6deg, transparent 6deg 20deg);
	opacity: .45;
	animation: cftc-wx-spin 14s linear infinite;
	z-index: -1;
}
.cftc-wx-pop[data-wx="beau"] .cftc-wx-fx-sun,
.cftc-wx-pop[data-wx="eclaircies"] .cftc-wx-fx-sun { opacity: 1; }
.cftc-wx-pop[data-wx="eclaircies"] .cftc-wx-fx-sun { top: 14px; right: 24px; width: 40px; height: 40px; }

.cftc-wx-fx-cloud {
	inset: auto;
	width: 90px;
	height: 28px;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 2px 8px rgba(18, 24, 26, .18);
}
.cftc-wx-fx-cloud::before,
.cftc-wx-fx-cloud::after {
	content: "";
	position: absolute;
	background: inherit;
	border-radius: 50%;
}
.cftc-wx-fx-cloud::before { width: 36px; height: 36px; top: -16px; left: 14px; }
.cftc-wx-fx-cloud::after { width: 46px; height: 46px; top: -22px; left: 34px; }
.cftc-wx-fx-cloud-a { top: 58px; left: 8%; animation: cftc-wx-bob 5s ease-in-out infinite; }
.cftc-wx-fx-cloud-b { top: 36px; left: 38%; width: 110px; animation: cftc-wx-bob 6.5s ease-in-out infinite .4s; }
.cftc-wx-fx-cloud-c { top: 64px; left: 68%; width: 80px; animation: cftc-wx-bob 7s ease-in-out infinite .8s; }
.cftc-wx-pop[data-wx="couvert"] .cftc-wx-fx-cloud,
.cftc-wx-pop[data-wx="eclaircies"] .cftc-wx-fx-cloud,
.cftc-wx-pop[data-wx="pluie"] .cftc-wx-fx-cloud,
.cftc-wx-pop[data-wx="orage"] .cftc-wx-fx-cloud { opacity: 1; }
.cftc-wx-pop[data-wx="couvert"] .cftc-wx-fx-cloud,
.cftc-wx-pop[data-wx="pluie"] .cftc-wx-fx-cloud { background: #eef2f6; }
.cftc-wx-pop[data-wx="orage"] .cftc-wx-fx-cloud { background: #8b97a6; }
.cftc-wx-pop[data-wx="eclaircies"] .cftc-wx-fx-cloud-c { opacity: 0; }

.cftc-wx-fx-rain { overflow: hidden; }
.cftc-wx-fx-rain i {
	position: absolute;
	top: -18px;
	width: 2px;
	height: 16px;
	border-radius: 2px;
	background: linear-gradient(180deg, transparent, #fff);
	animation: cftc-wx-drop .7s linear infinite;
}
.cftc-wx-fx-rain i:nth-child(1) { left: 4%; animation-duration: .55s; }
.cftc-wx-fx-rain i:nth-child(2) { left: 10%; animation-duration: .72s; animation-delay: .1s; height: 20px; }
.cftc-wx-fx-rain i:nth-child(3) { left: 16%; animation-duration: .6s; animation-delay: .2s; }
.cftc-wx-fx-rain i:nth-child(4) { left: 22%; animation-duration: .8s; animation-delay: .05s; height: 14px; }
.cftc-wx-fx-rain i:nth-child(5) { left: 28%; animation-duration: .58s; animation-delay: .3s; }
.cftc-wx-fx-rain i:nth-child(6) { left: 34%; animation-duration: .7s; animation-delay: .15s; height: 18px; }
.cftc-wx-fx-rain i:nth-child(7) { left: 40%; animation-duration: .64s; animation-delay: .25s; }
.cftc-wx-fx-rain i:nth-child(8) { left: 46%; animation-duration: .76s; animation-delay: .08s; }
.cftc-wx-fx-rain i:nth-child(9) { left: 52%; animation-duration: .52s; animation-delay: .18s; height: 20px; }
.cftc-wx-fx-rain i:nth-child(10) { left: 58%; animation-duration: .68s; animation-delay: .35s; }
.cftc-wx-fx-rain i:nth-child(11) { left: 64%; animation-duration: .6s; animation-delay: .12s; }
.cftc-wx-fx-rain i:nth-child(12) { left: 70%; animation-duration: .74s; animation-delay: .22s; height: 15px; }
.cftc-wx-fx-rain i:nth-child(13) { left: 76%; animation-duration: .56s; animation-delay: .04s; }
.cftc-wx-fx-rain i:nth-child(14) { left: 82%; animation-duration: .8s; animation-delay: .28s; }
.cftc-wx-fx-rain i:nth-child(15) { left: 88%; animation-duration: .62s; animation-delay: .16s; height: 19px; }
.cftc-wx-fx-rain i:nth-child(16) { left: 93%; animation-duration: .7s; animation-delay: .32s; }
.cftc-wx-fx-rain i:nth-child(17) { left: 13%; animation-duration: .66s; animation-delay: .4s; }
.cftc-wx-fx-rain i:nth-child(18) { left: 61%; animation-duration: .54s; animation-delay: .38s; height: 22px; }
.cftc-wx-pop[data-wx="pluie"] .cftc-wx-fx-rain,
.cftc-wx-pop[data-wx="orage"] .cftc-wx-fx-rain { opacity: 1; }
.cftc-wx-pop[data-wx="orage"] .cftc-wx-fx-rain i { height: 22px; animation-duration: .42s; }

.cftc-wx-fx-bolt {
	inset: auto;
	top: 10px;
	left: 46%;
	width: 22px;
	height: 56px;
	background: #FBBB1D;
	clip-path: polygon(42% 0, 72% 0, 48% 38%, 78% 38%, 22% 100%, 38% 52%, 12% 52%);
	filter: drop-shadow(0 0 8px #fff8c8);
}
.cftc-wx-pop[data-wx="orage"] .cftc-wx-fx-bolt {
	opacity: 0;
	animation: cftc-wx-flash 3.6s ease-in-out infinite;
}

.cftc-wx-fx-fog {
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 40%, rgba(255,255,255,.2) 70%, transparent 100%);
}
.cftc-wx-pop[data-wx="na"] .cftc-wx-fx-fog {
	opacity: 1;
	animation: cftc-wx-fog 8s ease-in-out infinite;
}

@keyframes cftc-wx-spin { to { transform: rotate(360deg); } }
@keyframes cftc-wx-bob {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(18px); }
}
@keyframes cftc-wx-drop {
	0% { transform: translateY(0); opacity: .2; }
	15% { opacity: 1; }
	100% { transform: translateY(150px); opacity: .15; }
}
@keyframes cftc-wx-flash {
	0%, 78%, 86%, 100% { opacity: 0; }
	80%, 82% { opacity: 1; }
	84% { opacity: .25; }
	88% { opacity: .7; }
}
@keyframes cftc-wx-fog {
	0%, 100% { transform: translateX(-20%); }
	50% { transform: translateX(20%); }
}

.cftc-wx-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px 0;
}
.cftc-wx-emoji {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 24px;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(18, 24, 26, .08);
}
.cftc-wx-kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #64748b;
	margin: 0 0 2px;
}
.cftc-wx-label {
	font-size: 18px;
	font-weight: 800;
	color: #1a2340;
	margin: 0;
	line-height: 1.15;
}
.cftc-wx-line,
.cftc-wx-meta {
	font-size: 13px;
	color: #4A5568;
	margin: 4px 0 0;
}
.cftc-wx-meta { margin-top: 2px; font-size: 12px; }
.cftc-wx-body { padding: 16px 18px 18px; }

.cftc-wx-qs {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 14px 0 0;
	border: 1px solid #e8eef4;
	border-radius: 10px;
	background: #fafbfc;
	overflow: hidden;
}
.cftc-wx-pop .home-meteo-q {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 12px 14px;
	border-top: 1px solid #e8eef4;
}
.cftc-wx-pop .home-meteo-q:first-child { border-top: 0; }
.cftc-wx-pop .home-meteo-more { display: contents; }
.cftc-wx-pop .home-meteo-q-lbl,
.cftc-wx-pop .home-meteo-ask {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #1a2340;
	margin: 0;
	line-height: 1.4;
	white-space: normal;
}
.cftc-wx-pop .home-meteo-moods {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	justify-content: stretch;
}
.cftc-wx-pop button.home-meteo-mood {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	flex: 1 1 0;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	padding: 7px 6px;
	border: 1.5px solid #dbe4f0;
	border-radius: 8px;
	background: #fff;
	color: #1a2340;
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.cftc-wx-pop .home-meteo-mood-lbl {
	font-size: 12px;
	font-weight: 650;
	color: #475569;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cftc-wx-pop button.home-meteo-mood:hover,
.cftc-wx-pop button.home-meteo-mood:focus-visible {
	border-color: #0F3F93;
	background: #f4f7fb;
	outline: none;
}
.cftc-wx-pop button.home-meteo-mood.is-on,
.cftc-wx-pop button.home-meteo-mood.is-on .home-meteo-mood-lbl {
	border-color: #0F3F93;
	background: #0F3F93;
	color: #fff;
}
.cftc-wx-pop .home-meteo-done {
	font-size: 12px;
	color: #4A5568;
	margin: 8px 0 0;
}
.cftc-wx-pop .home-meteo-ok {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #D8F3DC;
	color: #2D6A4F;
	font-size: 13px;
	font-weight: 650;
}
.cftc-wx-pop .home-meteo-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}
.cftc-wx-pop .home-meteo-panel[hidden],
.cftc-wx-pop .home-meteo-ok[hidden],
.cftc-wx-pop .home-meteo-err[hidden],
.cftc-wx-pop .home-meteo-share[hidden],
.cftc-wx-pop .home-meteo-more[hidden],
.cftc-wx-pop .home-meteo-auto[hidden],
.cftc-wx-pop .home-meteo-send[hidden],
.cftc-wx-line[hidden],
.cftc-wx-meta[hidden] { display: none !important; }
.cftc-wx-pop .home-meteo-share { display: flex; flex-direction: column; gap: 8px; }
.cftc-wx-pop .home-meteo-dt {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 650;
	color: #334155;
}
.cftc-wx-pop .home-meteo-dt select {
	height: 36px;
	padding: 0 10px;
	border: 1px solid #dbe4f0;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	color: #1a2340;
	color-scheme: light;
}
.cftc-wx-pop .home-meteo-dt select:focus,
.cftc-wx-pop .home-meteo-panel textarea:focus { outline: 2px solid #0F3F93; outline-offset: 1px; }
.cftc-wx-pop .home-meteo-panel textarea {
	width: 100%;
	min-height: 78px;
	padding: 10px 12px;
	border: 1px solid #dbe4f0;
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	resize: vertical;
	box-sizing: border-box;
}
.cftc-wx-pop .home-meteo-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.cftc-wx-pop button.home-meteo-theme {
	padding: 5px 10px;
	border: 1px solid #dbe4f0;
	border-radius: 99px;
	background: #fff;
	font-size: 12px;
	font-weight: 650;
	color: #1a2340;
	cursor: pointer;
}
.cftc-wx-pop button.home-meteo-theme:hover,
.cftc-wx-pop button.home-meteo-theme.is-on {
	border-color: #0F3F93;
	background: #0F3F93;
	color: #fff;
}
.cftc-wx-pop button.home-meteo-urgent {
	align-self: flex-start;
	padding: 6px 12px;
	border: 1px solid #e8c9b8;
	border-radius: 8px;
	background: #fff;
	color: #9C4A2E;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.cftc-wx-pop button.home-meteo-urgent.is-on {
	background: #9C4A2E;
	border-color: #9C4A2E;
	color: #fff;
}
.cftc-wx-pop .home-meteo-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}
.cftc-wx-pop .home-meteo-actions-btns {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
}
.cftc-wx-pop .home-meteo-actions-btns > button {
	flex: 1 1 0;
	min-width: 0;
}
.cftc-wx-pop .home-meteo-auto {
	margin: 0;
	font-size: 11px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.35;
	color: #4A5568;
}
.cftc-wx-pop button.home-meteo-share-toggle,
.cftc-wx-pop button.home-meteo-send {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.25;
}
.cftc-wx-pop button.home-meteo-share-toggle {
	border: 1px solid #dbe4f0;
	background: #fff;
	color: #1a2340;
}
.cftc-wx-pop button.home-meteo-share-toggle:hover { border-color: #0F3F93; }
.cftc-wx-pop button.home-meteo-send {
	border: 0;
	background: #0F3F93;
	color: #fff;
}
.cftc-wx-pop button.home-meteo-send:hover:not(:disabled),
.cftc-wx-pop button.home-meteo-send:focus-visible:not(:disabled) {
	background: #212E81;
}
.cftc-wx-pop button.home-meteo-send:disabled { opacity: .55; cursor: not-allowed; }
.cftc-wx-pop .home-meteo-err { margin: 0; font-size: 12px; color: #9C4A2E; }
.cftc-wx-pop .home-meteo-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

body.dark .cftc-wx-dlg,
body.dark .cftc-wx-pop { background: #1B2225; color: #F4F3EE; }
body.dark .cftc-wx-label,
body.dark .cftc-wx-pop .home-meteo-q-lbl,
body.dark .cftc-wx-pop .home-meteo-ask { color: #F4F3EE; }
body.dark .cftc-wx-kicker,
body.dark .cftc-wx-line,
body.dark .cftc-wx-meta,
body.dark .cftc-wx-pop .home-meteo-done,
body.dark .cftc-wx-pop .home-meteo-auto { color: #9FA6A0; }
body.dark .cftc-wx-qs { background: #151a1c; border-color: #2a3336; }
body.dark .cftc-wx-pop .home-meteo-q { border-top-color: #2a3336; }
body.dark .cftc-wx-emoji { background: #151a1c; border-color: #2a3336; }
body.dark .cftc-wx-pop .home-meteo-dt { color: #d5ddd6; }
body.dark .cftc-wx-pop button.home-meteo-mood,
body.dark .cftc-wx-pop button.home-meteo-theme {
	background: #151a1c;
	border-color: #2a3336;
	color: #F4F3EE;
	-webkit-text-fill-color: #F4F3EE;
}
body.dark .cftc-wx-pop .home-meteo-panel textarea,
body.dark .cftc-wx-pop .home-meteo-dt select {
	background: #151a1c !important;
	border-color: #2a3336 !important;
	color: #F4F3EE !important;
	-webkit-text-fill-color: #F4F3EE;
	color-scheme: dark;
}
body.dark .cftc-wx-pop .home-meteo-dt select option {
	background: #151a1c;
	color: #F4F3EE;
}
body.dark .cftc-wx-pop .home-meteo-mood-lbl {
	color: #9FA6A0;
	background: transparent;
}
body.dark .cftc-wx-pop button.home-meteo-mood.is-on,
body.dark .cftc-wx-pop button.home-meteo-mood.is-on:hover,
body.dark .cftc-wx-pop button.home-meteo-mood.is-on:focus-visible,
body.dark .cftc-wx-pop button.home-meteo-mood.is-on .home-meteo-mood-lbl,
body.dark .cftc-wx-pop button.home-meteo-theme.is-on {
	background: #C99A3E !important;
	border-color: #C99A3E !important;
	color: #12181A !important;
	-webkit-text-fill-color: #12181A;
}
body.dark .cftc-wx-close { background: #0F3F93; color: #fff; }
body.dark .cftc-wx-close:hover,
body.dark .cftc-wx-close:focus-visible { background: #212E81; color: #fff; }

@media (max-width: 760px) {
	.cftc-wx-chip-label { display: none; }
	.cftc-wx-pop .home-meteo-moods { flex-wrap: wrap; }
	.cftc-wx-pop button.home-meteo-mood { flex: 1 1 calc(50% - 6px); }
	.cftc-wx-pop .home-meteo-actions-btns { flex-wrap: wrap; }
	.cftc-wx-pop .home-meteo-actions-btns > button { flex: 1 1 calc(50% - 4px); }
}
@media (prefers-reduced-motion: reduce) {
	.cftc-wx-fx-sun::before,
	.cftc-wx-fx-cloud,
	.cftc-wx-fx-rain i,
	.cftc-wx-fx-bolt,
	.cftc-wx-fx-fog { animation: none !important; }
	.cftc-wx-pop[data-wx="orage"] .cftc-wx-fx-bolt { opacity: 1; }
}
