/******************************************************************************
 * icones
 * https://thenounproject.com/
 * https://icons8.com/
 ******************************************************************************/

/******************************************************************************
 * box model
 ******************************************************************************/
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}

/******************************************************************************
 * fonts
 ******************************************************************************/
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/noto-serif-v6-latin-regular.eot');
  src: local('Noto Serif'), local('NotoSerif'), url('../fonts/noto-serif-v6-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/noto-serif-v6-latin-regular.woff2') format('woff2'), url('../fonts/noto-serif-v6-latin-regular.woff') format('woff'), url('../fonts/noto-serif-v6-latin-regular.ttf') format('truetype'), url('../fonts/noto-serif-v6-latin-regular.svg#NotoSerif') format('svg');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/lato-v14-latin-300.eot');
  src: local('Lato Light'), local('Lato-Light'), url('../fonts/lato-v14-latin-300.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v14-latin-300.woff2') format('woff2'), url('../fonts/lato-v14-latin-300.woff') format('woff'), url('../fonts/lato-v14-latin-300.ttf') format('truetype'), url('../fonts/lato-v14-latin-300.svg#Lato') format('svg');
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/lato-v14-latin-300italic.eot');
  src: local('Lato Light Italic'), local('Lato-LightItalic'), url('../fonts/lato-v14-latin-300italic.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v14-latin-300italic.woff2') format('woff2'), url('../fonts/lato-v14-latin-300italic.woff') format('woff'), url('../fonts/lato-v14-latin-300italic.ttf') format('truetype'), url('../fonts/lato-v14-latin-300italic.svg#Lato') format('svg');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lato-v14-latin-regular.eot');
  src: local('Lato Regular'), local('Lato-Regular'), url('../fonts/lato-v14-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v14-latin-regular.woff2') format('woff2'), url('../fonts/lato-v14-latin-regular.woff') format('woff'), url('../fonts/lato-v14-latin-regular.ttf') format('truetype'), url('../fonts/lato-v14-latin-regular.svg#Lato') format('svg');
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/lato-v14-latin-italic.eot');
  src: local('Lato Italic'), local('Lato-Italic'), url('../fonts/lato-v14-latin-italic.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v14-latin-italic.woff2') format('woff2'), url('../fonts/lato-v14-latin-italic.woff') format('woff'), url('../fonts/lato-v14-latin-italic.ttf') format('truetype'), url('../fonts/lato-v14-latin-italic.svg#Lato') format('svg');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/lato-v14-latin-700.eot');
  src: local('Lato Bold'), local('Lato-Bold'), url('../fonts/lato-v14-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v14-latin-700.woff2') format('woff2'), url('../fonts/lato-v14-latin-700.woff') format('woff'), url('../fonts/lato-v14-latin-700.ttf') format('truetype'), url('../fonts/lato-v14-latin-700.svg#Lato') format('svg');
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/lato-v14-latin-700italic.eot');
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url('../fonts/lato-v14-latin-700italic.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v14-latin-700italic.woff2') format('woff2'), url('../fonts/lato-v14-latin-700italic.woff') format('woff'), url('../fonts/lato-v14-latin-700italic.ttf') format('truetype'), url('../fonts/lato-v14-latin-700italic.svg#Lato') format('svg');
}

html,
.root {
  font-size: 16px;
}

