:root {
    --main-graph-color: aquamarine;
    --white: #fff;
    --color1: #11151D;
    --color2: #222D41;
    --color3: #374158;
    --color4: #7F5056;
    --color5: #D76C58;
}

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

line {
    stroke: var(--color5);
}

text {
    fill: var(--white);
}

body {
    overflow-y: auto;
    overflow-x: auto;
    background-color: var(--color1);
    color: var(--white);
    font-size: larger
}

h3 {
    color: var(--color5);
    font-size: xx-large;
}

.title {
    color: #7F5056;
}

#xp,
#userInfo,
#pieChart {
    background-color: var(--color2);
    border: 5px solid var(--color5);
    border-radius: 20px;
    width: 1000px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;

}

#legendPie {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

#svgPlus,
#valid,
#fail {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#valid,
#fail {
    margin-bottom: 10px;
    margin-top: 10px;
}

#validColor {
    display: none;
    height: 40px;
    width: 40px;
    background-color: var(--main-graph-color);
    margin-right: 20px;
}

#failColor {
    display: none;
    height: 40px;
    width: 40px;
    background-color: var(--color4);
    margin-right: 20px;
}

.rectangle {
    fill: var(--main-graph-color);
    cursor: pointer;
}

.legendeTXT {
    display: none;
    font-size: 19px;
    text-anchor: middle;
}

#ordoneTitle {
    display: inline;
    font-size: 40px;
}

.ordoneLeg {
    display: inline;
    font-size: 18px;
}

#allInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#validAuditMess {
    visibility: visible;
    display: block;
}

#failedAuditMess {
    opacity: 1;
    width: 20px;
    height: 20px;
    display: block;
    visibility: visible;
}

p {
    margin-top: 0;
}

path {
    transition: transform 0.3s ease-out;
    transition: stroke 0.3s ease-out;
    transition: stroke-width 0.3s ease-out;
}

path:hover {
    transform: scale(1.01);
    /* Agrandir le path de 20% lors du survol */
    stroke: var(--color5);
    stroke-width: 3;
}

#logout-form {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#mainTitle {
    margin-left: 10px;
}

#mainTitle p {
    font-weight: bolder;
    font-size: 45px;
    margin: 10px 0 10px 0;
}





/* *************************************************************************************** */

.animated-button {
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    font-size: 20px;
    background-color: inherit;
    border-radius: 100px;
    font-weight: 600;
    color: var(--color5);
    box-shadow: 0 0 0 2px var(--color5);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
    position: absolute;
    width: 24px;
    fill: var(--color5);
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
    right: 16px;
}

.animated-button .arr-2 {
    left: -25%;
}

.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--color5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
}

.animated-button:hover .arr-1 {
    right: -25%;
}

.animated-button:hover .arr-2 {
    left: 16px;
}

.animated-button:hover .text {
    transform: translateX(12px);
}

.animated-button:hover svg {
    fill: #212121;
}

.animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px var(--color5);
}

.animated-button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}












/* *************************************************************************************** */

#loginBody {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: var(--color2);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--color5);
    width: 300px;
}

#login-form {
    display: flex;
    flex-direction: column;
}

.loginLabel {
    margin-bottom: 8px;
    color: var(--color4);
}

input[type="text"],
input[type="password"] {
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--color2);
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--color5);
    box-shadow: 0 0 10px var(--color5);
}

#loginButtonL {
    padding: 10px 20px;
    background-color: var(--color5);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

#loginButtonL:hover {
    background-color: var(--color4);
}

#loginTitle {
    text-align: center;
    font-weight: bolder;
    font-size: 45px;
    margin: 10px 0 10px 0;
}

/* ****************************************************************************************** */

.popup {
    position: fixed;
    bottom: -60px;
    right: 10px;
    background: red;
    padding: 15px 40px;
    font-size: 15px;
    color: var(--white);
    border-radius: 40px;
    animation: popup 5s ease-in-out;
  }
  
  @keyframes popup {
    10%, 90% {
      bottom: 10px;
    }
    100% {
      bottom: -60px;
    }
  }