/* Général */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* Navigation */
header {
    background: #007BFF;
    color: white;
    padding: 10px 0;
}

header .menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

header .menu li {
    margin: 0 15px;
}

header .menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

header .menu a:hover {
    text-decoration: underline;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.carousel .slides {
    display: flex;
    animation: slide-animation 15s infinite;
}

.carousel .slides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@keyframes slide-animation {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* Section de bienvenue */
.welcome-text {
    text-align: center;
    padding: 20px;
}

.welcome-text h1 {
    font-size: 36px;
    color: #007BFF;
}

.welcome-text p {
    font-size: 18px;
    color: #555;
    margin-top: 10px;
}

/* Pied de page */
footer {
    text-align: center;
    background: #007BFF;
    color: white;
    padding: 10px 0;
    margin-top: 20px;
}

form {
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 70%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #007BFF;
}

/* ========================================
   4. Boutons
======================================== */
button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button:focus {
    outline: none;
}

/* ========================================
   5. Sections
======================================== */
section {
    margin-bottom: 30px;
}

section h2 {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 15px;
}

section p {
    margin-bottom: 15px;
}

/* ========================================
   6. Pied de page (Footer)
======================================== */
footer {
    text-align: center;
    padding: 10px;
    background-color: #f1f1f1;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #ddd;
    margin-top: 30px;
}

.dashboard {
    display: flex;
}

/* Barre latérale */
.sidebar {
    width: 250px;
    background-color: #111;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header {
    text-align: center;
    padding: 20px 0;
    font-size: 20px;
    background-color: #333;
    border-bottom: 1px solid #444;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    border-bottom: 1px solid #444;
}

.sidebar ul li a {
    text-decoration: none;
    display: block;
    color: white;
    padding: 15px;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background-color: #007BFF;
}

/* Contenu principal */
.main-content {
    margin-left: 250px;
    padding: 20px;
    flex: 1;
}

header {
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}



/* En-tête principal */
header h1 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}


/* Statistiques */
.stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-box i {
    font-size: 30px;
    color: #007BFF;
}

.stat-box div h3 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.stat-box div p {
    margin: 0;
    font-size: 14px;
    color: #bbb;
}

/* Gestion des sujets */
.subject-management {
    margin-top: 30px;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
}

.subject-management h2 {
    margin-top: 0;
    color: white;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #ddd;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.search-bar button:hover {
    background-color: #0056b3;
}


/* Forum Styles */
textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #ddd;
}

button {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.message {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #333;
    border-radius: 5px;
}

/* Calendrier Styles */
.event {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #333;
    border-radius: 5px;
}

/* Barre de navigation */
.navbar {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar nav ul li a:hover {
    background-color: #007BFF;
}

/* Forum Header */
.forum-header {
    background-color: #FF6F61;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: bold;
}

/* Onglets du forum */
.forum-tabs {
    display: flex;
    justify-content: center;
    background-color: #FF6F61;
    padding: 10px;
}

.tab {
    background-color: transparent;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.tab.active {
    background-color: white;
    color: #FF6F61;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
}

.tab-content.active {
    display: block;
}

/* Questions */
.question {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.question h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.question p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* Questions */
.question {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.question h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.answers {
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.answer {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.reply-form textarea {
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.reply-form button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/* Barre de navigation */
.navbar {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar nav ul li a:hover {
    background-color: #007BFF;
}

/* En-tête du forum */
.forum-header {
    background-color: #FF6F61;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Contenu des onglets */
.tab-content {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Formulaire */
form {
    margin-top: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: #fff;
    position: fixed;
    height: 100%;
    padding-top: 20px;
}

.sidebar h2 {
    text-align: center;
    font-size: 20px;
    color: #ffc107;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px 20px;
    border-bottom: 1px solid #495057;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar ul li a:hover {
    background-color: #495057;
    color: #ffc107;
}


.main-content {
    margin-left: 260px;
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* En-tête */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

.main-header h1 {
    font-size: 20px;
    margin: 0;
}

/* Menu déroulant à droite */
.header-right {
    display: flex;
    align-items: center;
    position: relative;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
}

.dropdown {
    position: relative;
}

.dropdown-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-button i {
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-content a {
    padding: 10px 20px;
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f4f4f4;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Statistiques */
.dashboard-overview {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.stat-box {
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 45%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-box h2 {
    margin: 0;
    font-size: 24px;
    color: #ffc107;
}

.stat-box p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #ddd;
}

/* Barre latérale */
        .sidebar {
            width: 250px;
            height: 100vh;
            background-color: #1e1e2d;
            color: white;
            position: fixed;
            top: 0;
            left: 0;
            display: flex;
            flex-direction: column;
            padding: 20px 10px;
        }

        .sidebar a {
            text-decoration: none;
            color: white;
            margin: 10px 0;
            padding: 10px;
            display: block;
        }

        .sidebar a:hover {
            background-color: #007bff;
            border-radius: 5px;
        }

        /* Contenu principal */
        .main-content {
            margin-left: 260px;
            padding: 20px;
        }

        /* En-tête */
        .main-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .main-header .header-right {
            display: flex;
            align-items: center;
        }

        .main-header .profile-picture {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }

        .main-header .dropdown {
            position: relative;
        }

        .main-header .dropdown-button {
            background: none;
            border: none;
            color: #333;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
        }

        .main-header .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            background-color: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            overflow: hidden;
            z-index: 1;
        }

        .main-header .dropdown-content a {
            text-decoration: none;
            color: #333;
            padding: 10px 20px;
            display: block;
        }

        .main-header .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

        .main-header .dropdown:hover .dropdown-content {
            display: block;
        }

        /* Table - Général */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: green; /* Couleur de fond globale du tableau */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* En-tête du tableau */
table th {
    background-color: #007bff; /* Bleu clair */
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    padding: 12px;
    border: 1px solid #ddd;
}

/* Cellules du tableau */
table td {
    padding: 12px;
    font-size: 14px;
    color: red /* Texte sombre pour meilleure lisibilité */
    border: 1px solid red;
    background-color: #ffffff; /* Fond blanc pour les cellules */
}

/* Lignes alternées */
table tr:nth-child(even) {
    background-color: #e3f2fd; /* Bleu très clair pour les lignes paires */
}

/* Survol des lignes */
table tr:hover {
    background-color: red; /* Couleur claire pour le survol */
}

/* Liens dans le tableau */
table a {
    color: blue; /* Couleur bleue pour les liens */
    font-weight: bold;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
    color: #0056b3; /* Couleur bleue foncée au survol */
}

/* Section des notifications et ressources */
.additional-content {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Notifications */
.notifications {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.notifications h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.notifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notifications li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

/* Ressources */
.resources {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.resources h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-link {
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.button-link:hover {
    background-color: #0056b3;
}
/* Section des matières disponibles */
.subject-table 1 {
    margin-top: 30px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.subject-table 1 h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: red;
    text-align: center;
}

