:root {
    --threshold: 90;

    --bodyBackground: #F3F3F4;
    --mainBackground: white;

    --mainColor: #19274E;
    --secondaryColor: #F4C353;
    --footerColor: #999999;

    --lightgrey: #F3F3F8;
    --grey: #999999;
    --darkgrey: #575757;
    --blue: #077EB2;
    --red: #B20A0A;
    --green: #27B20D;
    --orange: #DB6838;

    --qteOk: rgba(95, 241, 81, 0.31);
    --qteZero: rgba(255, 88, 88, 0.31);
    --qteDessous: rgba(255, 115, 0, 0.45);
    --qteDessus: rgba(117, 178, 227, 0.43);

    --requiredFieldColor: rgba(244, 195, 83, 0.3);
}

/*************************************************************************/
/***** ANIMATIONS *****/
/*************************************************************************/
.animated
{
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}

.animated-delay-00{ animation-delay: 0.0s; }
.animated-delay-01{ animation-delay: 0.1s; }
.animated-delay-02{ animation-delay: 0.2s; }
.animated-delay-03{ animation-delay: 0.3s; }
.animated-delay-04{ animation-delay: 0.4s; }
.animated-delay-05{ animation-delay: 0.5s; }
.animated-delay-06{ animation-delay: 0.6s; }
.animated-delay-07{ animation-delay: 0.7s; }
.animated-delay-08{ animation-delay: 0.8s; }
.animated-delay-09{ animation-delay: 0.9s; }
.animated-delay-10{ animation-delay: 1.0s; }
.animated-delay-11{ animation-delay: 1.1s; }
.animated-delay-12{ animation-delay: 1.2s; }
.animated-delay-13{ animation-delay: 1.3s; }
.animated-delay-14{ animation-delay: 1.4s; }
.animated-delay-15{ animation-delay: 1.5s; }
.animated-delay-16{ animation-delay: 1.6s; }
.animated-delay-17{ animation-delay: 1.7s; }
.animated-delay-18{ animation-delay: 1.8s; }
.animated-delay-19{ animation-delay: 1.9s; }
.animated-delay-20{ animation-delay: 2.0s; }

.animShake {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.5s;
    /* When the animation is finished, start again */
    animation-iteration-count: 1;
}

.fade-in-down
{
    animation-name: fadeInDown;
}

.fade-in-downup
{
    animation-name: fadeInDownUp;
    animation-duration: 3s;
}

.fade-in-left
{
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
}

.fade-in-right
{
    -webkit-animation-name: fadeInRight;
    animation-name: fadeInRight;
}

