@keyframes plume-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

:root {
	--plume-gray: hsl(0, 00%, 68%);
	--plume-select : var(--blink);
	--plume-slide: #0003;
	--plume-slide-back: #e6e6e6;
	--plume-drawer-back: transparent;
	--plume-strip : var(--cselect);
	--plume-strip-back: var(--plume-gray);
	--plume-slide-shadow: inset 0px 1px 3px var(--plume-slide), inset 0px -1px 3px #fff;
	--plume-strip-shadow: -1px -1px 0 1px #333c, 1px 1px 0 1px #fffc;
	--plume-background: var(--floor);
	--plume-cal-ground: #f2f0f0;
	--plume-cal-title: #ccc;
	--plume-cal-border: #aaa;
	--plume-cal-text: #000;
	--plume-cal-off: hsl(0, 0%, 60%);
	--plume-cal-selected: #c8c8c8;
	--plume-cal-link: #0f0;
	--plume-shadow : var(--ombre);
	--plume-item : var(--item);
	--plume-top: var(--z-modal);
	--plume-open: roundness;
	--plume-time: .9s;
}
@media (prefers-color-scheme: dark) {
:root {
	--plume-slide-back: linear-gradient(0deg, var(--plume-gray), #000, var(--plume-gray));
	--plume-slide-shadow: none;
	--plume-strip-back: linear-gradient(0deg, var(--plume-gray), #000, var(--plume-gray));
	--plume-strip-shadow: none;
	--plume-cal-ground: #555;
	--plume-cal-title: #222;
	--plume-cal-border: #333;
	--plume-cal-text: #aaa;
	--plume-cal-off: #333;
	--plume-cal-selected: #dcdcdc;
	--plume-cal-link: #ff0;
}
}

.drawer_top {
	background-color: var(--plume-drawer-back);
	padding-top: 1px;
}

.drawer_bottom {
	position: relative;
	transition: transform 0.25s ease-in;
}

input[type^=slide],
input[type=strip],
select[type=strip],
input[type=segmented],
select[type=segmented] {
	position: absolute;
	opacity: 0;
	width: 0;
	padding: 0;
	border: 0;
	-webkit-appearance: none;
}
input[type=calendar] {
	width: 11ex;
	text-align: center;
}

ol[plume=segmented] a:any-link {
	color: #39404d;
	font-size: 62.5%;
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none;
}

ol[plume=strip] {
	display: inline-block;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--plume-strip-back);
	border-radius: 50px;
	box-shadow: var(--plume-strip-shadow);
	margin: 6px 0;
	cursor: pointer;
}
ol[plume=strip] li {
	display: inline-block;
	position: relative;
	top: -1px;
	padding: 4px 10px;
	text-shadow: -2px -1px #000;
	text-shadow: 1px 1px 3px #333;
	border: 1px outset transparent;
	border-radius: 50px;
	letter-spacing: 1px;
	color: #eee;
}
/* décalage inutile dans com
select + ol[plume=strip] li {
	top: -6px;
}
 */

ol[plume=strip] li:hover {
	border-color: hsl(var(--plume-strip), 45%, 63%);
	background: linear-gradient(170deg, #fff, #888);
	text-shadow: none;
	color: #000;
}
ol[plume=strip] li.selected {
	border-color: hsl(var(--plume-strip), 45%, 63%);
	background: linear-gradient(180deg, hsl(var(--plume-strip), 100%, 100%), hsl(var(--plume-strip), 100%, 90%) 10%, hsl(var(--plume-strip), 95%, 40%) 50%, hsl(var(--plume-strip), 95%, 20%));
	text-shadow: 1px 1px 3px #333;
	color: hsl(var(--plume-strip), 100%, 66%);
}

ol[plume=segmented] {
	display: inline;
	margin: 0;
	padding: 0;
	width: 100%;
	list-style: none;
}
ol[plume=segmented] li {
	display: inline-block;
	margin: 0;
	padding: 6px;
	min-width: 100px;
	background-image: linear-gradient(#fff 0%, #e5e5e5 50%, #d7d7d7 51%, #ededed 100%);
	border: 1px solid rgb(210, 210, 210);
	text-align: center;
	cursor: pointer;
}
ol[plume=segmented] li.first {
	border-radius: 16px 0 0 16px;
	padding-left: 12px;
}
ol[plume=segmented] li.last {
	border-radius: 0 16px 16px 0;
	padding-right: 12px;
}
ol[plume=segmented] li:not(.selected):hover {
	color: #000;
	box-shadow: inset 0px 0px 16px 5px #d7d7d7;
	background: #fff;
}
ol[plume=segmented] li.selected {
	box-shadow: inset -2px -3px 5px #fff, inset 2px 3px 5px #0008;
}

div[plume^=slide],
div[plume^=slide] > div:last-child {
	display: inline-block;
	height: 20px;
	box-shadow: var(--plume-slide-shadow);
	border-radius: 10px;
}
div[plume^=slide] {
	position: relative;
	background: var(--plume-slide-back);
}
div[plume^=slide] > div:last-child {
	position: absolute;
	background: var(--plume-select);
}
div[plume^=slide] > div:last-child > div {
	position: absolute;
	top: -10px;
	right: 0;
	width: 40px;
	height: 40px;
	box-shadow: 0 0 8px var(--plume-slide);
	border-radius: 24px;
	border: 1px solid #ccc;
	background-color: #fff;
	background-image: linear-gradient(#fff0, var(--plume-slide));
	cursor: pointer;
}
div[plume^=slide] > div:last-child > div::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	background-image: linear-gradient(var(--plume-slide), #fff0);
	border-radius: 9px;
}
div[plume=slides] > div:last-child > div:first-child {
	left: 0;
	border-radius: 24px 0 0 24px;
	width: 20px;
}
div[plume=slides] > div:last-child > div:first-child::before {
	border-radius: 9px 0 0 9px;
	width: 9px;
	left: 9px;
}
div[plume=slides] > div:last-child > div:last-child {
	border-radius: 0 24px 24px 0;
	width: 20px;
}
div[plume=slides] > div:last-child > div:last-child::before {
	border-radius: 0 9px 9px 0;
	width: 9px;
	right: 9px;
}

div[plume^=slide] > div:first-child {
	display:grid;
	grid-template-columns: 10px;
	position: absolute;
	top: 20px;
	left: 20px;
	width: 100%;
}
div[plume^=slide] > div:first-child > div {
	position: relative;
	height: 4px;
	color: hsl(0, 0%, 70%);
	border-left: 1px solid hsl(0, 0%, 70%);
}
div[plume^=slide] > div:first-child > div > div {
	position: relative;
	top: 4px;
	right: 13px;
	text-align: center;
}

#plume_calendar {
	position: absolute;
	display: none;
	flex-direction: row;
	width: 364px;
	border: 1px solid gray;
	border-top: 12px solid var(--plume-cal-title);
	color: var(--plume-cal-text);
	box-shadow: 0px 4px 18px 6px var(--plume-cal-title);
	z-index: var(--plume-top);
}
#plume_calendar.open {
	display: flex;
	animation: var(--plume-open) var(--plume-time) ease-in-out none;
}
#plume_calendar,
#plume_calendar select {
	background-color: var(--plume-cal-ground);
	font-size: 12px;
}
#plume_calendar select {
	border: none;
	border-left: 1px solid var(--plume-cal-border);
}
/* #plume_calendar select, */
#plume_calendar ol {
	border-right: 1px solid #aaa;
}
#plume_calendar select option {
	padding: 2px 4px;
}
#plume_calendar select option:hover,
#plume_calendar li:hover {
	background-color: var(--plume-cal-link) ! important;
}
#plume_calendar ul {
	display: grid;
	grid-template-columns: repeat(3, 36px);
	margin: auto;
	list-style: none;
	padding: 0;
}
#plume_calendar ul li {
	margin: 4px 0;
}
#plume_calendar li {
	height: 12px;
	line-height: 12px;
	padding: 4px 0;
	text-align: center;
	cursor: pointer;
}
#plume_calendar li.link {
	background: radial-gradient(var(--plume-cal-link), transparent 80%);
	color: black;
	border-radius: 16px;
}
#plume_calendar option:checked,
#plume_calendar li.selected {
	background: var(--plume-cal-selected);
	color: black;
}
#plume_calendar li.off {
	color: var(--plume-cal-off);
}
#plume_calendar ol {
	display: grid;
	grid-template-columns: repeat(7, 30px);
	list-style: none;
	padding: 0;
	margin: 0;
	border-right: 1px solid var(--plume-cal-border);
}
#plume_calendar ul li:first-child {
	grid-column: 1/4;
}
#plume_calendar ul li:first-child > div {
	display: inline-block;
	position: relative;
	top: -4px;
	font-family: sans-serif;
	letter-spacing: -1px;
}
#plume_calendar ul li:first-child > div > div:first-child {
	width: 21px;
	height: 7px;
	border: 1px solid #ba7a79;
	background: #ac5e5c;
}
#plume_calendar ul li:first-child > div > div:first-child div:first-child {
	position: absolute;
	top: -1px;
	left: 5px;
	width: 0;
	height: 2px;
	border: 1px inset #f0ebe9;
}
#plume_calendar ul li:first-child > div > div:first-child span {
	position: relative;
	top: -4px;
	left: -3px;
	font-size: 6px;
	letter-spacing: 1px;
	color: #f5f5f5;
}
#plume_calendar ul li:first-child > div > div:first-child div:last-child {
	position: absolute;
	top: -1px;
	right: 5px;
	width: 0;
	height: 3px;
	border: 1px inset #f0ebe9;
}
#plume_calendar ul li:first-child > div > div:last-child {
	width: 23px;
	height: 14px;
	background: #dcdcdc;
	text-align: center;
}
#plume_calendar ul li:first-child > div > div:last-child span {
	font-size: 14px;
	color: #555;
}
#plume_calendar ul li:first-child:hover {
	background-color: inherit;
	border-radius: 0;
}
#plume_calendar .select {
	background-color: -internal-inactive-list-box-selection !important;
	color: -internal-inactive-list-box-selection-text !important;
}
#plume_calendar option:checked {
	-webkit-appearance: none;
	background-color: orange;
}

