/*
	html/css/atm_2026.css
	Styles du widget "Time Machine" (vinyle flottant + popover).
	Charge globalement via home.htm, a cote de atm_ie.css/atm_netscape.css.
	Le chemin d'image /gfx/atm/ correspond a la constante $tdirectory['gfx']
	de scripts/lib/data.php -- fixe, donc en dur ici (fichier .css statique,
	pas de PHP).
*/

#tm-sticker {
	/* Fixe par rapport a la fenetre (pas au tableau) : reste visible a
	   l'ecran pendant le scroll, a une position constante sur toutes les
	   pages, plutot que de defiler avec le contenu de la page comme le
	   ferait un position:absolute. */
	position: fixed;
	right: 12px;
	bottom: 12px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 1000;
	transition: transform .15s ease;
	filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}
#tm-sticker:hover { transform: scale(1.07); }
#tm-sticker svg { width: 56px; height: 56px; display: block; }
#tm-disc-group { transform-origin: 24px 24px; }

@keyframes tmSpinBack {
	from { transform: rotate(0deg); }
	to   { transform: rotate(-1080deg); }
}
#tm-disc-group.spin-back { animation: tmSpinBack 2200ms cubic-bezier(.08,.75,.2,1) 1; }

#tm-popover {
	/* Meme ancrage que #tm-sticker : fixe par rapport a la fenetre. */
	position: fixed;
	right: 12px;
	bottom: 68px; /* juste au-dessus du sticker (12px bas + 56px haut) */
	width: fit-content;
	min-width: 240px;
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(0,0,0,0.35);
	z-index: 1001;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	/* Fondu + leger zoom depuis le coin bas-droit (celui du vinyle), pas
	   depuis le centre -- transform-origin par defaut serait "50% 50%",
	   d'ou l'effet de zoom centre si on ne le precise pas.
	   "visibility" est delayee de la meme duree que le reste : sans ca,
	   elle bascule sur "hidden" instantanement a la fermeture et rend le
	   fondu de sortie invisible avant meme qu'il ait pu se jouer. */
	opacity: 0;
	transform: scale(0.85);
	transform-origin: bottom right;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	visibility: hidden;
	pointer-events: none;
}
#tm-popover.open {
	opacity: 1;
	transform: scale(1);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
	visibility: visible;
	pointer-events: auto;
}
.tm-white-frame { padding: 8px; }
.tm-pop-title {
	background: #8aaeae;
	height: 20px;
	line-height: 20px;
	font-size: 11px;
	color: #ffffff;
	white-space: nowrap;
}
.tm-pop-title img { vertical-align: middle; margin: 0 2px 0 4px; }
.tm-dots {
	height: 1px;
	background-image: url("/gfx/atm/line/menu_line_1.gif");
	background-repeat: repeat-x;
}
.tm-pop-body { background: #efefef; padding: 6px 8px; }
.tm-grid {
	display: grid;
	grid-template-columns: 1fr 33px;
	align-items: center;
	column-gap: 4px;
	row-gap: 8px;
}
.tm-grid .tm-content { font-size: 11px; }
.tm-grid select { font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; }
.tm-select-pair { display: flex; gap: 3px; }
.tm-select-pair select { width: 50%; }
.tm-grid img { cursor: pointer; border: none; justify-self: end; }
.tm-propose-row { display: flex; align-items: center; gap: 5px; }
.tm-refresh { cursor: pointer; display: inline-flex; color: #6f8f8f; flex-shrink: 0; }
.tm-refresh:hover { color: #4a6666; }
.tm-refresh svg { display: block; }
