html {
    height: 100%;
}
body {
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    position: relative;
    min-height: 100%;
}

h1,h2,h3,h4 {
    font-family: 'Roboto', sans-serif;
}

a:link, a:visited, a:hover, a:active {
    color: #721C58;
    text-decoration: none;
}

.checkbox {
    accent-color: #721C58;
}

/* HEADER */

.page-header {
    background-image: url(../img/header.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 0;
    margin-bottom: 50px;
    padding: 20px 20px 20px 40px;
    display: flex;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
}

.page-header h1,
.page-header h1 a,
.page-header h1 a:visited,
.page-header h1 a:active {
    color: #ffffff;
    font-size: 36pt;
    text-decoration: none;
    font-variant: small-caps;
}

a.header, 
a.header:link,
a.header:visited,
a.header:hover,
a.header:active {
    color: #ffffff;
}

/* NAVIGATION BAR */

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    text-align: center;
  }
  nav ul li {
    display: inline-block;
  }
  nav ul li a {
    display: block;
    padding: 7px;
    padding-top: 15px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 10px;
  }
  nav ul li a,
  nav ul li a:after,
  nav ul li a:before {
    transition: all .5s;
  }
  nav ul li a:hover {
    color: #fff;
    text-decoration: none;
  }
  
  .stroke ul li a, .stroke ul li form{
    position: relative;
  }
  .stroke ul li a:after, .stroke ul li form:after{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0%;
    content: '.';
    color: transparent;
    background: #fff;
    height: 1px;
  }
  .stroke ul li a:hover:after, .stroke ul li form:hover:after {
    width: 100%;
  }


/* INDEX PAGE */
.index-disclaimer {
    background-color: #1D1D1B;
    margin-bottom: 40px;
}
.disclaimer-content {
    width: 1140px;
    margin: 0 auto;
    padding: 15px;
    color: #fff;
}
.index-footer {
    background-color: #1D1D1B;
    width: 100%;
    position: absolute;
    right: 0;
    bottom: 0;
}
.footer-content {
    width: 1140px;
    margin: 0 auto;
    padding: 15px;
    color: #c6c6c6;
    font-size: 12px;
}

.index-container {
    width: 1140px;
    /*padding-right: 15px;
    padding-left: 15px;*/
    margin-right: auto;
    margin-left: auto;
}

.index-valign {
    position: absolute;
    /*top: 25%;*/
}
.index-main {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1140px;
    margin-bottom: 40px;
}
.index-main::before {
    position: absolute;
    content: url(../img/decor-red.svg);
    top: 17%;
    left: -9%;
    z-index: -1;
  }
.index-main::after {
    position: absolute;
    content: url(../img/decor-bleu.svg);
    bottom: 17%;
    right: -9%;
    z-index: -1;
  }
.index-item {
    width: 25%;
    float: left;
    margin: 0 5px;
    box-shadow: 2px 11px 7px rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    padding: 0px 35px;
    background-color: white;
    position: relative;
    z-index: 0;
}
.index-img {
    margin: 20px 0;
    text-align: center;
}
h2.index-title {
    margin: 20px auto 40px auto;
    position: relative;
    width: max-content;
    text-align: center;
}

.index-button a {    
    outline: none;
    display: inline-block;
    padding: 10px 20px;
    margin: 5px auto;
    text-align: center;
    width: 150px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid #721C58;
    color: #721C58;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s ease;
}
.index-button:hover a {
    color: #fff;
    background: #721C58;
}


/* QUERY FORM */

.form-content {
    width: 600px;
    height: auto;
}
.form-title {
    font-size: 1.2em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 2px solid #721C58;
    margin-top: 50px;
}
.form-content table {
    width: 100%;
}
.forms-label {
    width: 150px;
    padding-right: 20px;
    text-align: right;
}
.form-more-title {
    cursor: pointer;
    margin-top: 10px;
    color: #721C58;
    width: 120px;
    padding-left: 1px;
    margin-bottom: 10px;
}
.form-more-title:after {
    display: inline-block;
    box-sizing: border-box;
    content: " ";
    border-top: 5px solid transparent;
    border-left: 10px solid #721C58;
    border-bottom: 5px solid transparent;
    border-right: 0px solid transparent;
}
.form-more-title-clicked {
    cursor: pointer;
    margin-top: 10px;
    color: #721C58;
    width: 120px;
    padding-left: 1px;
    margin-bottom: 10px;
}
.form-more-title-clicked:after {
    display: inline-block;
    box-sizing: border-box;
    content: "";
    border-top: 10px solid #721C58;
    border-left: 5px solid transparent;
    border-bottom: 0px solid transparent;
    border-right: 5px solid transparent;
}

