@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 20px;
  background-color: rgb(62, 62, 62);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: grey;
  border-radius: 30px;
  padding: 30px;
}
header #head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 750px) {
  header #head {
    justify-content: center;
  }
}
header #head {
  gap: 20px;
}
header #head img {
  height: 75px;
  width: 75px;
  border-radius: 50%;
}
header #head #name {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
}
header #head #name #nom {
  font-weight: 600;
}
header #head #name #prenom {
  font-weight: 400;
}
header #head #buttons {
  margin-left: auto;
}
@media (max-width: 750px) {
  header #head #buttons {
    margin-left: 0;
  }
}
header #head #buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
header #head #buttons button {
  background-color: rgb(160, 160, 160);
  font-family: "Roboto", sans-serif;
  border-radius: calc(infinity * 1px);
  padding: 7px 14px;
  border: none;
  outline: none;
  cursor: pointer;
  color: white;
  transition: 0.2s ease-in-out;
}
header #head #buttons button:hover {
  filter: brightness(110%);
}
header #head #moyenne {
  font-family: "Roboto", sans-serif;
  border-radius: calc(infinity * 1px);
  padding: 7px 14px;
  background-color: plum;
}
header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  font-family: "Poppins", sans-serif;
}
header nav ul li {
  background-color: rgb(160, 160, 160);
  border-radius: calc(infinity * 1px);
  padding: 7px 14px;
  border: none;
  outline: none;
  cursor: pointer;
  color: white;
  transition: 0.2s ease-in-out;
}
header nav ul li:hover {
  filter: brightness(110%);
}
header nav ul li.active {
  background-color: skyblue;
}
header {
  margin-bottom: 30px;
}

form {
  background-color: grey;
  padding: 30px;
  border-radius: 30px;
  width: 300px;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
form label {
  transform: translateY(20px);
  font-size: small;
  transition: 0.2s ease-in-out;
  text-align: left;
}
form input[type=text],
form input[type=number],
form input[type=password] {
  outline: none;
  border: none;
  padding-bottom: 5px;
  background-color: transparent;
  border-bottom: solid white 1px;
  transition: 0.2s ease-in-out;
}
form input[type=submit] {
  margin-top: 20px;
  border: none;
  background: linear-gradient(45deg, rgb(9, 9, 121) 0%, rgb(0, 212, 255) 100%);
  color: #fff;
  outline: none;
  padding: 10px 0;
  width: 100%;
  border-radius: calc(infinity * 1px);
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
form input[type=submit]:hover {
  scale: 1.05;
}
form label[for=file] {
  border: none;
  background: rgb(160, 160, 160);
  color: #fff;
  outline: none;
  padding: 10px 0;
  width: 100%;
  border-radius: calc(infinity * 1px);
  cursor: pointer;
  text-align: center;
  margin-bottom: 20px;
}
form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin-top: 10px;
  border: none;
  background: rgb(160, 160, 160);
  color: #fff;
  outline: none;
  padding: 10px 0;
  width: 100%;
  border-radius: calc(infinity * 1px);
  cursor: pointer;
  text-align: center;
}
form select:focus {
  outline: none;
}

.parent {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
}
@media (max-width: 800px) {
  .parent {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
}
.parent {
  grid-column-gap: 20px;
  grid-row-gap: 20px;
}
.parent div > h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  text-align: center;
}
.parent > div {
  background-color: grey;
  padding: 30px;
  border-radius: 30px;
}
.parent .div1 {
  grid-area: 1/1/2/2;
}
@media (max-width: 800px) {
  .parent .div1 {
    grid-area: 1/1/2/2;
  }
}
.parent .div2 {
  grid-area: 1/2/2/3;
}
@media (max-width: 800px) {
  .parent .div2 {
    grid-area: 2/1/3/2;
  }
}

.div1 h3 {
  margin-bottom: 20px;
}
.div1 #check {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 7px;
}
.div1 #check label {
  font-family: "Roboto", sans-serif;
}
.div1 #check input {
  appearance: none;
  border-radius: 4px;
  height: 20px;
  width: 40px;
  border: 3px solid white;
  border-radius: calc(infinity * 1px);
  transition: 0.2s ease-in-out;
}
.div1 #check input:before {
  content: "";
  display: block;
  background-color: red;
  height: 12px;
  width: 12px;
  margin: 2px 0 0 2px;
}
@media (max-width: 448px) {
  .div1 #check input:before {
    margin: 1.5px 0 0 1.5px;
  }
}
.div1 #check input:before {
  border-radius: calc(infinity * 1px);
  transition: 0.2s ease-in-out;
}
.div1 #check input:checked:before {
  background-color: greenyellow;
  transform: translateX(20px);
}
.div1 #check {
  margin-bottom: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.container .note {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-family: "Roboto", sans-serif;
  background-color: rgb(160, 160, 160);
  padding: 20px;
  border-radius: 20px;
}
.container .note.rendu {
  background-color: rgb(125, 193, 125);
}
.container .note.noté {
  background-color: lightsalmon;
}
.container .note.non_noté {
  background-color: rgb(216, 102, 102);
}
.container .note .content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.container .note .content .date {
  font-size: small;
  font-weight: 300;
}
.container .note .content .title {
  font-size: large;
  font-weight: 500;
}
.container .note .content .coef {
  font-size: smaller;
  font-weight: 300;
}
.container .note .content .subject {
  font-size: smaller;
  font-weight: 300;
}
.container .note .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.container .note .actions button {
  border-radius: calc(infinity * 1px);
  padding: 7px 14px;
  border: none;
  outline: none;
  cursor: pointer;
}
.container .note .actions .view {
  background: lightblue;
}
.container .note .actions .edit {
  background: grey;
}
.container .note .actions .download,
.container .note .actions .success {
  background-color: lightgreen;
}
.container .note .actions .delete {
  background-color: lightcoral;
}

