/*
$base03:    #002b36;
$base02:    #073642;
$base01:    #586e75;
$base00:    #657b83;
$base0:     #839496;
$base1:     #93a1a1;
$base2:     #eee8d5;
$base3:     #fdf6e3;
$yellow:    #b58900;
$orange:    #cb4b16;
$red:       #dc322f;
$magenta:   #d33682;
$violet:    #6c71c4;
$blue:      #268bd2;
$cyan:      #2aa198;
$green:     #859900;
*/

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
details {
  display: block;
}
summary {
  display: list-item;
}
[hidden],
template {
  display: none;
}

img {
  max-width: 100%;
}

pre {
  overflow-x: auto;
  overflow-y: hidden;
  overflow: scroll;
}
pre code {
  display: block;
  padding: 1.5em;
  font-size: 0.875rem;
  line-height: 2;
}
pre,
pre code {
  white-space: pre;
}
pre {
  color: #ddd;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  position: relative;
}
.pagination {
  margin: 3rem 0;
}
.pagination li {
  display: inline-block;
  margin-right: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 2.5em;
}
.pagination li a {
  padding: 0.5rem 0.625rem;
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
}
.pagination li.disabled {
  display: none;
}
.pagination li.active a:active,
.pagination li.active a:link,
.pagination li.active a:visited {
  background-color: #ddd;
}

