@media (max-width: 1400px) {
    #window-avatar {
        width: 100%!important;
    }
}

@media (max-width: 1110px) {
    #all-actions {
        background-position-y: 7em!important;
    }
}

@media (max-width: 970px) {
    #menu, .contact, #headerMenu, #footerMenu {
        display: none;
    }
}

@media (max-width: 760px) or (max-height: 690px) {
    #upLeft {
        display: none!important;
    }

    ul {
        flex-direction: column;
    }

    form {
        flex-direction: column;
    }

    #window-avatar-text {
        font-size: large!important;
    }

    .window-header-text, .window-footer-text {
        display: none;
    }
}

/* -- PARAMETRES NAVIGATEUR -- */
::-webkit-scrollbar {
    width: 3px;
}
  
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

/* ----- BALISES ----- */

body {
    margin: 0;
    position: fixed;
    width: 100%;
    color: white;
}

header {
    padding: 0 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

table {
    padding: 1em;
}

td p, th p {
    padding: 0 0.3em;
}

li {
    display: inline;
}

input[type="checkbox"] {
    width: auto;
}

h1 {
    margin: 0;
    padding: 0.2em;
    font-weight: bold;
    font-size: 1em;
}

h2 {
    margin: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    bottom: 0;
}

ul {
    text-align: center;
    margin: 0;
    padding: 0;
}

li {
    display: inline;
}

p {
    margin: 0.5em;
}

button {
    padding: 5px 7px;
    font-family: inherit;
    font-size: 1em;
    background-color: black;
    color: white;
    border-radius: 2em;
}

button:disabled {
    opacity: 0.5;
}

button:not(:disabled):hover {
    cursor: pointer;
}

button a {
    padding: 0.5em;
    color: white;
    text-decoration: none;
}

button p {
    display: inline;
}

form {
    display: flex;
    justify-content: center;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    resize: none;
    padding: 5px;
    border-radius: 5px;
    box-sizing: border-box;
}

label {
    color: black;
}

.mainMenu {
    padding: 5px 10px;
}

.buttonCount {
    background-color: white;
    color: black;
    border-radius: 10px;
    padding: 0px 3px;
}

#headerUserAvatar {
    display: flex;
    align-items: center;
    height: 100%;
}

.user-avatar {
    width: 2.5em;
    margin: auto;
    border-radius: 100px;
}

#toggleColor {
    margin: 0 4px;
}

.mainAction {
    font-size: 2.5em;
    vertical-align: text-bottom;
    margin-left: 10px;
    font-weight: bold;
}

.mainActionTitle {
    margin: 0;
}

.action p {
    margin: 0 0.2em;
}

#buttonsBottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 80px;
}

#buttonsBottom i {
    font-size: 3em;
}

.buttonBottom {
    padding: 0px 20px;
}

.buttonBottomText {
    font-size: 1.5em;
    margin: 5px 0px;
}

#upLeft {
    position: absolute;
}

#upMiddle {
    padding-top: 10px;
}

#upRight {
    position: absolute;
    right: 15px;
    top: 60px;
}

#logoMiddle {
    position: relative;
    display: flex;
    justify-content: center;
}

#logoSoft {
    display: flex;
}

#logoSoft img {
    width: 50%;
}

.date {
    padding-left: 1em;
}

.copyright {
    padding-right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* -- WINDOW -- */

#box {
    display: none;
    z-index: 9999;
    position: absolute;
    width: 100%;
    height: 100%;
}

.windowButton {
    margin: 0 1vh;
    align-self: center;
    border: white 2px solid;
}

.windowButtonBefore {
	justify-self: start;
}

.windowButtonAfter {
	justify-self: end;
}

#window {
    overflow: auto;
    text-align: center;
    background-color: #b195c3e0;
    margin: auto;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#window-header {
    padding: 3px;
    font-size: larger;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#window-header-icon {
    padding: 3px;
}

#window-header-titre {
    font-weight: bold;
}

#window-header button, #window-footer button {
    font-size: 20px;
    font-weight: bold;
}

#window-header #window-avatar {
    width: 2em;
    padding: 0.2em;
    border-radius: 100px;
    margin: 0;
}

#window-header h1 {
    margin: 0.5em;
    padding: 0;
}

#window-content {
    overflow: auto;
}

#window-avatar {
    display: inline-block;
    box-sizing: border-box;
    width: 70%;
    background-color: #d2c4db;
    padding: 1em;
    margin: 1em 0;
    border-radius: 16px;
    box-shadow: 0px 5px 10px black;
}

#window-avatar-img-text {
    display: flex;
    margin: 5px 0;
}

