:root {
    /* COLORS */
    --primary-color: #6941C6;
    --second-color: #7F56D9;
    --text-color: #535862;
    --light-gray-color: #FAFAFA;
    --strocke-color: #E9EAEB;
    --body-color: #F9FAFB;
    --font-color: #181D27;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system;
    background-color: var(--body-color);
    color: var(--font-color);
}

i {
    margin-right: 5px;
}

button {
    all: unset;
}

.container {
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: auto 1fr;
}

.sidebar-hidden {
    grid-template-columns: 1fr;
}

.m-2 {
    margin: 20px 0;
}

.mb-2 {
    margin-bottom: 20px;
}

/*==============================*/
/*                      BOUTONS*/

.btn {
    text-decoration: none;
    border-radius: 8px;
    padding: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    opacity: 0.5;
}

.btn--primary {
    background-color: var(--second-color);
    color: var(--light-gray-color);
}

.btn--second {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: #ffffff;
}

.btn--second:hover {
    background: var(--second-color);
    color: var(--light-gray-color);
}

.btn-section {
    justify-content: center;
    gap: 20px;
}

.logo {
    /* margin-right: auto; */
    font-size: 2rem;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: var(--primary-color);
}

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

.card {
    min-height: 76px;
    width: 180px;
    background: #FFFFFF;
    padding: 25px;
    border: 1px solid #EAECF0;
    border-radius: 8px;
    margin-bottom: 80px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

input {
    width: 292px;
    height: 35px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.bar-search {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0;
}

.bar-filter {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 80px;
}

.filter-group-select {
    width: 160px;
    padding: 0.625em;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid var(--strocke-color);
    cursor: pointer;
}

.filter-group label {
    margin-right: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.filters-reset {
    color: var(--font-color);
    text-decoration: none;
    display: flex;
    padding: 0.625em;
    cursor: pointer;
}

/*==============================*/
/*                       TABLE*/
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* table-layout: fixed; */
}

.table thead {
    background-color: var(--light-gray-color);
}

.table td,
th {
    padding: 0.75em 0.9375em;
    text-align: left;
}

.table td {
    border-top: 1px solid #edf2f7;
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}

.table th {
    font-weight: 600;
}

.table tr:hover {
    background-color: #f9fafb;
}

/*==============================*/
/*                       BADGE*/
.badge {
    display: inline-block;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 3px 7px;
    font-size: 12px;
    min-height: 24px;
    line-height: 1;
}

.badge--trainer {
    background-color: #FDF7EC;
    color: #7A6802;
}

.badge--customer {
    background-color: #ECF7FD;
    color: #024A7A;
}

.badge--collab {
    background-color: #FDECF9;
    color: #7A025C;
}

.badge-actif {
    background-color: #ECFDF3;
    color: #027A48;
}

.badge-maintenance {
    background-color: #FFF4ED;
    color: #C4320A;
}

.badge-null {
    background-color: #FFF1F3;
    color: #C01048;
}

.badge-days {
    background-color: #e9dfff;
    color: var(--primary-color);
}

.alert{
    padding: 20px;
    margin: 10px;
    border-bottom: 1px solid #6941C6;
    border-top: 1px solid #6941C6;
    background-color: #a578f7;
    color: #ffffff;
    font-weight: 600;
}

.textarea_description {
    height: 120px;
    width: 100%;
    resize: none;
}

/*=======================================================*/
/*                                                 LOGIN*/
.login__back-button {
    padding: 30px;
    position: absolute;
    top: 20px;
    left: 20px;
}

.login__back-button i {
    font-size: 2rem;
}

.login .login__form h1 {
    color: #6941C6;
    font-size: 2.5rem;
}

.login .login__form p {
    font-weight: bold;
}

.login {
    width: 100%;
    height: 97vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.login__container {
    width: 487px;
    height: 609px;
    background-color: #ffffff;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.25);
    border-radius: 30px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login__input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.login .btn {
    padding: 1em 2em;
    background-color: #6941C6;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.login__form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login__form {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.login__form-container a {
    color: var(--font-color);
}

/*===================================================================*/
/*                                                 NAVBAR INTERFACE*/

.navbar {
    width: 100%;
    height: 70px;
    background: #FFFFFF;
    /* border-bottom: 1px solid #ddd; */
    box-shadow: inset 0 -1px 0 #c5c5c6;
    padding: 20px;
    position: fixed;
    z-index: 2;
}

.navbar--user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-icon {
    display: flex;
}

.navbar__menu {
    list-style: none;
    padding-right: 100px;

    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar__item {
    display: inline-block;
}

.navbar__link {
    color: #344054;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar__logo {
    color: #7e4adf;
    font-size: 2rem;
}

.icon_profil {
    font-size: 2rem;
}

.user-section {
    display: flex;
    gap: 10px;
}

.user-name {
    display: flex;
    flex-direction: column;
}

.type-user {
    color: var(--text-color);
}

/*===================================================================*/
/*                                                SIDEBAR INTERFACE*/
.sidebar {
    height: 100%;
    width: 270px;
    background-color: #FFFFFF;
    padding: 100px 20px;
    border-right: 1px solid #ddd;
    transition: width 0.3s ease;
}

.sticky-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar .navbar__link {
    height: 50px;
    width: 200px;
    color: var(--font-color);
}

.sidebar-items {
    position: relative;
    height: 60px;
    border-radius: 8px;
    margin-top: 2px;
}

.sidebar i {
    margin: 10px;
}

.sidebar-items:hover {
    background-color: rgba(127, 86, 217, 0.08);
}

/* Barre violette à droite de la sidebar*/
.sidebar-items::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0%;
    background-color: #7F56D9;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.sidebar-items:hover::after {
    height: 100%;
}

.sidebar--ligne {
    margin: 25px 0 25px 0;
}

.sidebar-items--bottom .sidebar-items {
    margin-top: 15px;
}

.sidebar-items--bottom form {
    margin-top: 15px;
}

/* REDUCTION DE LA SIDEBAR */
#toggleBtn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.sidebar.reduced .link-text {
    display: none;
}

.sidebar.reduced {
    width: 60px;
}

.sidebar.reduced i {
    margin: 0;
}

/* On cache le texte des liens quand la sidebar est réduite */
.sidebar.reduced .link-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
    display: inline-block;
}

/* Pour éviter que le layout casse */
.link-text {
    display: inline-block;
    margin-left: 10px;
}

.content {
    padding: 100px 20px;
    width: 100%;
}

/* FORMULAIRE */
.form-disable {
    background-color: #e9ecef;
    color: #6c757d;
    border: 1px solid #ced4da;
    pointer-events: none;
}

/*=======================================================*/
/*                                       PAGE  DASHBOARD ADMIN*/
/*CONTENU*/

.dashboard_card {
    width: 25%;
    height: 130px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--strocke-color);
    padding: 2em;

    display: flex;
    flex-direction: column;
    position: relative;
}

.dashboard_card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #6941C6, #7F56D9);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.dash_cards_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 30px;
    margin: auto;
}

