/* ===========================================================
   Monito — sélecteur de thème (pastille d'actualisation).
   Trois pastilles : chacune montre le fond et l'accent de son thème.
   =========================================================== */
.theme-switch{ display:inline-flex; align-items:center; gap:2px; margin-left:4px; padding-left:10px; border-left:1px solid var(--border-soft); }
.theme-switch .ts{
	appearance:none; -webkit-appearance:none; cursor:pointer; padding:0; margin:0;
	width:28px; height:28px; border:0; background:transparent; border-radius:50%;
	display:inline-flex; align-items:center; justify-content:center; position:relative;
}
.theme-switch .ts::before{
	content:""; width:16px; height:16px; border-radius:50%; box-sizing:border-box;
	border:1px solid rgba(255,255,255,.35);
	transition:transform .15s ease;
}
.ts-normal::before{ background:linear-gradient(135deg,#0a1120 50%,#33d6c0 50%); }
.ts-sauge::before{ background:linear-gradient(135deg,#0d1210 50%,#9fbd8c 50%); }
.ts-noir::before{ background:linear-gradient(135deg,#0b0b0d 50%,#c4c8d2 50%); }
.ts-rouge::before{ background:linear-gradient(135deg,#140d0e 50%,#d98585 50%); }
.theme-switch .ts:hover::before{ transform:scale(1.15); }
.theme-switch .ts[aria-checked="true"]::before{ outline:2px solid var(--text); outline-offset:2px; }
.theme-switch .ts:focus-visible{ outline:2px solid var(--accent-2); outline-offset:-2px; }
@media (max-width:760px){ .theme-switch .ts{ width:32px; height:32px; } }
@media (prefers-reduced-motion:reduce){ .theme-switch .ts::before{ transition:none; } }

/* Tablette : la pastille s'est élargie avec le sélecteur ; on la compacte pour laisser sa place à la courbe cardiaque. */
@media (min-width:761px) and (max-width:1400px){
	.site-header{ flex-wrap:nowrap; gap:10px; }
	.site-header .ecg{ margin:0 4px; min-width:110px; }
	.site-header .live-chip{ padding:6px 10px; gap:6px; font-size:11px; }
	.site-header .live-chip .live-dot{ display:none; }
	.site-header .theme-switch{ margin-left:0; padding-left:6px; }
	.site-header .team-brand{ gap:10px; flex-shrink:0; }
}
@media (min-width:761px) and (max-width:880px){
	.site-header .ecg{ min-width:56px; }
	.site-header .live-chip{ flex-shrink:0; font-size:10.5px; padding:6px 8px; }
	.site-header .team-sub{ letter-spacing:.04em; font-size:10px; }
}

/* Téléphone : la courbe cardiaque passe sur sa propre ligne, entre le titre et la pastille. */
@media (max-width:760px){
	.site-header .ecg{ display:block; order:2; flex:0 0 100%; max-width:none; margin:0; height:34px; }
	.site-header .live-chip{ order:3; }
}