#plume_modal {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: var(--plume-top);
}
#plume_modal > div {
	display: inline-block;
	position: absolute;
	transition: transform 0.25s ease-in;	/* optionel */
	top: 0;
	left: 0;
	min-width: 20%;
	padding: 16px 20px;
	border-radius: 6px;
	background-color: var(--plume-background);
	box-shadow: 3px 4px 16px var(--plume-shadow);
	border: 1px solid var(--plume-shadow);
	line-height: 1.4;
}
#plume_modal div.buttons {
	padding-top: 16px;
	text-align: right;
}
#plume_modal div.buttons > * {
	display: inline-block;
	margin-left: 6px;
}
#plume_modal div.buttons > button:last-child {
	font-weight: bolder;
}

#plume_menu {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: var(--plume-top);
}
#plume_menu ul.open {
	display: block;
	animation: var(--plume-open) var(--plume-time) ease-in-out none;
}
#plume_menu ul {
	display: none;
	position: absolute;
	background-color: var(--plume-background);
	margin: 0;
	padding: 4px 0;
	border-radius: 6px;
	max-height: 500px;
	overflow: auto;
	box-shadow: 3px 4px 16px var(--plume-shadow);
	list-style: none;
}
#plume_menu li {
	padding: 4px 30px 4px 24px;
	transition: 0.6s;
	cursor: pointer;
}
#plume_menu li.check::before {
	position: absolute;
	left: 6px;
	font-size: 18px;
	content: '✓';
}
#plume_menu li.select {
	background-color: var(--plume-item);
}
#plume_menu img {
	position: relative;
	top: 2px;
	width: 24px;
	margin-right: 4px;
}
#plume_menu b {
	background-color: yellow;
}