.stat {
    font-weight: 600;
    font-size: 2em;
}

/*=========================================================*/
/*                                 PAGE  LOCATION (v WEB) ADMIN*/
.actions {
    color: var(--font-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

/*=========================================================*/
/*                                              (v PHONE) ADMIN*/
.phone-screen {
    height: auto;
    width: 100vw;
    padding: 20px;
}

.section-filter {
    display: none;
}

.phone-screen .btn {
    padding: 0.76em;
}

.phone-screen .flex-center {
    gap: 33px;
}

.location-container {
    padding: 0.5em;
}

.location-id-section {
    margin-bottom: 10px;
}

.location-id-section p {
    font-weight: bold;
    color: var(--second-color);
}

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

.section-filter {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--strocke-color);
    border-radius: 8px;
    background-color: #ffffff;
}

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

.section-filter .filters-reset {
    padding: 0;
}

.location-card {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--strocke-color);
    border-radius: 8px;
    padding: 2em;
}

.location-description {
    width: 100%;
}

.location-description td {
    text-align: end;
    padding: 12px 0;
}

.location-description th {
    padding: 12px 0;
}

.location-name-section {
    line-height: 1.5;
}

.line {
    margin: 1.5em 0;
    color: var(--strocke-color);
}

.location-card .btn-section {
    margin-top: 20px;
}

.location-card .btn-section a {
    width: min(80px);
}

.btn-filter {
    cursor: pointer;
}

.phone-screen {
    display: none;
}

.form_addUser {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form_container {
    width: 90%;
    background-color: #ffffff;
    border: 1px solid var(--strocke-color);
    border-radius: 10px;
    padding: 30px 50px;
}

.form_btn {
    display: flex;
    gap: 30px;
}

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

.form_addUser .flex {
    width: auto;
    gap: 20px;
}

.form_addUser label {
    font-weight: 600;
}

/*=========================================================*/
/*                                        USER DASHBOARD */
.flex-end {
    display: flex;
    justify-content: end;
    gap: 20px;
}

.user_dash_container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.user_dash_container .form_container {
    padding: 30px 50px;
}

/*=========================================================*/
/*                                      ADMIN DEMANDE LOC */

.btn_form form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}



.container-fiche-location{
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.container-fiche-location .form_container{
    width: 100%;
}

.container-detail-location{
    display: flex;
    gap : 30px;
    flex-wrap: wrap;
}

.container-detail-location .form_container {
    flex: 1 1 45%; /*gestion du responsive*/
    min-width: 450px;
}


.fiche-container-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.fiche-card-location{
    display: flex;
    align-items: center;
    min-width: 10vw;
}

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

.fiche-location-container{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/*=========================================================*/
/*                                             RESPONSIVE */

@media (max-width: 985px) {

    /* LOCATION */
    .phone-screen {
        display: block;
    }

    .web-screen,
    .sidebar,
    .navbar__menu {
        display: none;
    }

    .content {
        padding: 80px 0;
    }

    /* LOGIN */
    .bi-arrow-left-square {
        display: none;
    }

    .login__container {
        box-shadow: none;
    }

    /* FORM CLIENT */
    .form_container {
        width: 100%;
    }

    .form_mobile {
        padding: 10px;
    }

    .form_addUser .flex {
        max-width: 600px;
        gap: 10px;
    }

    .input_group {
        flex-direction: column;
    }

    .form_addUser {
        align-items: center;
    }


}

@media (max-width: 1200px) {
    /* .sidebarToggle {
        display: none;
    } */

    /* LOCATION */
    /* .sidebar {
        display: none;
    } */

    .container {
        display: flex;
        justify-content: center;
    }

    /* FICHE-TECH */
    /* .fiche-card {
        padding: 40px 20px;
    
    .fiche-tech {
        width: 100vw;
    } */

}