/* @import url(reset.css);
@import url(mediaqueries.css);
@import url(css/color/color.css);
@import url(css/table.css);
@import url(css/forms.css);
@import url(css/modal.css); */

/* @import url(css/header.css); */

/* @import url(css/footer.css);
@import url(css/home.css);
@import url(css/contributions.css);
@import url(css/buttons.css);
@import url(css/problems.css);
@import url(css/projets.css);
@import url(css/team.css);
@import url(css/pie_chart.css); */

/* @import url(css/action.css); */

@import url(css/rating.css);
@import url(css/resolutions.css);
@import url(css/gauge.css);

/* || Typographie */

/* Normal */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter/Inter-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Semi-bold */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

/* || Général */

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    max-height: 100vh;
}

body > main {
    display: flex;
    flex-direction: column;
    width: 89%;
    overflow: hidden;
}

@media screen and (min-width: 901px) and (orientation: portrait) and (orientation: landscape) {
    html, body {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

@media screen and (max-width: 900px) {
    body > main {
        height: 0;
    }
}

html {
    /* 1rem = 10px */
    /* font-size: 62.5%; */
    font-size: 58%;
}

body {
    display: flex;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--color-background);
}

body a {
    text-decoration: none;
}

.messages {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 1.6rem;
    right: 1.6rem;
    gap: 0.8rem;
    z-index: 2000;
    transition: visibility 500ms, opacity 500ms;
}

button {
    cursor: pointer;
}

.messages .error, .messages .warning, .messages .success, .messages .info {
    padding: 1.6rem;
    border-radius: 5px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 0 1px rgba(26, 32, 36, 0.32), 0 1px 2px rgba(91, 104, 113, 0.32);
}

.messages .error {
    background-color: red;
}

.messages .warning {
    background-color: orange;
}

.messages .success {
    background-color: green;
}

.messages .info {
    background-color: dodgerblue;
}

.messages-fading-out {
    visibility: hidden;
    opacity: 0;
}

.invisible {
    display: none;
}

.visible {
    display: flex;
}

/**
Overlay
 */
.overlay {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.overlay-1 {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

/**
Main
 */
body > main .h1 {
    font-size: 2.4rem;
    color: var(--color-primary);
    margin-left: 2rem;
}

.page-header {
    display: flex;
    padding: 1.6rem 3.2rem;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 4rem;
    height: 2rem;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-closed-light);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.6rem;
    width: 1.6rem;
    left: 0.2rem;
    bottom: 0.2rem;
    background-color: var(--color-closed);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--color-highlight-light);
}

input:checked + .slider:before {
    /*-webkit-transform: translateX(2rem); */
    -ms-transform: translateX(2rem);
    transform: translateX(2rem);
    background-color: var(--color-highlight);
}

/* Rounded sliders */
.slider.round {
    border-radius: 9999px;
}

.slider.round:before {
    border-radius: 50%;
}

@media only screen and (max-width: 900px) {
    .switch {
        height: 1.6rem;
        width: 3.6rem;
    }

    .slider:before {
        height: 1.2rem;
        width: 1.2rem;
        left: 0.2rem;
        bottom: 0.2rem;
    }

    input:checked + .slider:before {
        /* -webkit-transform: translateX(26px); */
        -ms-transform: translateX(2rem);
        transform: translateX(2rem);
    }

    .filter-button {
        display: flex;
        gap: 0.8rem;
    }

    .filters-actions {
        display: flex;
        /* padding-inline: 3.2rem; */
        flex-direction: column;
    }
}

.color-important {
    color: white;
    background-color: var(--color-secondary);
    border: none;
}

.container {
    display: flex;
    flex-grow: 1;
    margin: 1rem 2rem 0 2rem;
    gap: 1.6rem;
    background-color: var(--color-background);
    height: 0;
    overflow-y: auto;
}

.container--column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 1rem 2rem 0 2rem;
    gap: 1.6rem;
    overflow: hidden;
}

.container-filters {
    padding: 0 3.2rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    overflow-x: scroll;
}