.selection {
    width: 300px;
    display: inline-block;
}
.select2-container {
    width: 300px !important;
}
table tr td select {
    width: 300px;
}

.field-error {
    color: #981940; 
    padding-left: 10px;
}

.help {
    color: #721C58;/*#828282;*/
    font-size: 10pt;
}

.forms-error {
    background-color: #98193f11;
    /*border: solid 1px #981940;*/
    color: #981940;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.sub-button {
    width: 100px;
}

/* RESULT TABLES */

.result th, .result2 th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    background-color: #721C58;
}
.result tr, .result2 tr {
    border-bottom: 1px #721C58 solid;
    border-collapse: collapse;
    &:hover {
        background-color: #f4f4f4;
    }
}
.result td {
    padding: 0px 15px;
}
.result table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}
.tbl-content {
    max-height:550px;
    overflow-x:auto;
    margin-top: 0px;
    border: 2px #721C58 solid;
}
.tbl-description { 
    font-size: 14px;
    width: 45%; /*500px*/
}
.tbl-uc { 
    width: 25%; /*300px;*/
}

.uc-std-prf {
    border: 0px !important;
}
.res-std-prf {
    border-top: 1px #721C58 solid;
    border-bottom: 0px;
    width: 25%;
}

.result2 table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    border: 2px #721C58 solid;
}
.multiple-row {
    display: table;
    width: 100%;
}
.multiple-row > div {
    display: table-cell;
    /*border-bottom: 1px solid #eee;*/
    padding: 0px 15px;
    width: 25%;
}
.desc-content {
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: all 2s ease-out;
    font-size: 13px;
    border-radius: 6px;
    background-color: #e0e0e0;
    margin: 5px 15px;
    padding: 0px 10px;
}
.multiple-row:hover ~ .desc-content {
    max-height: 500px;
}
.desc-content:hover {
    max-height: 500px;
}

.multiple-row2 {
    display: table;
    width: 100%;
}
.multiple-row2 > div {
    display: table-cell;
    /*border-bottom: 1px solid #eee;*/
    width: 75%;
}
.multiple-row2:hover ~ .desc-content2 {
    max-height: 500px;
}
.desc-content2 {
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: all 2s ease-out;
    font-size: 13px;
}
.desc-content2:hover {
    max-height: 500px;
}

.details-control {
    text-align: center;
    cursor: pointer;
    max-width: 35px !important;
}
table.dataTable td.dt-control::before {
    display: inline-block;
    box-sizing: border-box;
    content: "";
    border-top: 5px solid transparent;
    border-left: 10px solid rgba(0, 0, 0, 0.5);
    border-bottom: 5px solid transparent;
    border-right: 0px solid transparent;
}
table.dataTable tr.dt-hasChild td.dt-control::before {
    border-top: 10px solid rgba(0, 0, 0, 0.5);
    border-left: 5px solid transparent;
    border-bottom: 0px solid transparent;
    border-right: 5px solid transparent;
}

#table-resultsUC th {
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    background-color: #721C58;
    border-bottom: none;
}

.details-table {
    border: 1px solid #fff; 
}

.details-uc { 
    width: 25%;
}


/* RESULTS FILTERS */
.quick-filters-btn {
    color: #721C58;
    background-color: #fff;
    border: 1px solid #721C58;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 5px;
    border-radius: 5px;
}
.active-filter {
    color: #fff;
    background-color: #721C58;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 5px;
    border-radius: 5px;
}
.advanced-filters {
    width: 100%;
}
.adv-filt-right {
    text-align: right;
}

/* CONTRIBUTE FORM */

.query {
    background-color: #eeeeee;
    font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New;
    padding: 5px;
    width: 100%;
}

.post-form textarea,
.post-form input {
    width: 100%;
}


