:root {
    --blue: #0058A5;
    --green: #009667;
    --yellow: #FAB600;
    --orange: #FB4E13;
    --red: #E42313;
    --grey-dark: #4E5253;
    --grey-medium: #c7c7c7;
    --grey-light: #EEEEEE;
    --text-dark: #333333;
    --text-light: white;
    --error: red;
    --awaiting: orange;
    --light-yellow: #fac432;
    --valid: green;
}

/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap'); */

/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    background-color: var(--grey-light);
    color: var(--text-dark);
}

section {
    width: 100%;
    padding: 8em 2em 2em 22em;
}

h3 {
    padding: 0.3em;
    margin-bottom: 1em;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-light);
    background-color: var(--grey-dark);
    border-radius: 10px;
    text-align: center;
}

.color-wait {
    color: var(--orange);
}

.color-valid {
    color: var(--green);
}

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


h4 {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.6em;
    border-radius: 5px;
    text-align: center;
}

h5 {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 0 0.6em 0;
    border-bottom: 2px solid var(--grey-dark);
}

.title-type {
    padding: 0.3em;
    margin-bottom: 0.5em;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-light);
    background-color: var(--grey-dark);
    border-radius: 10px;
}


.brand {
    font-weight: 900;
    font-size: 1.6em;
}

.bg-grey {
    background-color: var(--grey-light);
    padding: 0.5em;
    border-radius: 10px;
    margin-bottom: 0.5em;
}

table thead,
table tfoot,
table thead a,
table thead a:hover {
    color: var(--text-light);
    background-color: var(--green);
}

.bills table thead th {
    border: 1px solid var(--grey-light);
}


.bloc {
    background-color: white;
    padding: 2em;
    margin-bottom: 2em;
    margin-top: 1em;
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.18) 0px 8px 24px;
}

.bloc2 {
    width: 49%;
}

.bloc .title {
    padding: 0.5em;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    background-color: var(--grey-dark);
    color: var(--text-light);
    font-size: 1.4em;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.bloc .content {
    padding: 2em;
}

.bloc .content .figure {
    text-transform: uppercase;
    font-weight: 700;
}

.bloc .content .figure span {
    color: var(--yellow);
    font-size: 2.2em;
    font-weight: 900;
}


.back-link {
    display: block;
    text-align: right;
    margin-bottom: 1em;
    color: var(--text-dark);
}

.back-link:hover {
    color: var(--text-dark);
}


.form {
    width: 70%;
    margin: 0 auto;
}

.input {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5em;
}

.input label {
    font-weight: bold;
}

.input input,
.input textarea,
select {
    border-radius: 5px;
    border: 1px solid var(--grey-dark);
    padding: 0.3em;
}

input[readonly] {
    background-color: var(--grey-light);
    border: 1px solid grey;
    cursor: default;
}

.input .ck-editor {
    width: 75% !important;
}

.button {
    border: 2px solid var(--orange);
    border-radius: 30px;
    padding: 0.7em 1.2em;
    cursor: pointer;
    font-weight: 600;
    background-color: var(--orange);
    color: white !important;
}

.button.delete {
    background-color: var(--red);
    border: 2px solid var(--red);
}

.button.flat {
    padding: 0.2em 0.7em;
}

.button.save {
    border: 2px solid var(--grey-dark);
    background-color: var(--grey-dark);
    color: white;
}

.button.reverse,
.button.flat.reverse {
    background-color: white;
    color: var(--orange) !important;
    font-weight: 600;
}

.button.save.reverse {
    background-color: white;
    color: var(--grey-dark) !important;
}

.button:hover,
.button.flat:hover {
    text-decoration: none;
    background-color: white;
    color: var(--orange) !important;
}

.button.delete:hover {
    border: 2px solid var(--red) !important;
    background-color: white !important;
    color: var(--red) !important;
}

.button.save:hover {
    background-color: white;
    color: var(--grey-dark) !important;
}

.button.reverse:hover,
.button.flat.reverse:hover {
    background-color: var(--orange);
    color: white !important;
}

.button.save.reverse:hover {
    background-color: var(--grey-dark);
    color: white !important;
}


.button.delete:hover,
.button.delete-ro {
    background-color: #ba0621;
    color: white;
    border: 1px solid #ba0621;
}

.button.view:hover {
    background-color: #7a02c9;
    color: white;
    border: 1px solid #7a02c9;
}

.button.edit:hover {
    background-color: #f78e36;
    color: white;
    border: 1px solid #f78e36;
}

.button:disabled {
    opacity: .10;
}


a.active-link {
    color: var(--text-dark);
}

.fa-file-excel {
    color: #1F6E43;
    font-size: 1.4em;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.message.hidden {
    display: none;
}

.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}

.message.warning {
    background: #fffabc;
    color: #8d7b00;
    border-color: #d3b800;
}

.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

.error-message ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.error-message,
.message-photo {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 0.5rem;
}


/* The container */
.checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border: #2196F3 1px solid;
}

/* On mouse-over, add a grey background color */
.checkbox:hover input~.checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox input:checked~.checkmark {
    background-color: #2196F3;
}

/* When the checkbox is checked, add a blue background */
.checkbox input:disabled~.checkmark {
    cursor: initial;
    border: 1px solid #ccc;
}

.checkbox:hover input:disabled~.checkmark {
    background-color: #eee;

}



/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.pagination li {
    background-color: var(--grey-light);
    color: #404055;
    padding: 0.2em 0.5em;
    margin: 0 0.2em;
    border-radius: 5px;
}

.pagination a,
.pagination input {
    text-decoration: none;
    color: var(--text-dark);
}