/* titles */
@font-face {
  font-family: "archistico";
  src: url("/Archistico_Bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* normal */
@font-face {
  font-family: "Open Sans";
  src: url("/OpenSans.woff2") format("woff2"),
    url("/OpenSans.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* code */
@font-face {
  font-family: "Fira Mono";
  src: url("/FiraMono-Regular.woff2") format("woff2"),
    url("/FiraMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* grid */
.col-1 {
  width: 8.33%;
}
.col-2 {
  width: 16.66%;
}
.col-3 {
  width: 25%;
}
.col-4 {
  width: 33.33%;
}
.col-5 {
  width: 41.66%;
}
.col-6 {
  width: 50%;
}
.col-7 {
  width: 58.33%;
}
.col-8 {
  width: 66.66%;
}
.col-9 {
  width: 75%;
}
.col-10 {
  width: 83.33%;
}
.col-11 {
  width: 91.66%;
}
.col-12 {
  width: 100%;
}
[class*="col-"] {
  float: left;
  padding: 15px;
  /* border: 1px solid red; */
}
.row::after {
  content: "";
  clear: both;
  display: table;
}

body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 120%;
  margin: auto !important;
  padding: 0cm;
  padding-top: 2.4em;
  background-color: #fdf6e3;
  color: #586e75 !important;
  text-align: justify;
  line-height: 1.15;

  /* manage long words */
  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;
  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

* {
  box-sizing: border-box !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "archistico", "Times New Roman", Times, serif;
  font-size: 130%;
  margin-bottom: 1rem;
  margin-top: 2rem;
  page-break-after: avoid;
  break-after: avoid;
  border: none !important;
  font-weight: normal !important;
  text-align: left !important;
  color: #6c71c4;
}

h1 {
  margin-bottom: 3rem;
  font-size: 250%;
  text-align: center;
  color: #cb4b16;
}

h2 {
  margin-top: 4rem;
  font-size: 175%;
  color: #268bd2;
}

h3 {
  margin-top: 4rem;
  font-size: 160%;
  color: #2aa198;
}

h4 {
  font-weight: normal;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-weight: normal;
  text-decoration: none;
}

b,
strong {
  color: #cb4b16;
  font-weight: bolder;
}

.red {
  color: #dc322f;
}

.green {
  color: #859900;
}

a {
  color: inherit;
  text-decoration: underline #cb4b16;
  /*background: linear-gradient(180deg,#cb4b16, #cb4b16) no-repeat 0 1.50rem;*/
  background: linear-gradient(180deg, #cb4b16, #cb4b16) no-repeat 0 2em;
  transition: all 0.15s ease-out;
}
a:hover {
  background-position-y: 0;
  outline-width: 0;
  color: #eee8d5;
}
footer a {
  text-decoration: none;
}

.img svg,
.img img {
  margin: 0;
  width: 100%;
  height: auto;
}
.img {
  position: relative;
  line-height: 0;
}
.img img {
  position: absolute;
  top: 0;
  left: 0;
}

p,
li {
  width: 100%;
  line-height: 180%;
  margin-bottom: 2rem;
}

li {
  margin-bottom: 1rem;
}

ul,
ol {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

ul {
  list-style: none;
  padding-left: 0.2em;
  margin-left: 1em;
  position: relative;
}

ul li {
  padding-left: 1.2em;
}

ul li:before {
  content: "➤";
  color: #cb4b16;
  position: absolute;
  left: 0;
}
ul ul li:before {
  color: #268bd2;
}
ul ul ul li:before {
  color: #2aa198;
}
ul ul ul ul li:before {
  color: #cb4b16;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  color: #cb4b16;
  border-bottom: 5px solid #cb4b16;
}

th,
td {
  padding: 1rem 0.5rem;
  text-align: center;
}

tr {
  border-bottom: 1px dotted #cb4b16;
}

blockquote {
  /*margin: 1cm 2cm 1cm 2cm;
    background-color: #fdf6e3 !important;
    border: 5px solid #cb4b16 !important;
    padding: 0.5cm 1cm 0.5cm 1cm !important;*/
  /*
    padding-left: 1cm;
    margin-left: calc(-1cm - 5px);
    width: 100%;
    */
  margin: 0;
  padding: 1em 2em;
  background-color: #eee8d5 !important;
  border-left: 5px solid #cb4b16 !important;
  quotes: "«" "»";
}
/*
blockquote::before, blockquote::after {
  color: #93a1a1;
  content: open-quote;
  font-size: 400%;
  line-height: 0.1em;
  margin-left: -3cm;
  vertical-align: text-top;
}

blockquote::after {
  content: close-quote;
}
*/

figure {
  margin: 5rem 0;
  text-align: center;
  page-break-inside: avoid;
}

figcaption {
  margin-top: 1rem;
}

.tags {
  margin-top: 5rem;
}
.tags ul {
  padding-left: 0;
}
.tags li {
  display: inline;
  line-height: 300%;
  padding-left: 0;
  padding-right: 0.5rem;
}
.tags li:before {
  content: "";
}
.tags a {
  background: linear-gradient(180deg, #cb4b16, #cb4b16) no-repeat 0 0;
  color: #eee8d5;
  padding: 0.7rem;
}

.related {
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.related li:before {
  content: none;
}
.related ul {
  display: table;
  padding-left: 0;
}
.related li {
  display: table-row;
}
.related .cell {
  display: table-cell;
  vertical-align: middle;
  padding: 1rem 0;
}
.related li .cell:first-child {
  width: 33%;
}
.related li .cell:last-child {
  padding-left: 1rem;
  width: 67%;
}

#site_header div {
  margin: 2em;
  margin-top: 15em;
  background-color: #eee8d5f0;
  padding: 0.2em 2em;
  text-align: center;
}
#site_header h1 {
  text-align: center !important;
}
#site_header {
  margin-bottom: 4rem;
}

#disqus_thread {
  margin: 4rem 0;
}

.toc {
  width: 100%;
  background-color: #eee8d5;
  padding: 1rem 3rem;
}
.toc p {
  margin-bottom: 0;
  margin-top: 0;
}
.toc ul {
  margin: 0 0 0 1em;
}
.toc li {
  margin-bottom: 0rem !important;
  padding-left: 0.5em;
}

.toc li:before {
  content: "-";
}

.pagination {
  margin: 3rem 0;
  padding: 0;
  text-align: justify;
  font-size: 0;
  width: 100%;
}
ul.pagination:after {
  content: "abc";
  display: inline-block;
  width: 100%;
  height: 0;
}
.pagination li {
  display: inline-block;
  padding: 0;
  width: auto;
  margin: 0 !important;
}
.pagination li:before {
  content: none;
}
.pagination li a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  background-color: #eee8d5;
  border: none !important;
  border-radius: 0 !important;
}
.pagination li.disabled {
  display: none;
}
.pagination li.active a:active,
.pagination li.active a:link,
.pagination li.active a:visited {
  background-color: #ddd;
}

hr {
  overflow: visible; /* For IE */
  padding: 0;
  border: none;
  border-top: medium double #073642;
  margin: 5em 5em;
}

.normal {
  font-weight: 400;
}

tbody {
  width: 100%;
}

pre {
  background-color: #073642 !important;
  overflow: auto !important;
  margin: 0;
}

code {
  font-family: "Fira Mono", "Courier New", Courier, "Lucida Sans Typewriter",
    "Lucida Typewriter", monospace !important;
  color: #bbb !important;
  padding: 0 0.1em;
  display: inline-block;
  page-break-inside: avoid;
  break-inside: avoid;
}

/* inline code */
code {
  filter: brightness(70%);
  background-color: #073642; /* fallback */
  background-color: #07364208;
}
pre > code {
  filter: initial;
  background-color: initial;
}

/* code block */
pre > code {
  background-color: #073642;
  padding: 0.5em 0.5em 0.5em 0.5em;
  font-size: 0.875rem;
  line-height: 2;
}

.chroma {
  border-radius: 5px;
}

.chroma td {
  text-align: left;
}
.chroma .lntable {
  background-color: rgba(0, 0, 0, 0) !important;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid #cb4b16 !important;
}
.chroma .lntable > tbody,
.chroma .lntable > tbody > tr {
  width: 100%;
  display: block;
}
.chroma .lntable > tbody > tr > td {
  overflow: hidden; /* Hide scrollbars */
}
.chroma .lntable > tbody > tr > td:first-child {
  width: 5rem;
}
.chroma .lntable > tbody > tr > td:first-child code {
  background-color: #002b36 !important;
}
.chroma .lntable > tbody > tr > td:last-child {
  width: 100%;
}

.hljs-function > .hljs-params {
  color: #cb4b16 !important;
}

/* decorator */
.hljs-meta {
  color: #268bd2 !important;
}

/* html / xml */
.hljs-tag {
  color: #dcdcdc /*#93a1a1*/ !important;
}
.hljs-tag > .hljs-name {
  color: #dc322f !important;
}
.hljs-tag > .hljs-attr {
  color: #6c71c4 !important;
}

footer {
  background-color: #eee8d5;
  width: 100%;
}
.content {
  width: 100%;
}

main,
footer {
  padding: 5%;
}

header {
  padding: 0;
  margin: 0;
}

.card {
  width: 100%;
  background-color: #eee8d5;
  margin-bottom: 2em;
}
.card-content {
  margin: 1em;
  padding-bottom: 0.1em;
}
.card h1 {
  font-size: 200%;
}

#hamnav {
  width: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: #cb4b16;
}
#hamburger {
  display: none;
}
#hamitems {
  display: flex;
  background: #fdf6e3;
  background-image: linear-gradient(to right, #fdf6e3, #eee8d5 60%, #93a1a1);
}
#hamitems a {
  padding: 10px;
  color: #586e75;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  display: block;
  width: 100%;
}
#hamitems a:hover {
  color: #eee8d5;
}
#hamnav label {
  display: inline-block;
  color: #eee8d5;
  background: #cb4b16;
  font-style: normal;
  font-size: 1.2em;
  padding: 10px;
  height: 2em;
}
/* toggle menu */
#hamitems {
  display: none;
}
#hamnav input:checked ~ #hamitems {
  display: block;
}