.fade-in-up
{
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

.fade-in
{
    animation-name: fadeIn;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes fadeInDown
{
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDownUp
{
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    25% {
        opacity: 1;
        transform: translateY(0);
    }
    75% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes blink {
    50% { color: red; }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px -10px #00FF00;
    }
    to {
        box-shadow: 0 0 10px 10px #00FF00;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/**
Autocomplete
 */
.autocomplete-container{
    position: relative;
}

ul.autocomplete{
    position: absolute;
    margin: 0;
    margin-top: -4px;
    padding: 0;
    width: calc(100% - 2rem);
    border: 1px solid var(--grey);
    z-index: 1;
    background: var(--lightgrey);
}

ul.autocomplete li{
    list-style-type: none;
    padding-left: 0.5em;
    padding-right: 0.5em;
    cursor: pointer;
}

ul.autocomplete li:hover,
ul.autocomplete li:focus{
    color: var(--secondaryColor);
}

.autocomplete-found{
    font-weight: bold;
    text-decoration: underline;
}

.autocomplete-search{
    border-color: orangered;
}

.autocomplete-selected{
    border-color: initial;
}


/*
ColumnFilter
 */
tbody tr.odd{
    background: rgba(255,255,255,0.1) !important;
}

tbody tr.even{
    background: rgba(0,0,0,0.1) !important;
}

tbody tr.filteredOut{
    display: none !important;
}

.trFilter input[type=search]{
    width: 100%;
    font-size: 0.8em;
    font-style: italic;
    padding-left: 1rem;
    padding-right: 1rem;
}

.trFilter td{
    padding: 0;
}

.trFilter input[type=search]{
    text-align: inherit;
}


/*
Dropzone
 */

/*
 * The MIT License
 * Copyright (c) 2012 Matias Meno <m@tias.me>
 */
@-webkit-keyframes passing-through {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        -moz-transform: translateY(40px);
        -ms-transform: translateY(40px);
        -o-transform: translateY(40px);
        transform: translateY(40px); }
    30%, 70% {
        opacity: 1;
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px); }
    100% {
        opacity: 0;
        -webkit-transform: translateY(-40px);
        -moz-transform: translateY(-40px);
        -ms-transform: translateY(-40px);
        -o-transform: translateY(-40px);
        transform: translateY(-40px); } }
@-moz-keyframes passing-through {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        -moz-transform: translateY(40px);
        -ms-transform: translateY(40px);
        -o-transform: translateY(40px);
        transform: translateY(40px); }
    30%, 70% {
        opacity: 1;
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px); }
    100% {
        opacity: 0;
        -webkit-transform: translateY(-40px);
        -moz-transform: translateY(-40px);
        -ms-transform: translateY(-40px);
        -o-transform: translateY(-40px);
        transform: translateY(-40px); } }
@keyframes passing-through {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        -moz-transform: translateY(40px);
        -ms-transform: translateY(40px);
        -o-transform: translateY(40px);
        transform: translateY(40px); }
    30%, 70% {
        opacity: 1;
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px); }
    100% {
        opacity: 0;
        -webkit-transform: translateY(-40px);
        -moz-transform: translateY(-40px);
        -ms-transform: translateY(-40px);
        -o-transform: translateY(-40px);
        transform: translateY(-40px); } }
@-webkit-keyframes slide-in {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        -moz-transform: translateY(40px);
        -ms-transform: translateY(40px);
        -o-transform: translateY(40px);
        transform: translateY(40px); }
    30% {
        opacity: 1;
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px); } }
@-moz-keyframes slide-in {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        -moz-transform: translateY(40px);
        -ms-transform: translateY(40px);
        -o-transform: translateY(40px);
        transform: translateY(40px); }
    30% {
        opacity: 1;
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px); } }
@keyframes slide-in {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        -moz-transform: translateY(40px);
        -ms-transform: translateY(40px);
        -o-transform: translateY(40px);
        transform: translateY(40px); }
    30% {
        opacity: 1;
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px); } }
@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1); }
    10% {
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1); }
    20% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1); } }
@-moz-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1); }
    10% {
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1); }
    20% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1); } }
@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1); }
    10% {
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1); }
    20% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1); } }
.dropzone, .dropzone * {
    box-sizing: border-box; }

.dropzone {
    min-height: 150px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: white;
    padding: 20px 20px; }
.dropzone.dz-clickable {
    cursor: pointer; }
.dropzone.dz-clickable * {
    cursor: default; }
.dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {
    cursor: pointer; }
.dropzone.dz-started .dz-message {
    display: none; }
.dropzone.dz-drag-hover {
    border-style: solid; }
.dropzone.dz-drag-hover .dz-message {
    opacity: 0.5; }
.dropzone .dz-message {
    text-align: center;
    margin: 2em 0; }
.dropzone .dz-message .dz-button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit; }
.dropzone .dz-preview {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 16px;
    min-height: 100px; }
.dropzone .dz-preview:hover {
    z-index: 1000; }
.dropzone .dz-preview:hover .dz-details {
    opacity: 1; }
