* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ===== MENU GAUCHE ===== */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #ddd;
    padding: 15px;
}

.menu-item {
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.menu-title {
  padding: 12px 15px;
  background: #f9fafb;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #333;
  transition: background 0.2s;
}

.menu-title:hover {
  background: #eef2f6;
}

.arrow {
  transition: transform 0.3s;
}

.menu-item.active .arrow {
  transform: rotate(90deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #ffffff;
}

.menu-item.active .submenu {
  max-height: 300px;
}

.submenu a {
  display: block;
  padding: 10px 20px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.submenu a:hover {
  background: #f0f4f8;
}

/* ===== CONTENU DROIT ===== */
.content {
  flex: 1;
  padding: 30px;
}

.content h1 {
  margin-top: 0;
  color: #333;
}

.content p {
  color: #666;
  line-height: 1.6;
}

.menu-title span,
.submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submenu a i {
    font-size: 14px;
}