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

#message_err {
    margin: 10px;
    overflow-wrap: anywhere;
    font-size: 10px;
    color: rgb(130, 0, 0);
}
#visual_graph {
    width: 800px;
    height: 800px;
    background-color: white;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}
#visual_graph_gauss {
    width: 800px;
    height: 800px;
    background-color: white;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}
.hidden {
    display: none;
}
#controls, #advancedInputs, #simpleInputs {
    margin: 20px;
}

html {
    scroll-behavior: smooth;
    margin: 0;
}

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #232323;
    z-index: 2;
    padding: 0 20px;
}

section {
    margin-top: 15px;
    margin-bottom: 15px;
    scroll-margin-top: 80px;
}

.nav-latteral {
    position: absolute;
    top: 0;
    left: -100%;
    background-color: #232323;
    z-index: 4;
    height: 100vh;
    width: max-content;
    transition: all 0.3s ease;
}

#nav-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3;
    display: none;
    transition: background-color 0.3s ease;
}

#nav-wrapper.active {
    display: block;
    cursor: pointer;
}

.math-container {
    display: block;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.math-container mjx-container {
    overflow-x: auto;
    display: inline-block;
    max-width: 100%;
    white-space: normal;
}

#nav-open,
#nav-close {
    /*margin-bottom: 4rem;*/
    font-size: 30px;
    color: #EEECF2;
}

#nav-close {
    margin-top: 1.5rem;
    margin-left: 1rem;
}

#nav-open:hover {
    transform: translateX(-5px);
    color: #B2B2B2;
}

#nav-close:hover {
    transform: translateX(5px);
    color: #B2B2B2;
}

.nav-links {
    padding: 1rem 4rem 1rem 2rem;
    transition: background-color 0.3s ease;
}

.nav-link {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    text-align: justify;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-link:hover {
    color: lightgray;
}

.nav-link:hover::before {
    content: "▶";
    position: absolute;
    left: -5px;
    font-size: 20px;
    color: #B2B2B2;
    transition: transform 0.3s ease;
}

.nav-links a {
    pointer-events: auto;
    color: #EEECF2;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #B2B2B2;
}

.nav-link,
.nav-button {
    transition: all 0.2s ease;
}


#nav-sublinks{
    margin-left: 70px;
    height: 40px;
    width: max-content;
    font-size: medium;
    display: none;
}

#nav-sublinks.active{
    display: block;
}

.nav-sublink:hover::before {
    content: "▶";
    position: absolute;
    left: 75px;
    font-size: 15px;
    color: #B2B2B2;
}

#drop-down.active::before{
    content: "⏷"; 
    position: absolute;
    left: -5px;
    top: 20px;
    font-size: 30px;
    color: #B2B2B2;
}


a {
    text-decoration: none;
}

.nav-button {
    color: white;
    cursor: pointer;
}

#lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.language-icon-label {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.language-logo {
    width: 28px;
    height: 20px;
    border-radius: 3px;
}

.language-selector {
    position: absolute;
    top: 30px;
    left: -1rem;
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px;
    z-index: 1000;
}

.nav-buttons-container {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
}


.language-logo {
    width: 30px;
    height: 20px;
}

main {
    width: 100%;
    line-height: 2rem;
    height: 100vh;
    overflow: auto;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    background-color:#EEECF2;
}

ul {
    list-style-position: inside; /* Les lis s'affichaient un peu à gauche */
    padding-left: 1em;
}

main p {
    text-align: justify;
}

.content {
    flex-grow: 1;
    padding: 2rem 15%;
}

main::-webkit-scrollbar{
    background-color: #EEECF2;
    width: 0.5rem;
}

main::-webkit-scrollbar-thumb{
    background-color: #232323;
}

section {
    margin-top: 15px;
    margin-bottom: 10px;
}

.intro-bg-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    background-image: url('../assets/banner.png');
    background-position: center;
    background-size: cover;
    color: white;
    padding: 0;
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

.intro-bg-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    text-align: center;
}

.intro-text h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: xx-large;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 10px 0;
}

.inputs {
    position: relative;
    text-align: center;
    align-items: center;
}

.inputs h3 {
    text-align: center;
}


/* Style des boutons */
button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #232323; 
    color: white; 
    font-size: small;
    padding: 6px 10px;
    border: none;
    border-radius: 4px; /* Bords arrondis */
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-main {
    background-color: #232323; 
    color: whitesmoke; 
    padding: 6px 12px;
    text-decoration: none;
    font-size: small;
    border-radius: 5px; 
    transition: background-color 0.3s ease;
}

.btn-main:hover {
    background-color: whitesmoke;
    color: #22223b;
}

.btn-demo {
    background-color: whitesmoke; 
    color: #232323; 
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px; 
    transition: background-color 0.3s ease;
}

.btn-demo:hover {
    background-color: #dcd6f7;
}

.ressources-links a {
    color: #232323;
    background-color: whitesmoke;
    size: smaller;
    padding: 10px 15px;
    display: block;
    margin-left: 10px;
    border-left: 5px solid #22223b;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}

.ressources-links a:hover {
    background-color: #dcd6f7;
    transform: translateX(2px);
}

.ressources-links {
    list-style-type: none;
}

.ressources-links li {
    margin: 0.7rem;
}

.space-icon{
    margin-left: 1em;
}


.unige {
    font-size: large;
    text-align: center;
    margin-left: 10px; 
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #232323;
    color: white;
    padding: 10px 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    margin-top: auto;
    flex-direction: column;
}

footer p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

footer .footer-logo {
    width: 50px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px; 
}