body,
input,
button {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

input,
textarea {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: normal;
  letter-spacing: -0.05rem;
}

h1,
.h1 {
  text-align: center;
  font-size: 3.375rem;
  line-height: 4.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

h2,
.h2 {
  font-size: 2.25rem;
  line-height: 3rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

h3,
.h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

h4,
.h4 {
  text-decoration: underline;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

h5,
.h5 {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

p,
ul,
ol,
pre,
table,
blockquote,
form {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0;
  margin-bottom: 0;
}

/* Let's make sure all's aligned */
hr,
.hr {
  border: 1px solid;
  margin: -1px 0;
}

a,
b,
i,
strong,
em,
small,
code {
  /* line-height: 0; */
}

sub,
sup {
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/******************************************************************************
 * colors et lightmode / darkmode
 ******************************************************************************/
body {
  font-weight: 400;
  margin: 0;
  width: 100%;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5 {
  font-weight: 400;
}

/******************************************************************************
 * layout
 * layout-page
 * layout-nomenu
 * layout-dialog
 * layout-tpl
 * layout-php
 ******************************************************************************/

header {
  font-size: 24px;
  opacity: 0.85;
}

/**
 * header avec la nav
 */
@media screen and (min-width: 840px) {
  /* nav fixed left */
  header {
    position: fixed;
    width: 44px;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
  }
}

@media screen and (max-width: 840px) {
  /* nav fixed bottom */
  header {
    position: fixed;
    height: 44px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }
}

/**
 * footer
 */
footer {
  padding-top: 75px;
}

@media screen and (min-width: 840px) {
  /* nav fixed left */
  .layout-page #pageContent,
  .layout-page footer {
    padding-left: 44px;
  }
}

@media screen and (max-width: 840px) {
  /* nav fixed bottom */
  .layout1 footer {
    padding-bottom: 44px;
  }

  nav li {
    float: left;
  }
}

/******************************************************************************
 * logo
 ******************************************************************************/
a.logo {
  width: 20px;
}

/******************************************************************************
 * liens nav
 ******************************************************************************/
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  float: left;
  display: block;
}

nav li:last-child {
  float: right;
}

nav a {
  display: block;
  line-height: 44px;
  text-decoration: none;
  text-align: left;
}

nav a.logo {
  margin-right: 10px;
}

nav a.logo svg {
  display: inline-block;
  fill-rule: evenodd;
  stroke-width: 0;
  vertical-align: middle;
  height: 30px;
}

@media screen and (min-width: 840px) {
  /* nav fixed left */
  nav a {
    width: 44px;
    text-align: center;
  }
}

@media screen and (max-width: 840px) {
  /* nav fixed bottom */
  nav a {
    height: 44px;
    padding: 0 10px;
  }
}

.nav-default nav a,
.nav-fixed-top nav a {
  height: 44px;
  padding: 0 10px;
}

@media screen and (min-width: 840px) {
  /* nav fixed left */
  nav li:first-child a {
    margin-top: 10px;
    margin-left: 10px;
  }
}

@media screen and (max-width: 840px) {
  /* nav fixed bottom */
  nav li:last-child a {
    margin-right: 10px;
  }

  nav li:first-child a {
    margin-left: 10px;
  }
}

.nav-default nav li:first-child a,
.nav-fixed-top nav li:first-child a {
  margin-left: 10px;
}

.nav-default nav li:last-child a,
.nav-fixed-top nav li:last-child a {
  margin-right: 10px;
}

/******************************************************************************
 * bouton more
 ******************************************************************************/
.options {
  opacity: 0.85;
  border-radius: 22px;
  overflow: hidden;
  z-index: 99;

}

.options a {
  text-decoration: none;
}

.options ul {
  list-style: none;
  margin: 44px 0 22px 0;
  padding: 0;
  display: none;
  min-width: 220px;
}

.options-menu a {
  text-decoration: none;
  display: block;
  padding: 5px 20px;
  line-height: 44px;
}

.options ul a {
  display: block;
  padding: 5px 20px;
}

.nav-default .options {
  position: absolute;
  top: -30px;
  right: -10px;
}

.nav-fixed-top .options {
  position: fixed;
  top: 54px;
  right: 10px;
}

@media screen and (min-width: 840px) {
  /* nav fixed left */
  .options {
    position: fixed;
    top: 10px;
    right: 10px;
  }
}

@media screen and (max-width: 840px) {
  /* nav fixed bottom */
  .options {
    position: fixed;
    top: 10px;
    right: 10px;
  }
}

a.more {
  display: block;
  float: right;
  font-size: 24px;
  height: 44px;
  width: 44px;
  line-height: 44px;
  text-align: center;
  transition: transform 300ms;
}

.options a.active {
  transform: rotate(135deg);
}

.options-menu {
  margin: 0;
  list-style: none;
  padding: 0;
  top: 0;
  left: 0;
  width: 100%;
}

.options .options-menu li {
  padding: 0;
}

#pageContent {
  position: relative;
  margin: 40px 20px 0 20px;
}

.options .active a {
  text-decoration: none;
}

/******************************************************************************
 * tools
 ******************************************************************************/
.tools {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.tools li {
  display: inline-block;
  margin: 0 4px;
}
.tools li:first-child {
  margin-left: 0;
}

.tools li:last-child {
  margin-right: 0;
}

/******************************************************************************
 * dialog
 ******************************************************************************/
#dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow-y: scroll;
  display: none;
}

.layout-dialog #dialog {
  display: block;
}

#dialogContent {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

#dialogClose {
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  font-size: 24px;
  height: 44px;
  width: 44px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}

/******************************************************************************
 * boutons
 ******************************************************************************/
ul.boutons {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.boutons li {
  display: inline-block;
  padding: 0 3px;
}

/******************************************************************************
 * forms
 ******************************************************************************/
.field-combo {
  position: relative;
}

.field-combo input[type=text] {
/*
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1.2rem;
  width: 100%;
*/
  padding-right: 70px;
}

.field-combo .field-combo-search,
.field-combo .field-combo-tool {
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  height:100%;
  padding: 4px 7px;
  border-radius: 0 3px 3px 0;
  font-size: 1rem;
  line-height: 1.2rem;
  width: 40px;
  cursor: pointer;
}

.field-combo .field-combo-cancel {
  position: absolute;
  display: block;
  top: 0;
  right: 35px;
  padding: 5px 7px;
  font-size: 1rem;
  line-height: 1.2rem;
  width: 30px;
  cursor: pointer;
}

.field {
  margin-top: 1em;
  margin-bottom: 1em;
}

label {
  display: block;
}

input[type=text],
input[type=password],
input[type=submit],
select,
textarea {
  vertical-align: top;
  padding: 5px 7px;
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1.2rem;
  width: 100%;
  outline: none;
}

textarea {
  height: 89px;
}

input[type=text].auto,
input[type=password].auto,
input[type=submit].auto,
select.auto,
textarea.auto {
  width: auto;
}

input[type=text].medium,
input[type=password].medium,
input[type=submit].medium,
select.medium,
textarea.medium {
  max-width: 480px;
}

input[type=text].small,
input[type=password].small,
input[type=submit].small,
select.small,
textarea.small {
  max-width: 240px;
}

.hint {
  display: block;
  font-style: italic;
}

.error-message {
  padding: 15px;
  list-style: none;
}

.error-hint {
  display: block;
  font-style: italic;
}

input[type=submit],
.button-main,
.button-secondary,
.button-cancel {
  display: block;
  padding: 5px 25px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
}

input[type=submit].button-cancel,
.button-cancel {
  border: none;
  background: none;
  text-decoration: underline;
}

ul.values {
    margin:0;
    padding-left:15px;
}
ul.select {
    margin:0;
    padding-left:15px;
}
.radios {
    display: inline-block;
}
/******************************************************************************
 * confirmation
 ******************************************************************************/
.pagination {
  margin-bottom: 1rem;
  line-height: 24px;
}

.pagination ul {
  padding: 0;
  list-style: none;
  display: inline;
}

.pagination li {
  display: inline-block;
  padding-right: 0;
}

.pagination ul li a {
  display: inline-block;
  line-height: 24px;
  height: 24px;
  padding: 0 5px;
  margin: 0 2px;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
}

.pagination li:first-child a {
  padding-left: 0;
  margin-left: 0;
  border: none;
}

.pagination li:last-child a {
  padding-right: 0;
  margin-right: 0;
  border: none;
}

.pagination a.active {
  border-radius: 3px;
}

.pagination form {
  display: inline;
  margin: 0;
  float: right;
}

.pagination select {
  padding: 0 3px;
  height: 26px;
  vertical-align: top;
}

/******************************************************************************
 * confirmation
 ******************************************************************************/
.confirmation {
  text-align: center;
}

/******************************************************************************
 * illustration
 ******************************************************************************/
.illustration {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/******************************************************************************
 * tables responsive
 ******************************************************************************/
table.entries th a {
  text-decoration: none;
}

@media screen and (max-width: 840px) {
  table.entries,
  table.entries thead,
  table.entries tbody,
  table.entries tr,
  table.entries th,
  table.entries td {
    display: block;
  }

  table.entries {
    margin: 2rem -20px;
    border-collapse: collapse;
  }

  table.entries thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  table.entries tr {
    padding: 5px 20px;
  }

  table.entries td:last-child {
    border: none;
  }

  table.entries td::before {
    position: relative;
    white-space: nowrap;
    font-weight: bold;
  }
}

@media screen and (min-width: 840px) {
  table.entries {
    margin-top: 2rem;
    border-collapse: collapse;
    width: 100%;
  }

  table.entries th,
  table.entries td {
    padding: 2px 10px;
    text-align: left;
    vertical-align: middle;
  }

  table.entries th:last-child,
  table.entries td:last-child {
    width: 130px;
    text-align: center;
  }
}

table.entries i {
  display: inline-block;
  padding: 0 3px;
}

/******************************************************************************
 * profile
 ******************************************************************************/
.profile {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: block;
}
/******************************************************************************
 * project
 ******************************************************************************/
.imageprojet {
  width: 40px;
  height: 40px;
}
.imageprojet img {
  border: 2px solid #fff;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  /*filter: grayscale(100%);*/
}

/******************************************************************************
 * chenille
 ******************************************************************************/
.chenille {
  position: relative;
}
.chenille img {
  background: #ddd;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  float: right;
  margin:0 0 0 -15px;
  border: 2px solid #fff;
}

/******************************************************************************
 * fiche (delete)
 ******************************************************************************/
.fiche {
  margin: 1rem 0;
  border-collapse: collapse;
  width: 100%;
}

.fiche th {
    width: 200px;
    text-align: left;
    padding: 2px 7px;
    vertical-align: top;
}

.fiche td {
  padding: 2px 7px;
    vertical-align: top;
}

/******************************************************************************
 * affichage
 ******************************************************************************/
.affichage {
  /* max-width:480px; */
}

.affichage-fields {
  padding: 0;
  margin: 0;
  list-style: none;
  margin-bottom: 1rem;
}

.affichage-fields li {
  line-height: 2rem;
  margin-bottom: 5px;
}

.affichage-fields .handle {
  line-height: 2rem;
  text-decoration: none;
  padding: 0 10px;
  margin-right: 5px;
  cursor: move;
}

.affichage-fields .del {
  float: right;
  line-height: 2rem;
  text-decoration: none;
  padding: 0 10px;
}
/******************************************************************************
 * filters
 ******************************************************************************/
.filter {
    opacity: 0;
    transition: opacity 0.6s ease;
}

th:hover .filter {
    opacity: 1;
}

.filter-active {
    opacity: 1;
}

.entries {
  position: relative;

}
.entries th {
  position: sticky;
  top: 0;
  background:#fff;
  box-shadow: 0 1px 0 0 #ccc;
}

/*!
// CSS only Responsive Tables
// http://dbushell.com/2016/03/04/css-only-responsive-tables/
// by David Bushell
*/

.rtable {
  /*!
  // IE needs inline-block to position scrolling shadows otherwise use:
  // display: block;
  // max-width: min-content;
  */

  display: inline-block;
  vertical-align: top;
  max-width: 100%;

  /*
  display: block;
  max-width: min-content;
  */

  overflow-x: auto;

  // optional - looks better for small cell values
  white-space: nowrap;

  border-collapse: collapse;
  border-spacing: 0;
}

.rtable{
  // optional - enable iOS momentum scrolling
  -webkit-overflow-scrolling: touch;

  /*
  // scrolling shadows
  background: radial-gradient(left, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 0 center,
              radial-gradient(right, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 100% center;
  background-size: 10px 100%, 10px 100%;
  background-attachment: scroll, scroll;
  background-repeat: no-repeat;
  */
}

/*
// change these gradients from white to your background colour if it differs
// gradient on the first cells to hide the left shadow
.rtable td:first-child {
  background-image: linear-gradient(to right, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
  background-repeat: no-repeat;
  background-size: 20px 100%;
}

// gradient on the last cells to hide the right shadow
.rtable td:last-child {
  background-image: linear-gradient(to left, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
  background-repeat: no-repeat;
  background-position: 100% 0;
  background-size: 20px 100%;
}

.rtable th {
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  background: #f2f0e6;
}

.rtable th,
.rtable td {
  padding: 6px 12px;
  border: 1px solid #d9d7ce;
}
*/

/******************************************************************************
 * calendar everyday
 ******************************************************************************/
table.ce {
  border-collapse: collapse;
}

table.ce td,
table.ce th {
  color: #ccc;
  font-weight: normal;
  width: 26px;
  height: 26px;
  text-align: center;
  padding: 0;
  font-size: 14px;
  border: 0.5px solid #666;
  color: #222;
}

table.ce .day {
  display: block;
  margin: 0 auto;
  background: #f6f6f6;
  border: 1px solid #f6f6f6;
  width: 16px;
  height: 16px;
  border-radius: 8px;
}

table.ce .day1 {
  background: #f7b92b !important;
  border: 1px solid #f7b92b;
}

table.ce .day2 {
  background: #932791;
  border: 1px solid #932791;
}

table.ce .day3 {
  background: #928f1a;
  border: 1px solid #928f1a;
}

table.ce .today {
  background: #f00;
  border: 1px solid #f00;
}

table.ce .middle {
  width: 26px;
  height: 16px;
  background: #f7b92b;
  background: #932791;
  background: #f6f6f6;
  background: #928f1a;
}

table.ce .start {
  position: relative;
  border-radius: 8px 0 0 8px;
  margin-left: 5px;
  width: 21px;
  height: 16px;
  background: #f6f6f6;
  background: #928f1a;
}

table.ce .end {
  position: relative;
  border-radius: 0 8px 8px 0;
  margin-right: 5px;
  width: 21px;
  height: 16px;
  background: #f6f6f6;
  background: #928f1a;
}

table.ce-horizontal tbody th {
  width: auto;
  padding: 0 10px;
  text-align: right;
  text-transform: capitalize;
}

table.ce td,
table.ce th {
  color: #222;
  border: 0.5px solid #666;
}

table.ce .day {
  width: 26px;
  height: 26px;
  border-radius: 0;
}

table.ce .start {
  width: 26px;
  height: 26px;
  margin-left: 0;
  border-radius: 0;
}

table.ce .middle {
  height: 26px;
}

table.ce .end {
  width: 26px;
  height: 26px;
  margin-right: 0;
  border-radius: 0;
}

/******************************************************************************
 * pastilles
 ******************************************************************************/
ul.pastilles {
    margin:1em auto;
    list-style:none;
    padding:0;
    text-align:center;
}
ul.pastilles li {
    display:inline;
}
ul.pastilles a {
    display:inline-block;
    line-height:36px;
    width:36px;
    text-align:center;
    background:#eee;
    border-radius:50%;
    text-decoration:none;
}
ul.pastilles a.active {
    background:#999;
    color:#fff;
}

.browse {
    display: inline-block;
}