@import "fonction.css";

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  height: 100vh;
  background: #f5f7fa;
  color: #2c3e50;
}

/* --- Sidebar --- */
#sidebar {
  width: 300px;
  background: linear-gradient(180deg, #2c3e50, #34495e);
  color: #ecf0f1;
  overflow-y: auto;
  padding: 15px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.2);
  position: relative; /* nécessaire pour le footer */
}


#searchInput {
  width: 91%;
  padding: 8px 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* --- Accordions --- */
.accordion {
  background: #34495e;
  cursor: pointer;
  padding: 10px 15px;
  margin: 5px 0;
  border: none;
  outline: none;
  text-align: left;
  font-size: 15px;
  font-weight: bold;
  color: #ecf0f1;
  transition: background 0.3s, padding-left 0.3s;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
}

.accordion:hover {
  background: #3d566e;
  padding-left: 20px;
}

.accordion:after {
  content: "▸";
  font-size: 16px;
  transition: transform 0.3s;
}

.accordion.active:after {
  transform: rotate(90deg);
}

/* --- Panels --- */
.panel {
  overflow: hidden;
  background: #3c4b5a;
  padding-left: 10px;
  display: none;
  border-radius: 5px;
  margin-bottom: 8px;
}

.panel.open {
  display: block;
}

.panel ul {
  list-style: none;
  padding: 8px;
  margin: 0;
}

.panel li {
  margin: 6px 0;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.2s, padding-left 0.2s;
}

.panel li:hover {
  background: #E3A800;
  color: #fff;
  padding-left: 12px;
}

.panel li.active {
  background: #16a085;
  color: #fff;
  font-weight: bold;
}

/* --- Content area --- */
#content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: #fff;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}


/* --- Doc title --- */
.doc-title {
  background: #1a252f;
  padding: 12px;
  margin: 8px 0;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  color: #ecf0f1;
}

/* Scrollbar customisée */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #2c3e50;
}
::-webkit-scrollbar-thumb {
  background: #275da7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E3A800;
}

.logo {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #1a252f;
  border-radius: 6px;
  margin-bottom: 15px;
  position: relative; /* permet de placer la brand indépendamment */
}

.logo img {
  height: 40px;
  width: auto;
}

.logo .brand {
  position: absolute;
  left: 50%;              /* centre horizontalement */
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: bold;
  color: #ecf0f1;
  text-transform: uppercase;
}

/* --- Footer dans la sidebar --- */
.sidebar-footer {
  /*position: absolute;*/
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #bdc3c7;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

