@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    /** colors */
    --blue-dark: #00368B;
    --blue-medium: #0F55DA;
    --blue-light: #3C99F6;
    --blue-light-transp: #b4dafb;
    --grey-very-light: #F4F4F4;
    --grey-light: #E3E3E3;
    --grey-medium: #CCC;
    --grey-dark-light: #666;
    --grey-dark-medium: #333;
    --grey-dark: #151515;
    --red: #F00;
    --green: #5DA76F;
    --green-light: #51FA4E;
    --orange: #ffba35;
    --white: #FFF;
    --black: #000;

    /** radius */
    --border-radius-form-elements: 50px;
    --border-radius-title: 30px;
    --border-radius-round: 50%;
}

.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--grey-light);
    height: 100%;
}

h1,
h2 {
    position: relative;
    width: 100%;
}

hr {
    border: 1px solid var(--blue-light);
    margin-top: 16px;
    margin-bottom: 16px;
}

a,
a:visited {
    color: var(--blue-light);
}

a:hover {
    text-decoration: none;
}


.champ_gris {
    color: var(--grey-dark-medium);
    font-style: italic;
}

#preprod {
    z-index: 10000;
    opacity: 0.8;
    position: fixed;
    width: 30%;
    margin-left: auto;
    margin-right: auto;
    border: solid 1px var(--white);
    text-align: center;
    background-color: var(--red);
    color: white
}

__old_select {
    font-size: 16px;
    height: 21px;
}


.intitule {
    text-align: right;
    font-size: 12px;
}

.obligatoire {
    font-weight: bold;
}


/** header */
header.header-debut {
    width: 100%;
    height: 170px;
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 0;
    margin: 0;
}

header.header-debut a,
header.header-debut a:link,
header.header-debut a:hover,
header.header-debut a:active,
header.header-debut a:focus,
header.header-debut a:visited {
    color: var(--white);
    text-decoration: none;
}

header.header-debut ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

header.header-debut .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 130px;
    gap: 20px;
}

header.header-debut .header-top .logo,
header.header-debut .header-top .user {
    flex: 0 1 20%;
    min-width: 240px;
    max-width: 320px;
}

header.header-debut .header-top .logo {
    text-align: center;
}

header.header-debut .header-top .logo img {
    width: 60%;
    min-width: 110px;
    max-width: 170px;
    height: auto;
    cursor: default
}

header.header-debut .header-top .menu,
header.header-debut .header-top .search-top {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-width: 25%;
}

header.header-debut .header-top .menu {
    min-width: 35%;
}

header.header-debut .header-top .menu li {
    padding: 0 10px;
    margin: 0 10px;
    font-size: 16px;
    text-transform: capitalize;
    text-align: center;
}

header.header-debut .header-top .menu li:first-child {
    margin-left: 0;
}

header.header-debut .header-top .menu li:last-child {
    margin-right: 0;
}

header.header-debut .header-top .menu li.active {
    font-weight: bold;
}

header.header-debut .header-top .search-top,
.header-search {
    justify-content: flex-end;
}

.container-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.container-search input {
    border: 0;
    width: calc(100% - 50px);
    height: 50px !important;
    padding-left: 22px;
    border-radius: var(--border-radius-form-elements);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 16px;
    color: var(--grey-dark);
    box-sizing: border-box;
}

.container-search:before {
    content: "\f002";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 50px;
    line-height: 50px;
    padding-left: 25px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--grey-dark);
    font-size: 16px;
    background: var(--white);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    margin-left: 15px;
}

header.header-debut .header-top .search-top input:focus-visible {
    outline: none;
}

header.header-debut .header-top .user {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 240px;
    width: 20%;
    max-width: 400px;
    height: 100%;
    background-color: var(--blue-medium);
}

header.header-debut .header-top .user .user-icon {
    font-size: 48px;
}

header.header-debut .header-top .user .user-name {
    font-size: 16px;
    font-weight: bold;
    padding-left: 25px;
}

header.header-debut .header-top .user .user-name i {
    margin-left: 10px;
}

header.header-debut .header-top .user .user-name .user-logout {
    font-size: 12px;
    font-weight: normal;
    text-decoration: underline;
}

header.header-debut .header-top .user .user-name select {
    display: block;
    margin-top: 8px;
}