@media screen and (min-width: 900px) {
    .container-filters-action {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
}

@media screen and (max-width: 900px) {
    .container-filters {
        display: flex;
        gap: 0.8rem;
        padding-inline: 1rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .container-filters-action {
        align-items: center;
        gap: 0.8rem;
    }

}

.filters {
    display: flex;
    /* padding: 0 3.2rem; */
    gap: 0.8rem;
    align-items: center;
}


.filters__group {
    display: flex;
    /*padding: 1.6rem 3.2rem;*/
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-box {
    box-sizing: border-box;
    width: 50%;
    padding: 2rem;
    padding-inline: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
}

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

.left-2 {
    display: flex;
    flex-direction: column;
    /*padding: 1vh 0 1vh 0;*/
    flex-grow: 2;
    flex-basis: 0;
}

.center {
    display: flex;
    flex-direction: column;
    /*padding: 1vh 0 1vh 0;*/
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    flex-grow: 1;
    flex-basis: 0;
}

.right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 50%;
    gap: 1.6rem;
}

.right-2 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 30%;
    gap: 1.6rem;
}

.right-2-project {
    display: flex;
    flex-direction: column;
    width: 30%;
    gap: 1.6rem;
}

.section {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.top-section {
    margin-bottom: 1vh;
}

.row {
    display: flex;
    flex-direction: row;
}

.left-section {
    margin-right: 1vh;
}

.right-section {
    margin-left: 1vh;
}

/* Boutons */

.button-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.button-container-inline {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.6rem;
}

.button-container-inline-end {
    width: 100%;
    display: flex;
    justify-content: end;
    gap: 1.6rem;
}

.button-width {
    width: calc(100% / 3);
}

.button-width-4 {
    min-width: calc(100% / 4);
}

/* hr et vr */
.separator {
    height: 1px;
    width: 100%;
    background-color: var(--color-mid-gray-5);
}

/* ------ */

.container-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1.6rem;
}

.container-row {
    display: flex;
    flex-direction: row;
    gap: 1.6rem;
    width: 100%;
    font-size: 1.4rem;
}

.bi-chevron-down {
    transition: transform 0.25s ease;
}

.rotate90 {
    -webkit-transform: rotateZ(90deg);
    -ms-transform: rotateZ(90deg);
    transform: rotateZ(90deg);
}

.rotate180 {
    -webkit-transform: rotateZ(180deg);
    -ms-transform: rotateZ(180deg);
    transform: rotateZ(180deg);
}

@media screen and (max-width: 900px) {
    main {
        flex-grow: 1;
    }

    /*.container {*/
    /*    flex-direction: column;*/
    /*}*/
    .right-2, .right-2-project {
        width: 100%;
    }

    .button-container {
        flex-direction: row;
    }

    .separator {
        height: auto;
        width: 1px;
    }
}

.accordions {
    cursor: pointer;
}

.tools-info {
    display: flex;
    flex-direction: column;
    align-items: end;
    text-align: end;
    gap: .4rem;
}

.tools-info .title-problem {
    color: var(--color-secondary);
}

.title-year {
    display: flex;
    align-items: center;
    font-size: 3rem;
}

.title-param {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Dropdown */
.dropdown-button svg {
    width: 2.4rem;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
}


.dropdown-container-responsive {
    display: flex;
    flex-direction: column;
}

.dropdown-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 5rem;
    left: 0;
    z-index: 10;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border-radius: 20px;
}

.dropdown-list li {
    display: flex;
    cursor: pointer;
    padding: 1.6rem;
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: var(--color-dark-gray-2);
    background-color: var(--color-white);
    border-left: solid 1px var(--color-light-gray-2);
    border-right: solid 1px var(--color-light-gray-2);
    border-bottom: solid 1px var(--color-light-gray-2);
    width: 100%;
    transition: background-color ease-in-out 100ms;
}

.dropdown-list li:hover {
    background-color: var(--color-light-gray-2);
}

.dropdown-list a {
    color: var(--color-dark-gray-2);
    font-size: 1.2rem;
    line-height: 1.6rem;
}

/* Filtres */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    background-color: var(--color-secondary);
    border: none;
    padding: 0.8rem;
    /*align-self: flex-start;*/
    cursor: pointer;
    border-radius: 8px;
}

.filter-others {
    display: none;
    gap: 0.8rem;
    /*width: 100%;*/
}

