
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #080d33 50%, #121c93 70%, #4a5cbf 80%, #fff390 100%);
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 16px;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 250px;
  height: 100%;
  background-color: #fff390;
  color: #121c93;
  padding: 20px;
  overflow-y: auto;
  transition: left 0.5s ease;
  z-index: 1000;
}

#sidebar.visible {
  left: 0;
}

#sidebar header {
  font-size: 1.5em;
  color: #121c93;
  text-align: center;
  background-color: #263238;
}

#sidebar header a {
  color: #fff390;
  text-decoration: none;
  display: block;
}

#sidebar header a:hover {
  color: #fff;
}
#sidebar nav a {
  color: #2e335f;
  text-decoration: none;
  font-size: 14px;
  margin-right: 16px;
  margin-bottom: 16px;
  padding: 16px 24px;
  transition: color 0.3s ease, background 0.3s ease;
  display: block; /* Ajouté pour que chaque lien prenne toute la largeur et applique les marges */
}

#sidebar nav a:hover {
  color: red;
  background: none;
}


#viewport {
  margin-left: 260px; /* Space for the sidebar */
  padding: 2px;
  background-color: #121c93;
  color: #fff;
  transition: padding-left 0.5s ease;
}


header {
  position: relative;
  background: #2e335f;
  text-align: center;
  padding: 20px 0;
  color: #fff390;
  font-size: 1.58em;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(45deg, #ffa69e, #fbc687);
}

header nav ul {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: #fff390;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

header nav ul li a:hover {
  color: #ffd5cd;
  text-shadow: 0 2px 5px rgba(255, 213, 205, 0.8);
}


section {
  margin: 20px auto;
  max-width: 900px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

section a {
  display: inline-block;
  margin: 10px 0;
  font-size: 1.2em;
  color: #2e335f;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 5px 10px;
  border-radius: 5px;
  transition: color 0.3s ease, background 0.3s ease;
}

section a:hover {
  color: #fff390;
  background: #2e335f;
  border-color: #2e335f;
}


button {
  background: linear-gradient(45deg, #ff8075, #ffe0b9);
  background-size: 200% 200%;
  color: #fff390;
  border: none;
  padding: 12px 12px;
  border-radius: 100px;
  font-size: 1em;
  cursor: pointer;
  transition: background-position 0.5s ease, color 0.5s ease;
  background-position: 0% 50%;
}

button:hover {
  background-position: 100% 50%;
  color: #2e335f;
}


footer {
  position: relative;
  background: #2e335f;
  color: #fff390;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  border-top: 5px linear-gradient(45deg, #ffa69e, #fbc687);
}

footer::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(45deg, #ffa69e, #fbc687);
}

footer a {
  color: #fff390;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #2e335f;
}