header.header-debut .header-bottom {
    display: block;
    width: 100%;
    background-color: var(--blue-light);
    padding-left: 370px;
    height: 40px;
}

header.header-debut .header-bottom .ss-menu ul {
    justify-content: flex-start;
    align-content: center;
}

header.header-debut .header-bottom .ss-menu li {
    display: flex;
    text-align: center;
    align-items: center;
    height: 40px;
    padding: 0 15px;
    margin: 0 10px;
    text-transform: none;
    font-size: 14px;
    border-bottom: 2px solid var(--blue-light);
}

header.header-debut .header-bottom .ss-menu li a {
    display: block;
}

header.header-debut .header-bottom .ss-menu li.active {
    font-weight: bold;
    border-bottom: 2px solid var(--blue-dark);
}

@media screen and (max-width: 1695px) {
    header.header-debut .header-top .logo {
        width: 240px;
    }

    header.header-debut .header-top .menu,
    header.header-debut .header-top .search-top {
        width: calc(100% - 240px);
    }

    header.header-debut .header-top .menu ul {
        flex-wrap: wrap;
    }

    header.header-debut .header-top .search-top {
        width: 240px;
    }

    header.header-debut .header-top .menu li,
    header.header-debut .header-top .menu li:first-child {
        padding: 0 10px;
        margin: 8px;
        /*font-size: 1vw;*/
    }

    header.header-debut .header-bottom {
        padding-left: 10%;
    }
}

.main-content {
    display: block;
    width: 100%;
    position: relative;
    height: calc(100vh - 170px - 4rem);
    padding: 1.5rem;
}

.alert-error {
    color: var(--red);
}

.alert {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--white);
    padding: 1rem;
    z-index: 3;
}

.alert.alert-success {
    background: var(--green);
}

.alert.alert-error {
    background: var(--red);
}

#noirextra {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Calque fondu noir à 50% de transparence */
    z-index: 10;
}

.popin {
    display: none;
    position: fixed;
    background-color: var(--white);
    /*border: solid 5px var(--white;*/
    /*border-radius: 5px;*/
    /*box-shadow: 0px 0px 15px var(--white);*/
    font-size: 16px;
    /*padding: 16px;*/
    width: 500px;
    height: 150px;
    top: 10px;
    left: 10px;
    z-index: 30;

    box-shadow: 3px 3px 3px var(--grey-dark-light);
    border-radius: 3px;
    padding: 0;
    margin: 0px;
    border: none;
}

/** FORM CONTENT */
input, textarea, select {
    outline: none;
}

input[type="text"], input[type="number"], input[type="password"], input[type="email"],
textarea, select {
    border: solid 1px var(--grey-dark);
    background-color: var(--white);
    font-size: 16px;
    height: 30px;
    border-radius: var(--border-radius-form-elements);
    outline: none;
    padding: 0 15px;
    width: 350px;
}

.date {
    width: 120px !important;
}

textarea {
    height: 150px;
    border-radius: 10px;
    padding: 15px;
}

input[type="submit"],
input[type="button"],
button,
.button,
.button-print {
    font-size: 16px;
    width: auto;
    /*height: 27px ;*/
    background-color: var(--blue-medium);
    color: var(--white);
    border: none;
    padding: 5px 25px;
    border-radius: var(--border-radius-form-elements);
    margin: 10px;
    cursor: pointer;
}

input[type="submit"]:first-child,
input[type="button"]:first-child,
button:first-child,
.button:first-child,
.button-print:first-child {
    margin-left: 0;
}

input[type="submit"]:last-child,
input[type="button"]:last-child,
button:last-child,
.button:last-child,
.button-print:last-child {
    margin-right: 0;
}

.button.delete {
    background-color: var(--red);
    text-decoration: none;
}

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 20px;
    width: 20px;
    max-width: 20px;
    height: 20px;
    border: 3px solid var(--grey-light);
    position: relative;
    cursor: pointer;
    outline: none;
    background-color: var(--white);
}


input[type="checkbox"]:checked,
input[type="radio"]:checked {
    border-color: var(--blue-light);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -2px;
    font-size: 16px;
    left: 0;
    width: 100%;
    height: calc(100% + 2px);
    background-color: var(--blue-light);
    color: var(--white);
    text-align: center;
}

