.form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    font-size: 1.4rem;
    line-height: 2.4rem;
    width: 100%;
}

.form-label {
    display: flex;
    flex-direction: column;
    color: var(--color-mid-gray-1);
    gap: 0.8rem;
}

/* Style pour le champ obligatoire */
input.form-input-required {
    background-color: #c3def5; /* Couleur de fond légère */
    border: 1px dashed darkblue; /* Bordure colorée pour attirer l'œil */
}

/* Changement de style au focus */
input.form-input-required:focus {
    background-color: #e6f7ff; /* Couleur légèrement différente au focus */
    border-color: #ff6347;
}

/* Ajouter un astérisque rouge pour indiquer que le champ est obligatoire */
input.form-input-required + label:before {
    content: '*';
    color: #ff4500; /* Couleur de l'astérisque */
    margin-right: 4px;
}

/* Style pour le champ rempli */
input.form-input-filled {
    background-color: #ffffff; /* Couleur de fond par défaut */
    border: 1px solid #ccc; /* Bordure par défaut */
}

input.form-input-lock {
    background-color: #f5f5f5;
    color: #888888;
    border: 1px solid #ddd;
    cursor: not-allowed;     
}

.form-label-radio-inline {
    display: flex;
    /* flex-direction: column; */
    color: var(--color-mid-gray-1);
    gap: 0.8rem;
    align-items: center;
}

.form-label-inline {
    display: flex;
    align-items: center;
    color: var(--color-mid-gray-1);
    gap: 1.6rem;
    /*text-wrap: nowrap;*/
    justify-content: space-between;
    /*padding-left: 4%;
    padding-right: 4%;*/
}

.form-label-inline-dashboard {
    display: flex;
    align-items: center;
    color: var(--color-mid-gray-1);
    gap: 1.6rem;
    text-wrap: nowrap;
    justify-content: space-between;
}

.form-label-inline-label {
    flex-basis: 50%;
}

input[disabled], select[disabled] {
    background-color: var(--color-light-gray-2);
}

.form-label-inline-switch {
    display: flex;
    align-items: center;
    color: var(--color-mid-gray-1);
    gap: 1.6rem;
    text-wrap: nowrap;
    justify-content: space-between;
}

.form-label-inline-switch #id_note {
    flex-basis: 50%;
}

.form-label-inline input, .form-label-inline select, .form-label-inline-dashboard select {
    /*width:75%;*/
    /*margin-left:auto;*/
    flex-basis: 50%;
}

.form-label-inline-100 input {
    width: 100%
}

.filters-notification {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

.filters-notification div {
    display: flex;
    gap: 1.6rem;
}

.filters-notification div label {
    font-size: 1.2rem;
}

@media screen and (min-width: 900px) {
    .form-label-icon {
        display: flex;
        padding: 0.7rem;
        border: 1px solid var(--color-mute);
        background-color: var(--color-white);
        color: var(--color-text);
        gap: 1rem;
        align-items: center;
        border-radius: 8px;
        max-width: 25rem;
    }
}

.form-input-icon {
    border: none;
    color: var(--color-mid-gray-1);
    outline: none;
    width: 100%;
    font-size: 1.2rem;
}


.form-input {
    padding: 1rem;
    border: 1px solid var(--color-mute);
    background-color: var(--color-white);
    color: var(--color-text);
    width: 100%;
    border-radius: 8px;
}

.form-input-dashboard {
    padding: 0.5rem;
    border: 1px solid var(--color-mute);
    background-color: var(--color-white);
    color: var(--color-text);
    width: 100%;
    border-radius: 8px;
    font-size:1rem;
}

.form-input-maxwidth {
    max-width: 20rem;
    width: auto;
}

.form-visibility-hidden {
    /* display: none; */
    position: absolute;
    /* z-index: -1; */
    visibility: hidden;
}

.form-input-radio {
    /* padding: 1rem; */
    /* color: var(--color-mid-gray-1); */
    /* width: 100%; */
    display: flex;
    /* flex-basis: 50%; */
    /* justify-content: space-around; */
    /* margin: auto; */
    /* margin-right: 0; */
    gap: .8rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.form-input-radio label {
    display: flex;
    text-wrap: nowrap;
    align-items: center;
    vertical-align: middle;
    gap: .4rem;
}

#id_criticality div:first-child label, #id_urgency div:first-child label {
    color: green;
}

#id_criticality div:nth-child(2) label, #id_urgency div:nth-child(2) label {
    color: orange;
}

