@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@charset "UTF-8";

:root {
    --background-color: white;
    --text-color: black;
}

p, li, span, label, a, select {
    font-size: 0.885rem;
    margin:0px;
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    font-weight: 400;
    color: #0B4268;
}

h2 {
    margin:0px;
    font-size: 1.2rem;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
label,
select,
li,
textarea,
input,
div,
button,
table
{
    font-family: "Poppins", sans-serif;
}

a {
    text-decoration: none;
    color:black;
}

a.button {
    cursor: default;
    width: min-content;
}

ul {
    list-style: none;
    margin:0;
    padding:0;
}

input[type=text], input[type=number], input[type=password],
input[type=date], input[type=month], input[type=week],
input[type=time], input[type=search], input[type=datetime-local],
input[type=email], input[type=tel], select, textarea {
    border: solid 2px #1c9dd9;
    border-radius: 5px;
}

textarea {
    resize: none;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  height: 100%;
}

body {
    margin:0px;
    height:100%;
    background-color: #def8ff;
}

main {
   display: flex;
}

button, .button {
    border: solid 1px #1c9dd9;
    border-radius: 20px;
    background-color: #1c9dd9;
    color: white;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 10px;

    display:flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

    .button.red {
        background-color: red;
        border: solid 1px red;
    }

button[hidden] {
    display:none;
}

button[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

button p {
    width: auto;
    height: auto;
    margin: auto;
}

.btnMenuBurger {
    border-radius: 20% 20% 20% 20%;
    padding: 1px 6px;
    margin-left: 15px;
}

.logoDegecom {
    width: 50%;
    height: auto;
}

.assetHeader {
    height: 50px;
    width: auto;
}

.inlineElement {
    display: inline;
}

#btnDeconnexion {
    margin: 0 5px;
}

.searchBar {
    display: flex;
    align-items: center;
}

.searchBar img {
    width: 16px;
    height: 16px;
}

/*
    Navbar (Bannière du haut)
*/
#navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 100px;
    /*border-bottom: solid 1px black;*/
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: var(--background-color);
    margin-bottom: 10px;
}

#navbar > div {
    display: flex;
    width: 275px;
    justify-content: center;
    align-items: center;
}

#navbar p {
    margin: 0px;
    font-weight: bold;
    color: var(--text-color);
}

#divToggle {
    width: min-content;
}

#toggleTheme {
    display: block;
    position: relative;

    border: solid 2px white;
    border-radius: 40px;
    box-shadow: inset 0px 5px 10px rgba(0,0,0,0.2);
    width: 65px;
    height: 40px;
    max-width: 70px;
    max-height: 35px;
    background-color: #feffa6;
    transition: 0.3s;
}

#toggleTheme::after {
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    top: 3px;
    left: 3px;
    background: linear-gradient(180deg, #ffffff, #f1f1f1);
    border-radius: 40px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

#toggleInput {
    opacity: 0;
    width: 0;
    height: 0;
}

#toggleInput:checked + label {
    background: #242424;
}

#toggleInput:checked + label::after {
    transform: translateX(100%);
}

#lienHome {
    width: 140px;
    height:45px;
}

#lienHome .logoDegecom {
    width: 100%;
    height: 100%;
}

.logoDegecom, #photoUser {
    width:max-content;
    margin : 0px 10px;
}

/*
    Fin Navbar
*/

/*
    Menu Aside
*/

#menuAside {
    background-color: #1c9dd9;
    opacity: 0.95;
    z-index:1;

    position:fixed;
    top:0;
    left: -300px;
    width:280px;
    height:100vh;

    padding:10px 0 0 20px;

    color: white;

    transition: transform 0.6s;
}

#menuAside h1 {
    color: white;
    font-weight: 600;
}

#menuAside a {
    color: white;
}

#menuAside ul {
    overflow: hidden;
}

.dropdown:hover {
    cursor: pointer;
}

#btnCloseAside {
/*    border-radius:10px;
    border:0;
*/
    background-color: white;
    width:32px;
    height: 32px;

    display:flex;
    justify-content:center;
    align-items:center;

    position: absolute;
    top: 10px;
    right: 10px;

}

#btnCloseAside img {
    width: 24px;
    height: 24px;
}

.dropdown {
    display:flex;
    justify-content:space-between;
    align-items: center;
}

.dropdown img {
    width: 16px;
    height: 16px;

    margin-right: 10px;

    transition: transform 0.5s;
}

.dropdown > span, #menuAsideContent > ul > li > a {
    font-size: 1.4rem;
}

#menuAsideContent > ul ul {
    margin-left: 20px;
    max-height:100px;
    transition: max-height 0.5s;
}

#menuAsideContent > ul ul > li > a {
    font-size: 1.1rem;
}

/*
    Fin Menu Aside
*/

/*
    Toast Message
*/

#toastMessageContainer {
    visibility: hidden;
    width: 100%;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 10px;
    display: flex;
    flex-direction: column;
    row-gap:3px;
    justify-content: center;
    align-items: center;
    align-content: center;
}

#messageContainer {
    text-align: center;
    border-radius: 5px;
    padding: 16px;
}

    #messageContainer.success {
        background-color: #2ecc71;
        color: #fff;
        box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    }

    #messageContainer.error {
        background-color: #e14d45;
        color: #fff;
    }

    #messageContainer.warning {
        background-color: #ed991d;
        color: #fff;
    }

    #messageContainer.information {
        background-color: #333;
        color: #fff;
    }

#toastMessageContainer.show {
    visibility: visible;
    animation: toastFadein 0.5s, toastFadeout 0.5s 4.5s;
}

@keyframes toastFadein {
    from {
        top: 0;
        opacity: 0;
    }

    to {
        top: 10px;
        opacity: 1;
    }
}

@keyframes toastFadeout {
    from {
        top: 10px;
        opacity: 1;
    }

    to {
        top: 0;
        opacity: 0;
    }
}

/*
    Pour les modals
*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.1);
    display: none;

    z-index:1;
}

.volet {
    z-index: 2;
}

.modal {
    z-index:2;
    position: fixed;
    background-color: white;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    top: 50%;
    left: 50%;
    padding: 20px;
    display: none;
    transform: translate(-50%, -50%);
}

#modalDeconnexion {
    flex-direction: column;
}

#modalDeconnexion h1 {
    text-align: center;
}

#modalDeconnexion > form {
    display: flex;
    justify-content: space-around;
}

#modalDeconnexion button {
    width: 30%;
}

/*
    Responsive
*/

@media screen and (max-width: 550px) {
    #navbar .logoDegecom, #divUser p {
        display:none;
    }
}