@media only screen and (min-width: 900px) {
    .filter-others {
        display: flex;
    }

    .filters-bar {
        display: flex;
        gap: 0.8rem;
        align-items: center;
    }

    .filter-toggle {
        display: none;
    }

    .search-filter-order-by {
        display: flex;
        gap: 0.8rem;
        align-items: center;
    }

    .filters-actions {
        display: flex;
        /* padding-inline: 3.2rem; */
        align-items: center;
    }
}

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--color-light-gray-2);
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
    color: var(--color-mid-gray-5);
    font-style: italic;
}

.disabled p:first-of-type {
    background-color: var(--color-mid-gray-5);
}


/* Style de la barre de défilement verticale */
.visible-scroll::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre de défilement */
}

.visible-scroll::-webkit-scrollbar-track {
    background: var(--color-light-gray-1); /* Couleur de fond de la piste de défilement */
}

.visible-scroll::-webkit-scrollbar-thumb {
    background: var(--color-mid-gray-5); /* Couleur de la poignée de défilement */
    border-radius: 4px;
}

.visible-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-mid-gray-3); /* Couleur de la poignée de défilement au survol */
}

.round-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    border-radius: 9999px;
    padding: 0.6rem;
}

/*label:has(input[required])::before {
    content:'*';
    color: red;
}*/

/* Icônes des indicateurs */

.icon-with-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2rem;
}

.icon-with-number .icon {
    height: 100%;
}

.icon-with-number .number {
    font-size: 1rem;
    font-weight: bold;
}

/* Cartes */

.card {
    border-radius: 8px;
    background-color: white;
    -webkit-box-shadow: 0 1px 3px 0 #606C800D;
    -moz-box-shadow: 0 1px 3px 0 #606C800D;
    box-shadow: 0 1px 3px 0 #606C800D;
}

.card--column {
    display: flex;
    flex-direction: column;
}

.card--row {
    display: flex;
}

.card__footer {
    box-shadow: 0 1px 4px 0 #00000033;
    background-color: var(--color-closed-light);
}

/* Onglets */

.tabs {
    display: flex;
    justify-content: space-between;
    margin-inline: 3.2rem;
    gap: .8rem;
}

.tabs__list {
    display: flex;
    gap: 2.4rem;
    overflow-x: auto;
}

.tabs__list-item {
    display: flex;
    align-items: center;
}

.tabs__link {
    display: flex;
    gap: .4rem;
    align-items: center;
    font-weight: 600;
    text-wrap: nowrap;
}

.tabs__link__text {
    font-size: 1.4rem;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    margin: 5px 0; /* Pour afficher le soulignage */
}

.tabs__link__number {
    font-size: 1rem;
    padding: .8rem;
}

.tabs__link__number--color-highlight-light {
    background-color: var(--color-highlight-light);
}

.tabs__link--color-closed {
    color: var(--color-closed);
}

.tabs__link__number--color-closed-light {
    background-color: var(--color-closed-light);
}

.tabs__link--color-action {
    color: var(--color-action);
}

.tabs__link__number--color-action-light {
    background-color: var(--color-action-light);
}

.tabs__link--color-calendar {
    color: var(--color-calendar);
}

.tabs__link--color-activity {
    color: #16A34A;
}

.tabs__link--color-event {
    color: var(--color-event);
}

.tabs__link__--color-action {
    color: var(--color-action);
}


.tabs__link__number--color-calendar-light {
    background-color: var(--color-calendar-light);
}

.tabs__link--color-file {
    color: var(--color-file);
}

.tabs__link__number--color-file-light {
    background-color: var(--color-file-light);
}

/* Onglet Nc */

.tabs_dashboard_nc {
    display: flex;
}

.tabs__list_dashboard_nc {
    display: flex;
    gap: 0.1rem;
}

.tabs__list-item_dashboard_nc {
    display: flex;
    align-items: center;
    padding: .6rem 1.2rem .6rem 1.2rem;
    /* padding : 1.2rem 1.8rem 2rem 1.8rem; */
}

.tabs__link_dashboard_nc {
    border: 1.5px solid #ccc;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tabs__link_dashboard_nc_highlight {
    background-color: white;
    border-bottom: none;
}

.tabs__link__text_dashboard_nc {
    font-size: 1.4rem;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    margin: 5px 0;
}

/* Formulaire */

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

.input::placeholder {
    color: var(--color-closed);
}

.form-fieldset legend {
    display: flex;
    align-items: center;
    padding-inline: 0.8rem;
    gap: 0.8rem;
}