.dropzone .dz-preview.dz-file-preview .dz-image {
    border-radius: 20px;
    background: #999;
    background: linear-gradient(to bottom, #eee, #ddd); }
.dropzone .dz-preview.dz-file-preview .dz-details {
    opacity: 1; }
.dropzone .dz-preview.dz-image-preview {
    background: white; }
.dropzone .dz-preview.dz-image-preview .dz-details {
    -webkit-transition: opacity 0.2s linear;
    -moz-transition: opacity 0.2s linear;
    -ms-transition: opacity 0.2s linear;
    -o-transition: opacity 0.2s linear;
    transition: opacity 0.2s linear; }
.dropzone .dz-preview .dz-remove {
    font-size: 14px;
    text-align: center;
    display: block;
    cursor: pointer;
    border: none; }
.dropzone .dz-preview .dz-remove:hover {
    text-decoration: underline; }
.dropzone .dz-preview:hover .dz-details {
    opacity: 1; }
.dropzone .dz-preview .dz-details {
    z-index: 20;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    font-size: 13px;
    min-width: 100%;
    max-width: 100%;
    padding: 2em 1em;
    text-align: center;
    color: rgba(0, 0, 0, 0.9);
    line-height: 150%; }
.dropzone .dz-preview .dz-details .dz-size {
    margin-bottom: 1em;
    font-size: 16px; }
.dropzone .dz-preview .dz-details .dz-filename {
    white-space: nowrap; }
.dropzone .dz-preview .dz-details .dz-filename:hover span {
    border: 1px solid rgba(200, 200, 200, 0.8);
    background-color: rgba(255, 255, 255, 0.8); }
.dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
    overflow: hidden;
    text-overflow: ellipsis; }
.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
    border: 1px solid transparent; }
.dropzone .dz-preview .dz-details .dz-filename span, .dropzone .dz-preview .dz-details .dz-size span {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 0 0.4em;
    border-radius: 3px; }
.dropzone .dz-preview:hover .dz-image img {
    -webkit-transform: scale(1.05, 1.05);
    -moz-transform: scale(1.05, 1.05);
    -ms-transform: scale(1.05, 1.05);
    -o-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
    -webkit-filter: blur(8px);
    filter: blur(8px); }
.dropzone .dz-preview .dz-image {
    border-radius: 20px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    position: relative;
    display: block;
    z-index: 10; }
.dropzone .dz-preview .dz-image img {
    display: block; }
.dropzone .dz-preview.dz-success .dz-success-mark {
    -webkit-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
    -moz-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
    -ms-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
    -o-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
    animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1); }
.dropzone .dz-preview.dz-error .dz-error-mark {
    opacity: 1;
    -webkit-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
    -moz-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
    -ms-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
    -o-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
    animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1); }
.dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {
    pointer-events: none;
    opacity: 0;
    z-index: 500;
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    margin-left: -27px;
    margin-top: -27px; }
.dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg {
    display: block;
    width: 54px;
    height: 54px; }
.dropzone .dz-preview.dz-processing .dz-progress {
    opacity: 1;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear; }
.dropzone .dz-preview.dz-complete .dz-progress {
    opacity: 0;
    -webkit-transition: opacity 0.4s ease-in;
    -moz-transition: opacity 0.4s ease-in;
    -ms-transition: opacity 0.4s ease-in;
    -o-transition: opacity 0.4s ease-in;
    transition: opacity 0.4s ease-in; }
.dropzone .dz-preview:not(.dz-processing) .dz-progress {
    -webkit-animation: pulse 6s ease infinite;
    -moz-animation: pulse 6s ease infinite;
    -ms-animation: pulse 6s ease infinite;
    -o-animation: pulse 6s ease infinite;
    animation: pulse 6s ease infinite; }
.dropzone .dz-preview .dz-progress {
    opacity: 1;
    z-index: 1000;
    pointer-events: none;
    position: absolute;
    height: 16px;
    left: 50%;
    top: 50%;
    margin-top: -8px;
    width: 80px;
    margin-left: -40px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-transform: scale(1);
    border-radius: 8px;
    overflow: hidden; }
