[data-theme="light"] {
   --color-bg: #ffffff;
   --color-text: #000000;
   --scrollbar-bg: #fafafa;
}

[data-theme="dark"] {
   --color-bg: #000000;
   --color-text: #ffffff;
   --scrollbar-bg: #424242;
}

* {
	margin: 0;
	padding: 0;
	accent-color: #ff4e70;
}

html {
	font-size: 62.5%;    
	height: 100%;
	scrollbar-color: #ff4e70 var(--scrollbar-bg);
}

body {
	/* La taille de base sera de 10px avec les valeurs par défaut de police du navigateur */
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.4rem; /* 16px * 62.5% = 10px */
	color: var(--color-text);
	height: 100%;
	/*background-color: #E6EBF4;*/
	margin: 0;
	background-color: var(--color-bg);
	background-image: url(/images/wave.svg);
	background-repeat: no-repeat;
	background-position: 100% 100%;
	background-size: 100%;
	overflow: hidden; /* utile pour débordement infobulles */
}

[data-theme="dark"] body {
	background-image: none;
}

::selection {
	background: #ff4e70;
	color: #FFF;
}

a {
	color: inherit;
}

input {
	font-family: inherit;
}

select {
	font-family: inherit;
	background-color: #FFF;
	border: 1px solid #8F8F9D;
	border-radius: 5px;
	padding:  3px 8px;
}

select:hover {
	border-color: #676774;
}

select:focus {
	border-color: #ff4e70;
	outline: auto;
}

.text-center {
	text-align: center;
}

div#div_ident {
  position: absolute ;
  width: 400px;
  left: 50%;
  top: 40%;
  margin-left: -150px;
  margin-top: -100px;
  background-color: #FFF;
  padding: 20px 30px;
  text-align: left;
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);
  border-radius: 4px;
}

div#div_ident button {
	color: #FFF;
	padding: 0.8em 1em;
	margin: 8px auto;
	background-color: #ff4e70;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

div#div_ident .logo {
	width: 200px;
}

div#div_message {
  color: #c40d19;
  font-weight: bold;
  text-align: center;
}

header {
	color: #6f2231;
	border-bottom: 3px solid #bb3d56;
	width: 100%;
	position: sticky;
	left: 0;
}

ul#ul_header_menu {
	list-style-type: none;
	margin: 0;
}

ul#ul_header_menu li {
	display: inline-block;
	color: #bb3d56;
	padding: 6px 10px;
	line-height: 1em;
}

ul#ul_header_menu li.sel {
	color: #FFF;
	background-color: #bb3d56;
}

ul#ul_header_menu li a {
	color: inherit;
	font-weight: bold;
	font-size: 1.5em;	
	text-decoration: none;
}

div#page {
	width: 100%;
	height: 100vh;
	overflow: auto;
	scrollbar-width: thin;
}

div#page:fullscreen {
  background-color: var(--color-bg);
}

div#page:fullscreen header {
  display: none;
}

div#div_chargement {
	display: none;
	position: absolute;
	z-index: 1000; /* Over #div_overlay */
	top: 45%;
	left: 50%;
	width: 500px;
	margin-left: -250px;
	margin-top: -100px;
	text-align: center;
	user-select: none;
}

div#div_chargement img {
	pointer-events: none; /* Prevent drag */
}

div#div_overlay {
	display: none;
}

table.table {
  width: 100%;
  margin: auto;
}

table.table th {
  color:#FFF;
  background-color: #657075;
  position: sticky;
  top: 0;
  z-index: 1;
}

table.table-striped tr:nth-child(even) {
	background: rgba(165, 180, 189, 0.25);
}

table.table-striped tr:nth-child(odd) {
	background: var(--color-bg);
}

table.table-hover tr:hover {
  background-color: rgba(255, 78, 112, 0.3);
}

table.table tr.danger,
table.table td.danger {
  background-color: red;
}

table.table-assignments {
	white-space: nowrap;
	background-color: rgba(165, 180, 189, 0.25);
}

table.table-assignments input:disabled {
	opacity: 0.3;
}

ul#ul_step{
  display: flex;
  list-style-type:none ;
  margin: 0 0 2px;
  padding: 0px;
}

ul#ul_step li {
  display: grid;
  width: 7%;
  height: 3em;
  margin:0px 3px 0px 0px;
  padding: 2px;
  border: 1px solid rgba(0,0,0,.2);
  text-align: center;
  font-size: 0.6em;
  hyphens: auto;
  line-height: 1em;
  border-radius: 8px;
  align-items: center;
  align-self: center;
  overflow: hidden;
}

ul#ul_step li.selected {
  font-size: 0.8em;
  color: #FFF;
  background-color: #ff4e70;
  font-weight: bold;
}

.ui-widget-content {
  color: var(--color-text);
  background-color: var(--color-bg);
}

.ui-widget-content a {
	color: #ff4e70;
}

.ui-widget-overlay {
	background-color: var(--color-bg);
	opacity: 0.6;
	z-index: 999;
}

.avatar {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background-color: #AAA;
    border-radius: 50%;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    margin: 0 6px;
    overflow: hidden;
}

.avatar img {
  border-radius: inherit;
  display: inline-flex;
  height: inherit;
  width: inherit;
}

.avatar.big {
    width: 84px;
    height: 84px;
    line-height: 84px;
    font-size: 30pt;
}

.avatar.small {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 9pt;
    margin: 0;
}

.deal-reference:before {
  content: "#";
  font-weight: normal;
  font-size: 80%;
}

.theme-switcher {
  --theme-switcher-radius: 40px;
  --theme-switcher-padding: 2px;
  --theme-switcher-outline-color: light-dark(#777, #bbb);
  --theme-switcher-outline-size: 2px;
  --theme-switcher-background: light-dark(#333, #777);
  --theme-switcher-icon-size: 12px;
  --theme-switcher-icon-color: #fff;
  --theme-switcher-icon-background: light-dark(#777, #333);
  --theme-switcher-transition: 0.25s;

  width: 24px;
  height: 24px;
  padding: var(--theme-switcher-padding);
  border: 0;
  border-radius: var(--theme-switcher-radius);
  background-color: var(--theme-switcher-background);
  line-height: 0;
  vertical-align: middle;
  cursor: pointer;
  
  &::before {
    content: "";
    flex: 0 0 0;
    transition: var(--theme-switcher-transition) flex-grow;
    will-change: flex-grow;
  }

  & * {
    pointer-events: none;
  }

  & > .theme-icon {
    display: block;
    width: 12px;
    height: 12px;
    padding: 4px;
    border-radius: 50%;
    color: var(--theme-switcher-icon-color);
    background-color: var(--theme-switcher-icon-background);
    rotate: 0deg;
    transition: var(--theme-switcher-transition) rotate;
  }
  

  & [class^="theme-icon-"] {
    width: var(--theme-switcher-icon-size);
    height: var(--theme-switcher-icon-size);
  }
  
  &:focus-visible {
    outline-color: currentcolor;
    outline-offset: 2px;
  }
  
  &[aria-pressed="false"] {

    & .theme-icon-dark {
      display: none;
    }
  }

  &[aria-pressed="true"] {
    
    & .theme-icon-light {
      display: none;
    }
    
    & > .theme-icon {
      /*rotate: 240deg;*/
    }

    &::before {
      flex: 1 0 0;
   }
  }

}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}