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);
}

#veille {
    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;
}

#veille.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;
}

.veille-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;
}

.veille-category-btn.active {
    background-color: #009fff;
}

.veille-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.veille-link {
    text-decoration: none;
    color: inherit;
}

.veille-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;
}

.veille-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.veille-item img {
    width: 100%;
    height: 150px; /* Hauteur fixe pour toutes les images */
    object-fit: cover; /* Assure que l'image couvre tout l'espace disponible */
    object-position: center; /* Centre l'image */
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

.veille-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00bfff;
}

.veille-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: static;
    width: 100%;
}

#rss-button {
    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;
}

#rss-button:hover {
    background-color: #009fff;
}

#rss-section {
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    display: none; /* Initialement caché */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#rss-section.dark-mode {
    background-color: #1f1f1f;
    color: #fff;
}

.rss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rss-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #00bfff;
}

#close-rss-button {
    background: none;
    border: none;
    color: #ff6347;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

#close-rss-button:hover {
    color: #ff4500;
}

#rss-content {
    margin-bottom: 1rem;
}

#rss-content .rss-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#rss-content .rss-item:hover {
    background-color: #e9e9e9;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#rss-content .rss-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #00bfff;
}

#rss-content .rss-item p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

#rss-content .rss-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

#rss-content .rss-item a:hover {
    color: #0056b3;
}
