/* CORE */

:root {
  --background-color: #292929;
  --main-gray: #949494;
  --secondary-gray: #6D6D6D;
  --grad-blue: #2668FD;
  --grad-purple: #A830EE;
  --darker-gray: #0F0F0F;
  --python: #3A76A6;
  --html: #DD5B25;
  --javascript: #E9D44D;
  --scss: #C76494;
  --css: #254BDD;
}

* {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  color: var(--main-gray);
  overflow-x: hidden;
  overflow-y: scroll;
  font-weight: bold;
}

body::-webkit-scrollbar {
  width: 5px;
  background-color: var(--darker-gray);
}

body::-webkit-scrollbar-thumb {
  background-color: var(--secondary-gray);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: var(--main-gray);
}



/* DEFAULT STYLES */

button {
  margin: 5px;
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-gray);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.5);
}

button:hover {
  background-color: var(--main-gray);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7);
}

.flex-display {
  display: flex;
}

.rounding10 {
  border-radius: 10px;
}

.rounding20 {
  border-radius: 0px;
}

.tr-bl-rounding {
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.overlay {
  height: 100%;
  width: 100%;
  z-index: 5;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .3);
  pointer-events: auto;
  display: none;
}

h6 {
  user-select: none;
  pointer-events: none;
  font-weight: normal;
  font-size: 10px;
}

/* NAVBAR */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  border-bottom: 2px solid var(--main-gray);
  padding: 20px;
}

nav img,
footer a img {
  height: 25px;
  width: auto;
  display: flex;
}

nav ul,
.menubar ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a,
.menubar ul li a {
  text-decoration: none;
  color: var(--main-gray);
  transition: 0.2s ease;
}

nav ul li a:hover,
.menubar ul li a:hover {
  color: white;
}

#nav-active {
  color: white;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 1px;
  background-color: var(--main-gray);
  display: block;
  margin: 7px auto;
  transition: all 0.2s ease-in-out;
}

.hamburger-active .line:nth-child(2) {
  width: 0px;
  background-color: white;
}

.hamburger-active .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: white;
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: white;
}

.menubar {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--darker-gray);
  padding: 10px 0;
  z-index: 2;
  border-radius: 25px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 0;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease-in-out;
}

.menubar ul {
  list-style: none;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
}

.menubar ul li a {
  margin: 0 10px;
}

.menubar-active {
  top: 50px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.5);
  opacity: 1;
  pointer-events: all;
}

/* CONTAINER */

.container {
  position: relative;
  width: 100%;
  border: 3px solid var(--main-gray);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  background-color: var(--background-color);
  text-overflow: hidden;
}

.marginbottom0 { /* A donner au dernier container ou element dans la page*/
  margin-bottom: 0px;
}

.container-section {
  display: inline-flex;
  align-items: center;
  position: absolute;
  height: 40px;
  background-color: var(--main-gray);
  color: white;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 10px;
  box-shadow: 0px 0px 0px 5px var(--background-color);
}

.container-sect-topleft {
  max-width: 85%;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  top: -3px;
  left: -3px;
}

.container-sect-topright {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  cursor: pointer;
  top: -3px;
  right: -3px;
}

.container-sect-bottomleft {
  height: 20px;
  max-width: 95%;
  bottom: -3px;
  left: -3px;
  font-weight: bold;
}

.container-description {
  margin-top: 50px;
  margin-bottom: 30px;
  justify-content: center;
}

.container button {
  margin: 0 auto;
}

.container-description a {
  text-decoration: underline;
  color: var(--main-gray)
}

.container h6 {
  color: white;
  font-weight: normal;
}

.container-tags {
  display: flex;
  position: absolute;
  align-items: center;
  bottom: 5px;
  right: 5px;
  overflow: hidden;
  pointer-events: none;
}

.container-tag {
  padding: 0 10px;
  border-radius: 10px;
  margin-left: 5px;
}

.download {
  position: absolute;
  background-image: url('../svg/download.svg');
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.container-sect-topright:hover {
  background: linear-gradient(130deg, var(--grad-blue), var(--grad-purple));
}

.language-buttons {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* FOOTER */
/* an footer
footer {
  background-color: var(--darker-gray);
  border-top: 2px solid var(--main-gray);
  position: relative;
  width: 100%;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

footer a img {
  height: px;
  width: auto;
}

footer h6 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  margin: 0;
  pointer-events: none;
  font-weight: normal;
  font-size: 8px;
}

footer .links {
  display: flex;
  width: 70%;
  justify-content: space-evenly;
  align-items: flex-end;
}

footer a {
  text-decoration: none;
  color: var(--main-gray);
  transition: 0.2s ease;
  margin: 5px 0;
}

footer a:hover {
  color: white;
}
*/

footer {
  background-color: var(--darker-gray);
  border-top: 2px solid var(--main-gray);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer a img {
  height: 25px;
  margin: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: normal;
  color: var(--main-gray);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

footer h6 {
  font-size: 8px;
  color: var(--main-gray);
  margin: 10px 0 5px 0;
}

footer a {
  text-decoration: none;
  margin: 0 10px;
}

footer a img {
  height: 25px;
}


/* MAIN */

#main {
  flex-grow: 1;
  margin: 30px auto;
  /* padding: 0 15%; */
  /* margin: 50px auto 0 10%;  */
  margin-left: 15%;
  margin-right: 15%;
  display: flex;
  flex-direction: column;
}

/* RESPONSIVE */

@media (max-width: 790px) {

  nav {
    padding: 17px 20px;
  }

  .hamburger {
    display: block;
  }

  .menubar-active {
    visibility: show;
  }

  nav ul {
    display: none;
  }

  #main {
    margin: 30px 0;
    padding: 0 3%;
  }

  .container-tags {
    bottom: 25px;
    left: 15px;
  }

  footer .links {
    flex-direction: column;
    justify-content: end;
  }
}


.blog-container {
  display: flex;

}

.blog-container div.container {
  margin: 5px 5px 5px 5px;
}

@media (max-width: 1400px) {
  .blog-container {
    display:block;
  
  }
}