#window-avatar-img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    border-radius: 100px;
}

#window-avatar-text {
    margin: auto;
    font-size: x-large;
    line-height: 1.2;
    font-weight: bold;
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 10px 15px;
    width: 100%;
    color: black;
}

#window-main {
    width: auto;
    min-width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#window-choices {
    display: none;
    background-color: white;
    padding: 10px 15px;
    border-radius: 10px;
}

#window-choices h1 {
    font-size: x-large;
    color: black;
}

#window-choices button {
    padding: 0.5em;
    margin: 3px 0;
    background-color: #f5e4ff;
    color: black;
}

#window-choices button:hover {
    color: white;
    cursor: pointer;
}

#window-choices-item-container {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    color: black;
}

.window-choices-item {
    font-size: larger;
    border: black 2px solid;
    border-radius: 10px;
}

.window-choices-item-index {
    text-transform: capitalize;
}

.window-choices-item-value {
    font-weight: bold;
}

#window-choices-rooms-number {
    padding: 1vh;
}

.window-input {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

.window-info {
    color: black;
}

.window-dropdownInput {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dropdown-content {
    width: 100%;
    text-align: left;
}

.dropdown-item {
    cursor: pointer;
    padding: 5px;
    background-color: #DADADA;
    color: black;
}

.dropdown-item:hover {
    background-color: black;
    color: white;
}

.window-wysiwyg {
    text-align: left;
    background-color: white;
    color: black;
}

#window-choices-titleName-input {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#window-footer {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    flex-shrink: 0;
    height: 60px;
    align-items: center;
}

#window-footer-before {
    grid-area: 1/1/2/2;
    justify-self: left;
}

#window-footer-middle {
    grid-area: 1/2/2/3;
    justify-self: center;
}

#window-footer-after {
    grid-area: 1/3/2/4;
    justify-self: right;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    background-color: white;
    color: black;
    border-radius: 10px;
    padding: 5px 10px;
}

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

.listInitials {
    width: 20px;
    padding: 10px;
    border-radius: 200px;
}

.listNamePhoneEmail {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 0 10px;
    width: 200px;
}

.listName {
    font-weight: bold;
    font-size: 1.2em;
}

/* -- SEARCH INPUT -- */

.searchContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
}

.searchInput {
    width: 100%;
}

.searchButton {
    padding: 0 10px!important;
    position: absolute;
}

/* -- THEMES -- */

.darkMode {
    background-color: #000000;
}

.lightMode {
    background-color: white!important;
    color: black;
}

.lightMode button {
    background-color: #939393;
}

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

.indexStep {
    width: 100%;
}

.button-img {
    border-radius: 100px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin: 10px 0;
}

.button-img p {
    font-size: 1.5em;
    font-weight: 700;
    border-radius: 30px;
}

.button-img i {
    font-size: 2em;
}

.button-img:hover {
    background-color: #d2c4db;
    background-image: none!important;
    color: black;
}

.inactive {
    display: none;
}

.active {
    display: block;
}

.active-flex {
    display: flex;
}

.selected {
    background-color: #b3ff8c!important;
    color: black;
}

.delimiter {
    width: 100%;
    background: radial-gradient(#ffffff, #ffffff00) border-box;
    border: 1px solid transparent;
    border-radius: 50em;
}

#photo-upload {
    flex-wrap: wrap;
    border-radius: 2em;
}

#progressBar {
    display: flex;
    align-items: center;
    width: 40vw;
    border: white 2px solid;
    border-radius: 20px;
    overflow: hidden;
}

#progress {
    width: 0;
    font-size: large;
    font-weight: bold;
    text-align: center;
    color: white;
    padding: 0 10px;
}

.window-inputDetails {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 0px;
}

/* -- LOADING -- */

#loading {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.loading {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 8px solid;
    border-color: white;
    animation: spin 1s infinite linear;
}

@keyframes spin {to{transform: rotate(1turn)}}

/* -- LOGIN -- */

#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#loginLogo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#loginForm {
    display: block;
}

.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    color: black;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-container h2 { 
    text-align: center; 
    margin-bottom: 20px; 
}

.login-container label { 
    display: block; 
    margin-bottom: 5px; 
}

.login-container input[type="text"], .login-container input[type="password"] {
    width: 100%; 
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container input[type="submit"] {
    width: 100%; 
    color: #fff;
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
}

#rememberMeLabel {
    display: flex;
    align-items: center;
    justify-content: center;
}

#errorMessage {
    width: 100%;
    display: none;
    background-color: #ff000054;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 4px;
}