#sharing a {
  margin-right: 2em;
}

.contact_link svg{
  vertical-align: bottom !important;
}

@media only screen and (min-width: 1024px) {
  #hamnav {
    display: none;
  }
  body {
    padding-top: 0;
  }

  main,
  header,
  footer {
    max-width: 22cm !important;
    padding: 0;
  }
  /* footer */
  body,
  footer,
  .content {
    height: 100vh;
  }
  footer {
    padding: 6%;
    position: fixed;
    left: 0px;
    width: 33%;
  }
  .content > header {
    max-height: 15cm !important;
    overflow: hidden;
  }
  #social {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    vertical-align: middle;
  }
  .content {
    padding: 3%;
    position: absolute;
    left: 33%;
    width: 67%;
  }
  /* end footer */

  .card {
    width: 48%;
    display: inline-block;
    vertical-align: text-top;
  }
}

@media print {
  @page {
    size: A4 portrait;
    background-color: #fdf6e3;
  }

  body {
    padding: 0cm;
    font-size: 100%;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 80%;
  }

  a[href^="#"]:after {
    display: none;
  }

  a {
    word-wrap: break-word;
    color: #586e75;
  }
  table,
  img,
  svg,
  blockquote {
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  @page :blank {
    @top-center {
      content: "Cette page est intentionnellement blanche.";
    }
  }

  @page {
    @bottom-left {
      margin: 10pt 0 30pt 0;
      border-top: 0.25pt solid #666;
      content: "© 2020 Vincent Poulailleau";
      font-size: 9pt;
      color: #333;
    }
  }
  @page {
    @bottom-center {
      margin: 10pt 0 30pt 0;
      border-top: 0.25pt solid #666;
      content: counter(page);
      font-size: 9pt;
      color: #333;
    }
  }
}

/***************** COLORATION SYNTAXIQUE **********************/
/* Background */
.chroma {
  color: #93a1a1;
  background-color: #002b36;
}
/* Other */
.chroma .x {
  color: #cb4b16;
}
/* Error */
.chroma .err {
}
/* LineTableTD */
.chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0;
}
/* LineTable */
.chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0;
  width: auto;
  overflow: auto;
  display: block;
}
/* LineHighlight */
.chroma .hl {
  display: block;
  width: 100%;
  background-color: #ffffcc;
}
/* LineNumbersTable */
.chroma .lnt {
  margin-right: 0.4em;
  padding: 0 0.4em 0 0.4em;
  color: #93a1a1;
}
/* LineNumbers */
.chroma .ln {
  margin-right: 0.4em;
  padding: 0 0.4em 0 0.4em;
  color: #839496;
}
/* Keyword */
.chroma .k {
  color: #6c71c4;
}
/* KeywordConstant */
.chroma .kc {
  color: #cb4b16;
}
/* KeywordDeclaration */
.chroma .kd {
  color: #6c71c4;
}
/* KeywordNamespace */
.chroma .kn {
  color: #6c71c4;
}
/* KeywordPseudo */
.chroma .kp {
  color: #6c71c4;
}
/* KeywordReserved */
.chroma .kr {
  color: #6c71c4;
}
/* KeywordType */
.chroma .kt {
  color: #6c71c4;
}
/* Name */
.chroma .n {
}
/* NameAttribute */
.chroma .na {
}
/* NameBuiltin */
.chroma .nb {
  color: #268bd2;
}
/* NameBuiltinPseudo */
.chroma .bp {
  color: #cb4b16;
}
/* NameClass */
.chroma .nc {
  color: #b58900;
}
/* NameConstant */
.chroma .no {
  color: #cb4b16;
}
/* NameDecorator */
.chroma .nd {
  color: #268bd2;
}
/* NameEntity */
.chroma .ni {
  color: #cb4b16;
}
/* NameException */
.chroma .ne {
  color: #b58900;
}
/* NameFunction */
.chroma .nf {
  color: #268bd2;
}
/* NameFunctionMagic */
.chroma .fm {
}
/* NameLabel */
.chroma .nl {
}
/* NameNamespace */
.chroma .nn {
}
/* NameOther */
.chroma .nx {
}
/* NameProperty */
.chroma .py {
}
/* NameTag */
.chroma .nt {
  color: #b58900;
}
/* NameVariable */
.chroma .nv {
  color: #268bd2;
}
/* NameVariableClass */
.chroma .vc {
}
/* NameVariableGlobal */
.chroma .vg {
}
/* NameVariableInstance */
.chroma .vi {
}
/* NameVariableMagic */
.chroma .vm {
}
/* Literal */
.chroma .l {
}
/* LiteralDate */
.chroma .ld {
}
/* LiteralString */
.chroma .s {
  color: #859900;
}
/* LiteralStringAffix */
.chroma .sa {
  color: #859900;
}
/* LiteralStringBacktick */
.chroma .sb {
  color: #859900;
}
/* LiteralStringChar */
.chroma .sc {
  color: #859900;
}
/* LiteralStringDelimiter */
.chroma .dl {
  color: #859900;
}
/* LiteralStringDoc */
.chroma .sd {
  color: #859900;
}
/* LiteralStringDouble */
.chroma .s2 {
  color: #859900;
}
/* LiteralStringEscape */
.chroma .se {
  color: #cb4b16;
}
/* LiteralStringHeredoc */
.chroma .sh {
}
/* LiteralStringInterpol */
.chroma .si {
  color: #859900;
}
/* LiteralStringOther */
.chroma .sx {
  color: #859900;
}
/* LiteralStringRegex */
.chroma .sr {
  color: #859900;
}
/* LiteralStringSingle */
.chroma .s1 {
  color: #859900;
}
/* LiteralStringSymbol */
.chroma .ss {
  color: #859900;
}
/* LiteralNumber */
.chroma .m {
  color: #cb4b16;
}
/* LiteralNumberBin */
.chroma .mb {
  color: #cb4b16;
}
/* LiteralNumberFloat */
.chroma .mf {
  color: #cb4b16;
}
/* LiteralNumberHex */
.chroma .mh {
  color: #cb4b16;
}
/* LiteralNumberInteger */
.chroma .mi {
  color: #cb4b16;
}
/* LiteralNumberIntegerLong */
.chroma .il {
  color: #cb4b16;
}
/* LiteralNumberOct */
.chroma .mo {
  color: #cb4b16;
}
/* Operator */
.chroma .o {
  color: #2aa198;
}
/* OperatorWord */
.chroma .ow {
  color: #6c71c4;
}
/* Punctuation */
.chroma .p {
  color: #b58900;
}
/* Comment */
.chroma .c {
  color: #657b83;
}
/* CommentHashbang */
.chroma .ch {
  color: #657b83;
}
/* CommentMultiline */
.chroma .cm {
  color: #657b83;
}
/* CommentSingle */
.chroma .c1 {
  color: #657b83;
}
/* CommentSpecial */
.chroma .cs {
  color: #657b83;
}
/* CommentPreproc */
.chroma .cp {
  color: #657b83;
}
/* CommentPreprocFile */
.chroma .cpf {
  color: #657b83;
}
/* Generic */
.chroma .g {
}
/* GenericDeleted */
.chroma .gd {
  color: #dc322f;
}
/* GenericEmph */
.chroma .ge {
  font-style: italic;
}
/* GenericError */
.chroma .gr {
  color: #dc322f;
  font-weight: bold;
}
/* GenericHeading */
.chroma .gh {
  color: #cb4b16;
}
/* GenericInserted */
.chroma .gi {
  color: #719e07;
}
/* GenericOutput */
.chroma .go {
}
/* GenericPrompt */
.chroma .gp {
}
/* GenericStrong */
.chroma .gs {
  font-weight: bold;
}
/* GenericSubheading */
.chroma .gu {
  color: #268bd2;
}
/* GenericTraceback */
.chroma .gt {
}
/* GenericUnderline */
.chroma .gl {
}
/* TextWhitespace */
.chroma .w {
}