/* TOOLTIPS */
.wrapper {
    --background: #721C58;
    --width: 30px;
    --height: 30px;
    --border-radius: var(--height);
    width: var(--width);
    height: var(--height);
    position: relative;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    .btn {
      background: var(--background);
      width: var(--width);
      height: var(--height);
      position: relative;
      z-index: 3;
      border-radius: var(--border-radius);
      box-shadow: 0 10px 30px rgba(#414856, 0.05);
      display: flex;
      justify-content: center;
      align-items: center; 
      animation: plus-animation-reverse .5s ease-out forwards;
      &::before,
      &::after {
        content: "";
        display: block;
        position: absolute;
        border-radius: 4px;
        background: #fff;
      }
      &::before {
        width: 4px;
        height: 20px;
      }
      &::after {
        width: 20px;
        height: 4px;
      }
    }
    .tooltip {
      width: 90px;
      height: 75px;
      border-radius: 70px;
      position: absolute;
      background: #1D1D1B;
      color: #c6c6c6;
      font-size: 10pt;
      z-index: 2;
      padding: 0 10px;
      box-shadow: 0 10px 30px rgba(#414856, 0.05);
      opacity: 0;
      top: 0;
      display: flex;
      justify-content: space-around;
      align-items: center;
      transition: opacity .15s ease-in, top .15s ease-in, width .15s ease-in;
      &::after {
        content: "";
        width: 20px;
        height: 20px;
        background: #1D1D1B;
        border-radius: 3px;
        position: absolute;
        left: 80%;
        top: -5%;
        margin-left: -10px;
        bottom: -8px;
        transform: rotate(45deg);
        z-index: 0;
      }
    }
    input {
      height: 100%;
      width: 100%;
      border-radius: var(--border-radius);
      cursor: pointer;
      position: absolute;
      z-index: 5;
      opacity: 0;
      &:checked {
        ~ .btn {
          animation: plus-animation .5s ease-out forwards;
        }
        ~ .tooltip {
          width: 190px;
          height: 70px;
          animation: stretch-animation 1s ease-out forwards .15s;
          top: 40px;
          right: 20px;
          opacity: 1;
        }
      }
    }
  }

/* Tooltip container */
.tooltip-form {
    position: relative;
    display: inline-block;
    bottom: 2px;
    /*border-bottom: 1px dotted black;*/
}
.tooltip-form .tooltiptext-form {
    visibility: hidden;
    background-color: #1D1D1B;
    color: #c6c6c6;
    font-size: 10pt;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    width: 500px;
    top: 100%;
    left: 50%;
    /*margin-left: -125px; /* =(width/2), to center the tooltip */
}
.tooltip-form:hover .tooltiptext-form {
    visibility: visible;
}
.tooltip-form .tooltiptext-form::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #1D1D1B transparent;
}


/* AUTHENTIFICATION */

.login-container {
    width: 400px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
    padding: 40px;
}
.login-heading {
    font-size: 2em;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 2px solid #721C58;
}
.login-body {
    font-size: 14px;
    text-align: left;
    margin: 0 0 15px;
}
.login-form-group {
    margin: 0 0 20px;
}
.login-form-control {
    width: 100%;
    background: #f9f9f9;
    font-weight: 400;
    height: 40px;
    padding: 6px 12 px;
    border-radius: 5px;
    border: none;
    box-shadow: none;
    letter-spacing: 0.5px;
}
.login-form-control:focus {
    outline: none;
    box-shadow: 0 0 3px #721C58;
}
.login-form-control #id_username, .login-form-control #id_password {
    width: 100%;
    background: #f9f9f9;
    font-weight: 400;
    height: 40px;
    padding: 6px 12 px;
    border-radius: 5px;
    border: none;
    box-shadow: none;
    letter-spacing: 0.5px;
}
.login-form-control #id_username:focus, .login-form-control #id_password:focus {
    outline: none;
    box-shadow: 0 0 3px #721C58;
}

.signin {
    color: #fff;
    background-color: #721C58;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 9px 11px;
    margin: 0 0 20px;
    border-radius: 50px;
}
.login-remember {
    display: inline-block;
    width: 220px;
    font-size: 12px;
    vertical-align: top;
}
.login-forgot {
    font-size: 12px;
    text-align: right;
}
.logout-form {
    padding: 7px;
    padding-top: 15px;
}
.logout-btn {    
    background: none!important;
    border: none;
    padding: 0!important;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}
.logout-form,
.logout-form:after,
.logout-form:before {
  transition: all .5s;
}