/* ==============================
   1. Styles globaux & Body
============================== */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #333;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* ==============================
   2. Dark Mode spécifiques
============================== */
body.dark-mode .sidebar {
  background-color: #1e1e1e;
  border-right: 1px solid #333;
}

body.dark-mode .links a {
  color: #80c784;
}

body.dark-mode .sidebar h1,
body.dark-mode .links h3,
body.dark-mode .content h2 {
  color: #80c784;
}

body.dark-mode footer {
  background-color: #222;
  color: #ccc;
  border-top: 1px solid #444;
}

body.dark-mode textarea,
body.dark-mode input {
  background-color: #222;
  color: #eee;
  border: 1px solid #555;
}

/* ==============================
   3. Layout principal
============================== */
.container {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

a {
  color: #3cba00;
  text-decoration: none;
  font-weight: 500;
}

.sidebar {
  background-color: #ffffff;
  padding: 1rem;
  width: 225px;
  height: 100vh;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #3cba00;
}

.sidebar h1 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.4rem;
}

.sidebar p {
  text-align: left;
  font-size: 0.95rem;
  color: #666;
}

.links {
  margin-top: auto;
  width: 100%;
  text-align: left;
  margin-bottom: 1.5rem;
}

.links h3 {
  color: #3cba00;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.links li {
  margin: 0.5rem 0;
}

.links a:hover {
  text-decoration: underline;
}

.links i {
  margin-right: 0.5rem;
}

.content {
  flex: 1;
  padding: 2rem 3rem;
  margin-left: 300px;
}

.content section {
  margin-bottom: 2.5rem;
  padding-top: 1rem;
  border-top: 3px solid #3cba00;
}

.content h2 {
  color: #3cba00;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.6rem;
}

ul p {
 padding-bottom: 0px;
}

footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f5f5f5;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* ==============================
   4. Bouton menu toggle (mobile)
============================== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: #3cba00;
  border: none;
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.menu-toggle.open i {
  content: "\f00d"; 
}

/* ==============================
   5. Responsive (mobile & tablette)
============================== */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }

  .sidebar-extra {
    margin-top: 20px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    max-width: 200px;
    height: 100%;
    padding: 1.5rem 1rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #ffffff;
    transition: left 0.3s ease-in-out;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .sidebar.active {
    left: 0;
  }

  .content {
    margin-left: 0;
    padding: 1.2rem;
    padding-top: 0px;
  }

  .profile-pic {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar h1 {
    font-size: 1.4rem;
    margin: 0.4rem 0;
  }

  .sidebar p {
    font-size: 0.95rem;
    text-align: left;
  }

  .links {
    text-align: left;
    margin-top: auto;
    width: 100%;
  }

  .links ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .links li {
    margin: 0;
  }

  .links a {
    font-size: 0.9rem;
    display: flex;
    align-items: left;
    justify-content: center;
  }

  .sidebar-header {
    margin: 0px;
    text-align: left;
    width: 100%;
  }
}