*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
  background: #f1f1f1;
  height: 100vh;
}

.container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 660px;
  height: 300px;
  background: #f1f1f1;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.container-onglets {
  width: 100%;
  height: 30%;
  display: flex;
  border-bottom: 1px solid #333;
}
.onglets {
  width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: capitalize;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}
/* le format s'applique à tous les onglets sauf le 3e */
.onglets:not(:nth-child(3)) {
  border-right: 1px solid #333;
}

.contenu {
  height: 70%;
  width: 100%;
  position: absolute;
  opacity: 0;
}
.contenu h3 {
  padding: 20px;
}
.contenu hr {
  width: 40%;
  height: 2px;
  margin-left: 20px;
  background: #000;
  border: none;
}
.contenu p {
  padding: 20px;
}

/* ANIMATIONS */
.active {
  background: rgb(22, 23, 122);
  color: white;
  transition: all 0.3s ease;
}
.activeContenu {
  animation: fade 0.5s forwards;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