input[type="radio"] {
    vertical-align: bottom;
}

input[type="radio"],
input[type="radio"]:checked::before {
    border-radius: var(--border-radius-round);
}

input[type="radio"]:checked::before {
    top: -1px;
}

#usurpation {
    width: auto !important;
    font-size: 10px;
    height: 16px;
}

.usurpation {
    position: absolute;
    top: 0;
    left: auto;
    right: auto;
    background-color: var(--white);
    padding: 5px;
}

.content-form {
    display: flex;
    justify-content: flex-start;
    align-content: flex-start;
    width: 100%;
    height: 100%;
}

.content-form.form-border-bottom {
    border-bottom: 1px dotted var(--grey-dark);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.list-elements {
    width: 690px;
    margin-right: 25px;
    height: calc(100% - 64px);
}

h1 {
    background-color: var(--blue-light);
    height: 64px;
    line-height: 64px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    color: var(--white);
    font-size: 16px;
    font-weight: normal;
    padding: 0 24px;
    margin: 0;
}

h1 span {
    font-weight: bold;
}

h1 .add-element-right-title {
    position: absolute;
    top: 0;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 70%;
    margin: 0;
}

h1 .add-element-right-title select {
    width: auto;
    margin-left: 8px;
}

.new-element {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    width: 100%;
    font-size: 16px;
    background-color: var(--white);
    color: var(--blue-light);
    padding: 4px 15px;
}

.new-element i {
    line-height: 32px;
}

.new-element input {
    background-color: transparent;
    color: var(--blue-light);
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.list-elements select,
.select-list_element {
    width: 100%;
    border: none;
    height: 100%;
    border-radius: 0;
}

.list-elements select option,
.select-list_element option {
    padding: 10px 15px;
    background-color: var(--blue-light-transp);
    border-bottom: 1px var(--grey-dark) dotted;
    font-size: 16px;
    line-height: 32px;
}

.list-elements select option:not(:checked),
.select-list_element option:not(:checked) {
    background-color: var(--white);
}

.list-elements select option:focus,
.list-elements select option:active,
.list-elements select option:hover,
.list-elements select option:focus-visible,
.list-elements select option:checked,
.select-list_element option:focus,
.select-list_element option:active,
.select-list_element option:hover,
.select-list_element option:focus-visible,
.select-list_element option:checked {
    background-color: var(--blue-light-transp);
}

.select-list_element option.off,
.list-elements option.off {
  background-color: var(--grey-light)!important;
}

.content-form iframe {
    border: 0;
    width: calc(100% - 715px);
    height: calc(100% + 64px);
    padding: 0;
    margin: 0
}

.form-iframe {
    background-color: var(--white);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding-bottom: 25px;
}

.iframe-content {
    padding: 0 20px;
    overflow-y: auto;
    height: 100%;
}

.iframe-content label {
    display: block;
    margin: 15px 0;
}

.iframe-button {
    padding: 15px;
    margin: 15px 0;
}

.iframe-formulaire-edit {
    padding: 15px;
    height: 100%;
}

.iframe-formulaire-edit .field {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
    margin: 15px 0;
}

.field label {
    display: block;
    width: 150px;
    font-weight: bold;
}

.content-form.line {
    align-items: center;
}

.content-form.line .field {
    display: flex;
    margin: 0 10px;
    height: 30px;
}

.content-form.line .checkboxes-container {
    display: inline-flex;
}

.content-form.line label {
    display: inline-block;
    width: auto;
    margin-right: 8px;
    line-height: 30px;
}

.checkboxes-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.checkboxes-container.line {
    flex-direction: row;
}

.checkboxes-container .form-checkbox {
    display: flex;
    align-items: center;
}

.checkboxes-container .form-checkbox label {
    margin-left: 8px;
    font-weight: normal;
    width: auto;
}

.checkboxes-container .form-checkbox input[type="checkbox"]:checked + label {
    font-weight: bold;
}

.field-list {
    border: solid 1px var(--grey-dark);
    background-color: var(--white);
    padding: 8px;
    border-radius: 3px;
    width: 350px;
    height: 200px;
    overflow: auto
}

.field-list label {
    width: 100% !important;
    padding: 5px 0;
}

.container_image {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    width: 300px;
}

.container_image .image {
    width: 120px;
    height: 120px;
    padding: 10px;
}

.container_image .image img {
    width: 100%;
    height: auto;
    background-color: var(--grey-light);
}

.container_image .upload {
    width: calc(100% - 120px);
    padding: 10px;
}

.button-print {
    position: absolute;
    right: 10px;
}

.button-print i {
    margin-right: 8px;
}

.button-print a,
.button-print a:active,
.button-print a:hover,
.button-print a:focus,
.button-print a:visited {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    font-weight: normal;

}

/** table */


.table_data {
    border: none;
    border-spacing: 0;
}

.table_data tr th {
    background-color: var(--blue-light);
    color: var(--white);
    font-size: 14px;
}

.table_data tbody tr:nth-child(even) {
    background-color: var(--white);
}

.table_data tbody tr:nth-child(odd) {
    background-color: var(--blue-light-transp);
}

.table_data tr th, .table_data tr td {
    padding: 8px;
}

.table_data .totaux td {
    background-color: var(--blue-dark);
    color: var(--white);
    font-weight: normal;
    padding-bottom: 2px;
    padding-top: 4px;
}

/** toggle */
.-toggle {
    display: block;
    float: left;
    width: 100px;
    padding: 4px;
    margin: 8px;
    margin-bottom: 0px;
    border: solid 1px var(--blue-dark);
    background-color: var(--white);
    text-align: center;
    color: var(--grey-dark-medium);
    text-decoration: none;
    cursor: default;
    font-size: 12px;
}

.-toggle:hover {
    border-color: var(--grey-dark);
    color: var(--black);
}

.-toggle_on {
    font-weight: bold;
    border-color: var(--grey-dark);
    color: var(--black);
}

.-toggle_on:hover {
    border-color: var(--blue-dark) !important;
    color: var(--grey-dark-medium) !important;
}


.toggle {
    display: block;
    float: left;
    width: 85px;
    padding: 4px;
    margin: 8px;
    margin-bottom: 0px;
    border: solid 1px var(--blue-dark);
    border-bottom-width: 0px;
    background-color: var(--white);
    text-align: center;
    color: var(--grey-dark-medium);
    text-decoration: none;
    cursor: default;
    font-size: 12px;
}

.toggle:hover {
    background-color: var(--blue-dark);
    color: var(--white);
    border-top-width: 0px;
}

.toggle_on {
    background-color: var(--blue-dark);
    font-weight: bold;
    color: var(--white);
}

.toggle_on:hover {
    border-top-width: 1px !important;
}

input:disabled, textarea:disabled, select:disabled {
    border-width: 0px;
}

#main2 {
    margin: 16px;
}


.flag {
    width: 32px;
    border: 0;
    margin-left: 6px;
    border-bottom: solid 2px var(--white);
}

.flag_on {
    border-bottom: solid 2px var(--blue-dark);
}

.stats_legend {
    font-size: 12px;
    padding: 5px 0;
}

.stats_legend:before {
    content: '\f06a';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--blue-dark);
}

iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/** modals */
.modal {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    min-width: 680px !important;
    width: auto !important;
    max-width: 90vw !important;
    min-height: calc(80px + 60px + 220px) !important;
    /*height: auto !important;*/
    max-height: 75vh !important;
    background-color: white;
    border-radius: var(--border-radius-title);
    box-shadow: 1px 1px 29px 0 rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 99999 !important;
}

.modal.open {
    display: flex;

}

.modal .modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 24px;
    height: 24px;
    text-align: center;
    cursor: pointer;
    color: var(--white);
}

.modal .modal-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

.modal .modal-container .modal-title {
    padding: 10px 20px;
    background-color: var(--blue-medium);
    border-bottom: 1px solid var(--grey-light);
    flex-shrink: 0;
    color: var(--white);
    height: 80px;
}

.modal .modal-container .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 120px;
    height: 100%;
}

.modal .modal-container .modal-footer {
    padding: 10px 20px;
    background-color: var(--white);
    border-top: 1px solid var(--grey-light);
    flex-shrink: 0;
    text-align: right;
    height: 60px;
}

#icachee {
    display: none;
}
