body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #121212;
    color: #fff;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    transition: top 0.3s ease-in-out;
    z-index: 1000;
}

header.hidden {
    top: -100px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00bfff;
}

#theme-toggle {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#theme-toggle:hover {
    background-color: rgba(0, 0, 255, 0.2);
}

#documentation {
    padding: 4rem 2rem 2rem; /* Ajoutez un padding-top pour compenser la barre de tâches */
    margin: 2rem 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

#documentation.dark-mode {
    background-color: #1f1f1f;
    color: #fff;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-bar input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    width: 20rem;
}

.search-bar button {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0 5px 5px 0;
    background-color: #00bfff;
    color: #fff;
    cursor: pointer;
}

.category-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.doc-category-btn {
    background-color: #00bfff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background-color 0.3s;
}

.doc-category-btn.active {
    background-color: #009fff;
}

.doc-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.doc-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.doc-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.doc-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00bfff;
}

.doc-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.doc-item .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #00bfff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.doc-item .btn:hover {
    background-color: #009fff;
}

.doc-item img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: static;
    width: 100%;
}
