
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f4f9;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: #1f3b70;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 12px 0;
    cursor: pointer;
}

.sidebar li.active {
    font-weight: bold;
    text-decoration: underline;
}

.main {
    flex: 1;
    padding: 20px;
    overflow-x: auto;
}

h1 {
    font-size: 24px;
    color: #333;
}

input#searchBar {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 16px;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

th {
    background: #eef2f7;
    color: #333;
}

tr:hover {
    background-color: #f5f9ff;
}

.section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        text-align: center;
    }

    .main {
        padding: 15px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    td {
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #eee;
    }

    td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #999;
    }

    td:nth-of-type(1):before { content: "Thème"; }
    td:nth-of-type(2):before { content: "Texte"; }
    td:nth-of-type(3):before { content: "Date"; }
    td:nth-of-type(4):before { content: "Statut"; }
}

.sidebar ul li.active {
  background-color: #1a2c50;
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
}
.sidebar ul li {
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .main {
    margin-left: 0;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
    position: relative;
  }

  .sidebar ul {
    display: flex;
    justify-content: space-around;
    padding: 0;
  }

  .sidebar ul li {
    list-style: none;
  }
}
