:root {
    --bg-color: #f5f5f5;
    --main-color: #4CAF50;
    --text-color: #333;
    --font-size: 20px;
}

* {
    scroll-behavior: smooth;
}

body {

    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    width: 100%;
}

body::-webkit-scrollbar {
    width: 5px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-color);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--text-color);
    border-radius: 10px;
}

a,
p,
li {
    text-decoration: none;
    color: var(--text-color);
    font-size: var(--font-size);
}

small {
    opacity: 0.9;
}

.tree {
    display: block;
    /* margin: auto; */
    width: 50%;
    height: auto;
}

text {

    font-size: 14px;
    fill: #000;
    text-anchor: middle;
}

.formula-container {
    margin-left: 1em;
    display: inline-block;
    padding: 10px;
    border: 2px solid var(--main-color);
    border-radius: 5px;
    /* background-color: #f9f9f9; */
}



msqrt {
    padding-top: 0.2em;
}

/* 
.MJX-TEX {
    font-family: 'Arial', sans-serif;
} */

.fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.fraction .numerator {
    border-bottom: 1px solid #000;
    display: block;
    margin-bottom: 2px;
}

.fraction .denominator {
    display: block;
}

.rotate {
    display: inline-block;
    transform: rotate(180deg);
}

.hover {
    position: relative;
    cursor: pointer;
}

.hover::after {
    transform: rotate(0deg);

    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
}

.hover:hover::after {
    opacity: 1;
    visibility: visible;
}


.C::after {
    content: "Constante d'intégration";
}

.T::after {
    content: 'perpendiculaire';
}

.facteurs3::after {
    content: "ici on compte 3 facteurs, d'où le puissance 3";
}

.link {
    text-decoration: underline;
}

.navbar {
    display: flex;
    background-color: var(--text-color);
    padding: 10px;
    justify-content: space-around;
}

.navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.dropdown-content a {
    color: black;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    max-height: 400px;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

.dropdown-submenu {
    position: relative;
}

.submenu-title {
    padding-right: 30px;
    /* Espace supplémentaire pour la flèche */
}

.dropdown-content-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-submenu:hover .dropdown-content-submenu {
    display: block;
    opacity: 1;
    max-height: 400px;
}


header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    color: white;
}


.title {
    margin-left: 2rem;
    margin: 2rem;
}

.selection {
    width: 80%;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    justify-content: center;

}


.course {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background-color 0.3s;
}

.course:hover {
    background-color: #f0f0f0;
}



.container {
    width: 80%;
    margin: 4rem auto;
    background-color: white;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.container a {
    text-decoration: none;
    color: var(--text-color);
}

li {
    padding-top: 1.5rem;
}


table {
    width: 50%;
    border-collapse: collapse;
    font-size: var(--font-size);
    text-align: left;
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}


footer {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    margin: 1rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: white;
}

.copyright {
    margin-top: 2rem;
}



@media (max-width: 932px) {

    body {
        width: 100%;
        overflow-x: auto;
    }

    .navbar a {
        padding: 10px 15px;
        font-size: 1rem;
    }

    header {
        padding: 0.1rem;
    }

    .title {
        text-align: center;
        margin: 0.1rem;
    }

    .container {
        width: 74%;
        margin: 5%;

    }

    li {
        padding-top: 0.1rem;
    }
}