/***************************************************
*********************************** HTML Elements **
***************************************************/

body {
  background-color: #424242;
  color: #d8d8d8;
}

a.site-brand h1 {
  color: inherit !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.H2,
.H3 {
  font-family: "VT323", monospace;
  font-weight: 400;
  margin: 0 0 0.618em;
  padding: 0 0.618em;
  border-top: 5px solid;
}
h1.entry-title {
  font-size: 64px;
  border: 5px solid;
  margin: 0;
}
h2,
.H2 {
  font-size: 48px;
  color: #676cff;
  border-top: none;
  margin: 0;
  padding: 0;
}
h3,
.H3 {
  font-size: 36px;
  color: #25dc4c;
}
h4 {
  font-size: 24px;
  color: #c3b720;
  margin: 40px 0 0 40px;
}
h5 {
  font-size: 20px;
  margin: 40px 0 0 60px;
}
h6 {
  font-size: 18px;
  color: #000;
  margin: 40px 0 0 80px;
}

a {
  text-decoration: none;
  color: #e04a4a;
}
a:hover,
a:active {
  background-color: #2d2d2d;
}

figcaption {
  text-align: center;
  font-style: oblique;
  opacity: 0.666;
}

img {
  max-width: 100%;
}

ins {
  text-decoration: underline;
}

li {
  margin-bottom: 0.618em;
}

mark {
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 0.2em;
  letter-spacing: 0.1618em;
  background-color: #ffffff;
  color: #000;
}

object {
  border: 1px dashed #fff;
}

p {
  line-height: 1.618em;
}

pre,
p > code,
li > code {
  border: 1px solid;
  background-color: #000;
  padding: 0 0.2em;
  border-radius: 0.3em;
}

table {
  margin: 0.618em auto;
}
thead {
  background-color: #cacaca;
  color: #191919;
}
th,
td {
  padding: 5px 1em;
}
table p {
  margin: 0;
}
tbody tr:nth-child(even) {
  background-color: #525252;
}
tbody tr:nth-child(odd) {
  background-color: #444444;
}

ul,
ol {
  margin-bottom: 25px;
}

/********** CUSTOM Elements **********/

/* important */
.important {
  background-color: #4a1313;
  border-bottom: 2px solid #ff0000;
}
p.important {
  display: inline-block;
  padding: 0.618em;
  border: 2px solid #ff0000;
  border-radius: 10px;
}
p.important:before,
p.important:after {
  display: inline-block;
  content: "!";
  color: #ff0000;
  font-size: 25px;
  font-weight: 900;
}
p.important:before {
  margin-right: 10px;
}
p.important:after {
  margin-left: 10px;
}

/* obsolete */
.obsolete:after {
  display: inline-block;
  font-family: monospace;
  font-size: 16px;
  color: #dc4725;
  content: "[déprécié]";
  margin-left: 1em;
  text-transform: uppercase;
  font-weight: 900;
}

/* preview */
.preview {
  margin: 0.5em 0 0.5em 80px;
  padding: 1em;
  border: 1px solid #000;
  border-radius: 0.3em;
  background-color: #2d2d2d;
}
.preview > * {
  max-width: 100%;
}
.preview > *:first-child {
  margin-top: 0;
}

/* source */
p.source {
  text-align: right;
  font-style: oblique;
  margin-top: 0;
}

/***************************************************
*************************************** STRUCTURE **
***************************************************/

.mainContainer {
  max-width: 1000px;
  margin: 25px auto;
}

.mainContainer > section {
  border: 5px solid #676cff;
  margin-bottom: 25px;
}

section {
  padding: 25px;
}
section section {
  padding-bottom: 0;
}

/***************************************************
************************************** NAVIGATION **
***************************************************/

nav {
  background-color: #000;
  color: #fff;
}
nav .title {
  border: 1px solid;
  margin: 0;
}
#sommaire {
  padding: 0 25px 25px;
}
nav a {
  display: inline-block;
}
.H2,
.H3 {
  border-top: none;
  margin: 0;
}
.H2 {
  font-size: 24px;
  display: block;
  margin-top: 0.618em;
}
.H2:hover {
  background-color: #676cff;
  color: #000;
}
.H3 {
  font-size: 18px;
}
.H3:hover {
  background-color: #25dc4c;
  color: #000;
}

/********** Bouton de retour en haut **********/

a#cRetour,
a#cRetour:hover {
  transition: all ease-in 0.2s;
}
a#cRetour {
  text-align: center;
}
a#cRetour {
  border-radius: 3px;
  padding: 10px;
  font-size: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  position: fixed;
  right: 20px;
  opacity: 1;
  z-index: 99999;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-decoration: none;
}
a#cRetour:before {
  content: "\25b2";
}
a#cRetour:hover {
  background-color: rgba(0, 0, 0, 1);
}
a#cRetour.cInvisible {
  bottom: -35px;
  opacity: 0;
  transition: all ease-in 0.5s;
}
a#cRetour.cVisible {
  bottom: 20px;
  opacity: 1;
}

/***************************************************
************************************** RESPONSIVE **
***************************************************/

@media screen and (min-width: 500px) {
  .alignleft {
    float: left;
    margin: 0 1em 0.618em 0;
  }
  .alignright {
    float: right;
    margin: 0 0 0.618em 1em;
  }

  .flex--row {
    flex-direction: row;
    justify-content: space-around;
  }
  .flex--wrap {
    flex-wrap: wrap;
  }
}