.div2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: calc(100lvw - 40px);
}
@media (min-width: 800px) {
  .div2 {
    max-width: calc(50lvw - 40px);
  }
}

.div3 {
  background-color: grey;
  padding: 30px;
  border-radius: 30px;
  margin-top: 20px;
}
.div3 #container_matieres {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 30px;
}
@media (min-width: 750px) {
  .div3 #container_matieres {
    justify-content: space-between;
  }
}
.div3 #container_matieres .matiere {
  width: 100%;
}
@media (min-width: 750px) {
  .div3 #container_matieres .matiere {
    width: 48%;
  }
}
.div3 #container_matieres .matiere .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}
.div3 #container_matieres .matiere hr {
  margin: 20px 0;
}
.div3 #container_matieres .matiere .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.div3 #container_matieres .matiere .container .note {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-family: "Roboto", sans-serif;
  background-color: rgb(160, 160, 160);
  padding: 20px;
  border-radius: 20px;
}
.div3 #container_matieres .matiere .container .note.non_noté {
  background-color: rgb(216, 102, 102);
}
.div3 #container_matieres .matiere .container .note.noté {
  background-color: lightsalmon;
}
.div3 #container_matieres .matiere .container .note.rendu {
  background-color: rgb(125, 193, 125);
}
.div3 #container_matieres .matiere .container .note .content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.div3 #container_matieres .matiere .container .note .content .date {
  font-size: small;
  font-weight: 300;
}
.div3 #container_matieres .matiere .container .note .content .title {
  font-size: large;
  font-weight: 500;
}
.div3 #container_matieres .matiere .container .note .content .coef {
  font-size: smaller;
  font-weight: 300;
}
.div3 #container_matieres .matiere .container .note .content .subject {
  font-size: smaller;
  font-weight: 300;
}
.div3 #container_matieres .matiere .container .note .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.div3 #container_matieres .matiere .container .note .actions button {
  border-radius: calc(infinity * 1px);
  padding: 7px 14px;
  border: none;
  outline: none;
  cursor: pointer;
}
.div3 #container_matieres .matiere .container .note .actions .view {
  background: lightblue;
}
.div3 #container_matieres .matiere .container .note .actions .edit {
  background: grey;
}
.div3 #container_matieres .matiere .container .note .actions .download,
.div3 #container_matieres .matiere .container .note .actions .success {
  background-color: lightgreen;
}
.div3 #container_matieres .matiere .container .note .actions .delete {
  background-color: lightcoral;
}