.pagination li.active {
    background-color: var(--blue);
}

.pagination li.disabled a {
    color: var(--grey-medium);
    cursor: default;
}

.pagination li.active a {
    color: white;
}

.pagination input {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-weight: normal;
}

.search-field input[type="text"] {
    padding-right: 30px;
    /* Ajustez la taille en fonction de vos besoins */
}

.search-field {
    position: relative;
}

.search-button {
    position: absolute;
    top: 0.35em;
    right: 0.2em;
    border: none;
    background: none;
    cursor: pointer;
}

.search-section,
.filter-section {
    width: 50%;
}

.filter-section .filters {
    display: none;
}

/* .filter-section .filters select {
    display: block;
} */

.filter-active {
    font-size: 0.9em;
    color: white;
    padding: 0.2em 0.5em;
    border-radius: 30px;
    margin-right: 0.2em;
    background-color: var(--orange);
}

.partners .partner-info {
    display: flex;
    flex-wrap: wrap;
    margin: 0.5em 0;
    padding: 0.5em;
    background-color: var(--grey-light);
    border-radius: 5px;
}


.form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-group .input {
    padding: 0 0.2em;
}

.form-group.two .input {
    width: 50%;
}

.form-group.three .input {
    width: 33%;
}

.form-group.four .input {
    width: 25%;
}


.ck-editor__editable_inline:not(.ck-comment__input *) {
    height: 200px;
    overflow-y: auto;
}

@media screen and (max-width: 834px) {
    section {
        padding: 4em 1em 1em 1em;
    }

    .bloc {
        padding: 1em;
    }

    .bloc2 {
        width: 100%;
    }


    .filepond--item {
        width: calc(50% - 0.5em);
    }

    .form,
    .search-section,
    .filter-section,
    .form-group.two .input,
    .form-group.three .input,
    .form-group.four .input {
        width: 100%;
    }

    .library .categories a {
        width: 99%;
    }

    .bloc .content .figure span {
        font-size: 1.2em;
    }


}

.filepond--item {
    width: calc(33% - 0.5em);
}


.text-block {
    color: var(--orange);
}

.add-engagement input[type="number"]:not(.partner input) {
    max-width: 200px;
}

.step-1,
.step-2,
.step-3,
.step-4,
.step-5 {
    color: var(--grey-dark);
    background-color: var(--grey-light);
    padding: 0.5em 1.5em 0.5em 1em;
    margin-right: 0.8em;
    margin-bottom: 0.5em;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.current-step {
    font-weight: bold !important;
    color: var(--text-light);
    background-color: var(--green) !important;
}

.prev-step {
    font-weight: normal;
    color: var(--text-light);
    background-color: var(--green);

}

.current-step .figure {
    padding: 0 0.5em;
    border-radius: 30px;
    background-color: white;
    color: var(--green);
}

.final-title {
    color: var(--text-light);
    background-color: var(--blue);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.2em;
    padding: 0.3em;
    margin-bottom: 1em;
}

.item-title:not(.flexdatalist-results .item-title) {
    font-weight: 600;
    width: 250px;
    padding: 0.3em;
    border: 1px solid var(--yellow);
    background-color: var(--yellow);
}

.item-info:not(.budget) {
    width: calc(100% - 250px);
    padding: 0.3em;
    border: 1px solid var(--yellow);
}

.item-info.budget {
    width: 100px;
    padding: 0.3em;
    border: 1px solid var(--yellow);
}

.add-engagement .input {
    flex-direction: row;
    align-items: center;
}

.add-engagement .input label:not(.radio-label label) {
    width: 250px;
}

.radio-label label {
    font-weight: 400;
}

.add-engagement .input input[type="text"]:not(table input[type="text"]),
.add-engagement .input textarea:not(table textarea) {
    width: calc(100% - 250px);
}

label {
    margin-bottom: 0;
}


@media screen and (max-width: 834px) {
    .add-engagement {
        font-size: 0.8em;
    }

    .add-engagement .input {
        flex-direction: column;
    }

    .add-engagement .input.text input,
    .add-engagement .input.textarea textarea {
        width: 100%;
    }


    .item-title,
    .item-info {
        width: 50% !important;
    }

    .add-engagement .input {
        align-items: flex-start;
    }

    .add-engagement .input input[type="text"]:not(table input[type="text"]),
    .add-engagement .input textarea:not(table textarea) {
        width: 100% !important;
    }

    .input .ck-editor {
        width: 100% !important;
    }

}

.table-action {
    color: var(--text-light) !important;
    border-radius: 10px;
    padding: 0.4em 0.6em;
    border: 0;
}

.table-action.edit {
    background-color: var(--orange);
}

.table-action.delete {
    background-color: var(--red);
}


.table-action.view {
    background-color: var(--yellow);
}

.table-action.success {
    background-color: var(--green);
}

.table-action.duplicate {
    background-color: var(--blue);
}


.table-action.pdf {
    background-color: var(--grey-dark);
}

.table-action.pdf.inactive {
    background-color: var(--grey-medium);
}


.table-action.button.delete:hover {
    background-color: var(--red);
}

.table-action:hover {
    text-decoration: none;
    color: white;
}

.filter-submit {
    background-color: var(--blue);
    color: white;
    border: var(--blue);
}


.switch input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.switch label {
    cursor: pointer;
    text-indent: -9999px;
    width: 60px;
    height: 30px;
    background: var(--red);
    display: block;
    border-radius: 100px;
    position: relative;
}

.switch label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.switch input:checked+label {
    background: var(--green);
}

.switch input:checked+label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

.switch label:active:after {
    width: 24px;
}