:root {
  --primary: #1e90ff;
  --secondary: #ffb01e;
  --bg: #f5f5f5;
  --text: #333;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  display: flex;
  height: 100vh;
}

/* MENU */
.sidebar {
  width: 220px;
  background: #111;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.sidebar img {
  width: 120px;
  margin: 0 auto 30px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Menu items */
.menu-item {
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

/* Hover léger sur le menu parent */
.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.dropdown {
  display: none;
  flex-direction: column;
  padding-left: 10px;
  margin-top: 5px;
}

/* Dropdown ouvert */
.dropdown.open {
  display: flex;
}

/* bouton du menu */
.menu-toggle {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Lien */
.menu a {
  text-decoration: none;
  color: white;
  padding: 8px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu a.active {
  background: var(--secondary);
}

/* CONTENU */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 20px 30px;
  background: white;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}

.content {
  flex: 1;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar-footer {
  margin-top: auto;
  text-align: center;
  padding: 15px 0;
}

.sidebar-footer a {
  text-decoration: none;
  font-weight: 600;
  font-size: 10px;
  color: var(--primary);
  display: inline-block;
}

.sidebar-footer a:hover {
  text-decoration: none;
}