.dropzone .dz-preview .dz-progress .dz-upload {
    background: #333;
    background: linear-gradient(to bottom, #666, #444);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    -webkit-transition: width 300ms ease-in-out;
    -moz-transition: width 300ms ease-in-out;
    -ms-transition: width 300ms ease-in-out;
    -o-transition: width 300ms ease-in-out;
    transition: width 300ms ease-in-out; }
.dropzone .dz-preview.dz-error .dz-error-message {
    display: block; }
.dropzone .dz-preview.dz-error:hover .dz-error-message {
    opacity: 1;
    pointer-events: auto; }
.dropzone .dz-preview .dz-error-message {
    pointer-events: none;
    z-index: 1000;
    position: absolute;
    display: block;
    display: none;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    font-size: 13px;
    top: 130px;
    left: -10px;
    width: 140px;
    background: #be2626;
    background: linear-gradient(to bottom, #be2626, #a92222);
    padding: 0.5em 1.2em;
    color: white; }
.dropzone .dz-preview .dz-error-message:after {
    content: '';
    position: absolute;
    top: -6px;
    left: 64px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #be2626; }


/*
FlashMSg
 */

/*************************************************************************/
/***** DESIGN GENERAL - MESSAGES D'ERREUR *****/
/*************************************************************************/
.flash{
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    top: 0;
    right: 15vw;
    width: 70vw;
    z-index: 999;
    text-align: center;
}

.flash-success{
    background: #3EDB67;
    padding: 0 !important;
}

.flash-notice{
    background: #409BDB;
    padding: 0 !important;
}

.flash-warning{
    background: #DB6838;
    padding: 1em !important;
}

.flash-error{
    background: #DB3B3B;
    padding: 1em !important;
}


/**
Spinner
 */

/**************************************************************************/
/***** DESIGN GENERAL - LOADING SPINNER *****/
/*************************************************************************/
#loadingSpinner {
    position: fixed;
    top: 3.2rem;
    left: 0.5em;
    width: 50px;
    text-align: center;
    z-index: 999;
}

#loadingSpinner > div {
    width: 10px;
    height: 10px;
    background-color: var(--secondaryColor);

    border-radius: 100%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;

    margin: 2px;
}

#loadingSpinner .bounce1 {
    animation-delay: -0.32s;
}

#loadingSpinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    } 40% {
          transform: scale(1.0);
      }
}


/*************************************************************************/
/***** MODAL BOX *****/
/*************************************************************************/
.modal {
    display: none;
    position: fixed;
    top: 0rem;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 15px;
    overflow: auto;
    animation-duration: 0.35s;
    animation-fill-mode: both;
    animation-name: fadeIn;
    z-index: 9;
    margin: auto;
}
.modal__dialog {
    position: relative;
    margin: auto;
    background-color: #fff;
    width: calc(100vw - 30px - 1vw);
    height: 95vh;
    overflow-x: hidden;
    border: 1px solid black;
}
.modal__content {
    padding: 0.5rem;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    padding-bottom: 10rem;
}
.modal__footer {
    padding-top: 20px;
    border-top: 1px solid #e2e2e2;
    position: absolute;
    padding: 1em;
    bottom:0;
    background: inherit;
    width: 98.5%;
    text-align: center;
}
.modal.is-modal-active {
    display: flex;
}
[data-modal-trigger]{
    cursor: pointer;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/*
Print
 */

@media print{
    header, footer{
        display: none !important;
    }

    body{
        background: none !important;
    }

    main{
        width: 100% !important;
        box-shadow: none !important;
        height: min-content !important;
    }

    #titre{
        position: static !important;
    }

    .noprint{
        display: none !important;
    }

    .printonly.block{
        display: block
    }

    input,
    textarea,
    select{
        border: none !important;
        background: transparent !important;
        resize: none !important;
        width: 100% !important;
    }
}


/*
Tooltip
 */

.tippy {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 400px;
    background: #222;
    padding: 3px 10px;
    font-size: 1em;
    color: #FFF;
    border-radius: 100px 100px 3px 3px;
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: 50% 100%;
    transition: opacity 0.3s, transform 0.3s, border-radius 0.3s;
    text-align: left;
}

.tippy-title{
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.tippy::after {
    content:'';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #222;
}

.tippy.visible {
    opacity: 1;
    border-radius: 3px;
    transform: rotateX(0)
}