#id_criticality div:nth-child(3) label, #id_urgency div:nth-child(3) label {
    color: red;
}

#id_urgency div:nth-child(4) label {
    color: black;
    font-weight: bold;
}

.django-ckeditor-widget {
    width: 100%;
}

.cke_chrome {
    border: none !important;
    outline: 1px solid #d1d1d1 !important;
    outline-offset: -1px !important;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-left, .form-right {
    display: flex;
    flex-direction: column;
    /*gap: 1.6rem;*/
    gap: 0.8rem;
    flex-basis: 50%;
}

/* "Déprécié" */
.form-inputs:not(:last-of-type) {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.form-switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.form-switch img {
    height: 100%;
    margin-inline: 1rem;
}

.form-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-bottom: 2rem;*/
    gap: 1.6rem;
}

.form-buttons input {
    background-color: var(--color-secondary);
    font-family: 'Inter', sans-serif;
    color: white;
    padding: 2rem;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 4px 0 rgb(0, 0, 0, 0.25);
}

.form-buttons input:hover {
    cursor: pointer;
}

.form-buttons input:first-of-type {
    margin-right: 1rem;
}

.form-buttons input:last-of-type {
    margin-left: 1rem;
}

.errorlist li {
    font-size: 1.2rem;
    color: red;
}

.button-micro {
    display: inline-block;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background-color: #EDEDED;
    text-align: center;
    cursor: pointer;
    position: absolute;
    right: 5px;
    transform: translate(0, 50%);
    bottom: calc( 100% / 2 )
    /* z-index: 10; */
}

.button-micro-zone-ckeditor .button-micro {
    bottom:calc(1.65rem + 5px);
}


.button-micro-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 50%;
    border: none;
    background-color: var(--color-closed-light);
    color: var(--color-closed);
    text-align: center;
    cursor: pointer;
}

.button-micro .mic {
    margin: auto;
}

.button-micro .mic-mute {
    margin: auto;
    fill: var(--color-secondary)
}

.button-micro-zone {
    display: flex;
    justify-content: space-between;
    align-items: end;
    position: relative;
}

.button-micro-zone-ckeditor {
    display: flex;
    justify-content: space-between;
    align-items: end;
    position: relative;
}

.form-center {
    width: 50%;
    margin-inline: auto;
}

.form-column {
    width: 100%;
    flex-direction: row;
}

.form-fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border: 1px solid var(--color-light-gray-1);
    padding: 0.8rem;
    width: 100%;
}

.form-fieldset legend {
    color: var(--color-dark-gray-4)
}

/* #id_budget_estimated::before{
    content: "€";
    color: black;
} */

/*.symbole-euro{
    position:absolute;
    top:50%;
    right:50%;
    transform: translateY(-50%);
    pointer-events: none;
} */

.phone-box {
    display: flex;
    width: 50%;
}

.legend-with-chevron {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0px -10px 0 -5px;
}

.legend-with-chevron-lign {
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
    margin: 0 1rem;
}

.text-chevron {
    margin: 1rem;
    font-size: 1rem;
    color: var(--color-mute);
}

.legend-chevon {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.legend-title {
    cursor: pointer;
}

.select2-causes {
    flex-basis: 50%;
}

@media screen and (max-width: 900px) {
    .form-center {
        width: 100%;
    }


    .filters {
        display: flex;
        gap: .8rem;
        flex-direction: column;
    }

    .form-column {
        flex-direction: column;
    }

    .form-label-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label-inline input, .form-label-inline select {
        width: 100%
    }

    .phone-box {
        display: flex;
        width: 100%;
    }

    .form-label-icon {
        display: flex;
        padding: 0.7rem;
        border: 1px solid var(--color-mute);
        background-color: var(--color-white);
        color: var(--color-text);
        gap: 1rem;
        align-items: center;
        border-radius: 8px;
    }
}

input[type="radio" i] {
    margin: 0;
}