.form-hidden {
    display: none;
}

.pointer-fieldset {
    cursor: pointer;
}

/* users picture */

.users-picture {
    object-fit: cover;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    align-items: center;
}

.users-picture-card {
    object-fit: cover;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    align-items: center;
}

/* Rend un conteneur scrollable verticalement */
.scrollable {
    overflow-y: auto;
}

/* Disparition déclenchée par JS */
.vanish {
    transition: opacity 0.1s ease-out;
}

/* le select de la menu bar */
/* .project-details-select{
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 600;
    color: white;
    border: 1px solid var(--color-mute);
    background-color: var(--color-secondary);
    border-radius: 8px;
    padding: 0.5rem;
} */

.project-details-select {
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 600;
    /* color: white; */
    border: 1px solid var(--color-secondary);
    background-color: white;
    border-radius: 8px;
    padding: 0.5rem;
}


.project-details-select:focus,
.project-details-select:active {
    outline: none; /* Remove the default outline/border when the select element is focused or active */
}

/* search bar */
.search-filters {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.filters-project-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-width: fit-content;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    right: 0;
    border: none;
    background: white;
    height: 100%;
    border: 1px var(--color-mute) solid;
    border-radius: 0 8px 8px 0;
    background-color: var(--color-secondary);
    color: white;
    transition: all 0.2s ease-in-out;
}

.search-button:hover {
    background-color: white;
    color: var(--color-secondary);
}

.filter-search-group {
    width: 23rem;
}

.temp-hidden {
    display: none !important;
}

.button-upload {
    border: none;
    background-color: transparent;
}

.button-upload:hover {
    background-color: white;
}


.dropdown-list-2 {
    display: none;
    flex-direction: column;
    position: absolute;
    z-index: 1;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border-radius: 20px;
    width: min-content;
    top: 0;
    right: 100%;
}

.dropdown-list-2 li {
    display: flex;
    cursor: pointer;
    padding: 1.6rem;
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: var(--color-dark-gray-2);
    background-color: var(--color-white);
    border-left: solid 1px var(--color-light-gray-2);
    border-right: solid 1px var(--color-light-gray-2);
    border-bottom: solid 1px var(--color-light-gray-2);
    width: 100%;
    transition: background-color ease-in-out 100ms;
}

.dropdown-list-2 li:hover {
    background-color: var(--color-light-gray-2);
}

.dropdown-list-2 a {
    color: var(--color-dark-gray-2);
    font-size: 1.2rem;
    line-height: 1.6rem;
}

.button-upload-2 {
    border: none;
    background-color: transparent;
    text-decoration: none;
    text-wrap: nowrap;
}

/* Texte qui défile automatiquement */
.container-scrolling-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    overflow-x: hidden; /* masque le texte qui dépasse */
    position: relative;
}

.container-scrolling-text .line {
    position: relative;
    height: 1.5em; /* ajuster selon la hauteur de la ligne de texte */
    white-space: nowrap; /* empêche le texte de passer à la ligne */
    transform: translateX(0); /* Position initiale */
    transition: transform 0s; /* Transition désactivée par défaut */
}

.truncate-3-lines {
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (max-width: 900px) {
    .tabs {
        flex-direction: column-reverse;
        gap: 1.2vh;
    }

    .filters-bar {
        display: none;
        gap: 0.8rem;
        align-items: center;
        padding-bottom: 0.8rem;
        justify-content: space-between;
        padding-inline: 3.2rem;

    }

    .filters-phone {
        display: flex;
        gap: 0.8rem;
        align-items: center;
        padding-bottom: 0.8rem;
        justify-content: space-between;
        padding-inline: 3.2rem;
        width: 100%;
    }

    .tabs__list {
        gap: 0.8rem;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
}

[aria-label="breadcrumb"] {
    display: flex;
    align-items: center;
}


.breadcrumb a {
    color:black;
}

.breadcrumb-chevron {
    color: var(--color-secondary);
    font-weight: bold;
}

.project-name-full {
    display: none;
}

.text-visibility-phone{
    display:flex;
}

.breadcrumb-last-text {
    font-weight: 600;
}

@media (min-width: 900px) {
    .project-name-full {
        display: inline;
    }
   
    .text-visibility-phone{
        display:none;
    }
}