@charset "utf-8";

/*
 * jk-theme : feuille de style principale
 * CSS natif, sans préprocesseur.
 *
 * Sommaire
 *  1. Variables
 *  2. Polices
 *  3. Base (reset, typographie, liens, code, images)
 *  4. Mise en page (en-tête, pied de page, contenu)
 *  5. Navigation : menu principal
 *  6. Navigation : menu secondaire
 *  7. Cartes
 *  8. Boutons d'action (modifier, slideshow)
 *  9. Tableaux
 * 10. Ajustements (figures, visionneuse, notes, accessibilité…)
 * 11. Utilitaires
 * 12. Coloration syntaxique
 * 13. Impression
 *
 * Points de rupture (les variables CSS ne fonctionnent pas
 * dans les media queries) :
 *  - 600px : mobile
 *  - 800px : tablette / ordinateur
 *  - hauteur 600px : la barre latérale demande aussi assez de hauteur
 */


/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
  /* Polices */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-title: var(--font-base);
  --font-code: Monoist-Web, monospace;

  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-code: 15px;
  --font-weight-base: 400;
  --font-weight-bold: 700;
  --line-height-base: 1.5;

  /* Espacements */
  --spacing: 30px;
  --spacing-half: 15px;

  /* Largeurs */
  --content-width: 800px;
  --sidebar-width: 25%;
  --main-width: 75%;

  /* Couleurs */
  --color-text: #111;
  --color-background: #fff;

  --color-brand: #00d2b8;        /* bleu-vert */
  --color-brand-dark: #008675;   /* liens, survols */
  --color-contrast: #f766ff;     /* rose */
  --color-contrast-dark: #da00e6;

  --color-grey: #828282;
  --color-grey-light: #cfcfcf;   /* bordures, filets */
  --color-grey-dark: #424242;    /* titres, gras */

  --color-code-background: #f8f9f5;
  --color-quote-background: #e7fff5;
  --color-table-stripe: #f3f3f3;
}


/* ==========================================================================
   2. Polices
   ========================================================================== */

@font-face {
  font-family: "Monoist-Web";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/monoist.woff2") format("woff2"),
       url("../fonts/monoist.woff") format("woff");
}


/* ==========================================================================
   3. Base
   ========================================================================== */

/* Reset */

body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

body {
  font-weight: var(--font-weight-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Rythme vertical */

h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: var(--spacing-half);
}

pre, code {
  font-family: var(--font-code);
  font-weight: 400;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Images */

img {
  max-width: 100%;
  vertical-align: middle;
  border: 1px solid #aaa;
  margin: 2.5em 0;
}

video {
  max-width: 100%;
  margin: 2.5em 0;
}

/* Figures */

figure > img {
  display: block;
}

figcaption {
  font-size: var(--font-size-small);
}

/* Listes */

ul, ol {
  margin-left: var(--spacing);
}

li > ul,
li > ol {
  margin-bottom: 0;
}

/* Titres */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-family: var(--font-title);
}

/* Liens */

a {
  color: var(--color-brand-dark);
  text-decoration: none;
}

a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.post-content a {
  text-decoration: underline;
}

/* Citations */

blockquote {
  color: #000;
  background-color: var(--color-quote-background);
  border-left: 4px solid var(--color-brand);
  padding: var(--spacing-half);
  font-style: normal;
  line-height: 1.4;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/* Code */

pre,
code {
  font-size: var(--font-size-code);
  border: 1px solid var(--color-grey-light);
  border-radius: 3px;
  background-color: var(--color-code-background);
}

/* Pas de fond ni de bordure pour le code dans une citation */
blockquote code {
  background-color: transparent;
  border: 0;
  font-size: 0.9em;
}

code {
  padding: 1px 5px;
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
}

pre > code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/* Bouton « Copier » des blocs de code (ajouté par coursweb.js) */

.code-block {
  position: relative;
}

.code-block > pre {
  padding-right: 3rem; /* place pour le bouton */
}

.code-copy {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--color-grey-light);
  border-radius: 4px;
  background-color: var(--color-background);
  color: var(--color-grey);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.code-block:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
}

.code-copy:hover {
  color: var(--color-text);
  border-color: var(--color-grey);
}

.code-copy:focus-visible {
  outline: 3px solid var(--color-brand-dark);
  outline-offset: 2px;
}

.code-copy.is-copied {
  opacity: 1;
  color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

/* Écrans tactiles (pas de survol) : bouton toujours bien visible */
@media (hover: none) {
  .code-copy {
    opacity: 1;
  }
}

/* Conteneur */

.wrapper {
  max-width: calc(var(--content-width) - var(--spacing) * 2);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--spacing);
  padding-left: var(--spacing);
}

@media screen and (max-width: 800px) {
  .wrapper {
    max-width: calc(var(--content-width) - var(--spacing));
    padding-right: var(--spacing-half);
    padding-left: var(--spacing-half);
  }
}

/* Clearfix (pour les éléments flottants) */

.wrapper::after,
.footer-col-wrapper::after,
.second-menu::after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   4. Mise en page
   ========================================================================== */

/* En-tête */

.site-header {
  padding-bottom: 12px;
  border-top: 5px solid var(--color-grey-dark);
  border-bottom: 1px solid var(--color-grey-light);
  min-height: 56px;
  /* Contexte de positionnement pour le menu mobile */
  position: relative;
}

.site-title {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-title);
  line-height: 1;
  margin-top: 12px;
  margin-right: 1em;
  margin-bottom: 12px;
  float: left;
}

.site-title,
.site-title:visited {
  color: var(--color-grey-dark);
}

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--color-grey-light);
  padding: var(--spacing) 0;
  clear: left;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: var(--spacing-half);
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 15px;
  color: var(--color-grey);
  margin-left: calc(var(--spacing-half) * -1);
}

.footer-col {
  float: left;
  margin-bottom: var(--spacing-half);
  padding-left: var(--spacing-half);
}

.footer-col-1 {
  width: calc(35% - var(--spacing-half));
}

.footer-col-2 {
  width: calc(20% - var(--spacing-half));
}

.footer-col-3 {
  width: calc(45% - var(--spacing-half));
}

@media screen and (max-width: 800px) {
  .footer-col-1,
  .footer-col-2 {
    width: calc(50% - var(--spacing-half));
  }

  .footer-col-3 {
    width: calc(100% - var(--spacing-half));
  }
}

@media screen and (max-width: 600px) {
  .footer-col {
    float: none;
    width: calc(100% - var(--spacing-half));
  }
}

/* Contenu */

.page-content {
  padding: var(--spacing) 0;
}

.post-meta {
  font-size: var(--font-size-small);
  color: var(--color-grey);
}

/* Articles et pages */

.post-header {
  margin-bottom: var(--spacing);
}

.post-title {
  font-size: 42px;
  line-height: 1;
}

@media screen and (max-width: 800px) {
  .post-title {
    font-size: 36px;
  }
}

.post-content {
  margin-bottom: var(--spacing);
}

.post-content strong,
.post-content b {
  color: var(--color-grey-dark);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  clear: left;
  border-bottom: 2px solid var(--color-grey-light);
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.post-content h1 {
  font-size: 28px;
}

.post-content h2 {
  font-size: 24px;
}

.post-content h3 {
  font-size: 22px;
}

.post-content h4,
.post-content h5,
.post-content h6 {
  font-size: 18px;
}

@media screen and (max-width: 800px) {
  .post-content h1 {
    font-size: 26px;
  }

  .post-content h2 {
    font-size: 22px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-content h4,
  .post-content h5,
  .post-content h6 {
    font-size: 16px;
  }
}

.post-content strong,
.post-content b {
  font-weight: var(--font-weight-bold);
}

/* ==========================================================================
   5. Navigation : menu principal
   ========================================================================== */

.site-nav {
  float: left;
  line-height: 2em;
  margin-top: 0.5em;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav a {
  padding: 0.5em;
}

.site-nav .page-link {
  color: var(--color-text);
  line-height: var(--line-height-base);
}

.site-nav .active {
  color: #009f8b;
  background-color: var(--color-background);
  text-decoration: underline;
}

/* Mobile : menu déroulant au survol de l'icône */

@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: var(--spacing-half);
    background-color: var(--color-background);
    border: 1px solid var(--color-grey-light);
    border-radius: 5px;
    text-align: right;
    z-index: 5;
  }

  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }

  .site-nav .menu-icon > svg {
    width: 18px;
    height: 15px;
  }

  .site-nav .menu-icon > svg path {
    fill: var(--color-grey-dark);
  }

  .site-nav .trigger {
    clear: both;
    display: none;
  }

  .site-nav:hover .trigger {
    display: block;
    padding-bottom: 5px;
  }

  .site-nav .page-link {
    display: block;
    padding: 5px 10px 5px 20px;
  }

  .site-nav .page-link:not(:last-child) {
    margin-right: 0;
  }
}

/* Ordinateur : liens encadrés */

@media screen and (min-width: 601px) {
  .site-nav .page-link {
    border: 1px solid var(--color-text);
    line-height: 2.6;
    transition: background-color 0.2s ease-in-out;
  }

  .site-nav .page-link.active,
  .site-nav .page-link:hover {
    color: white;
    text-decoration: none;
  }

  .site-nav .page-link.active {
    background-color: var(--color-brand);
  }

  .site-nav .page-link:hover {
    background-color: var(--color-contrast-dark);
  }
}


/* ==========================================================================
   6. Navigation : menu secondaire
   ==========================================================================
   Inclus deux fois (voir _includes/nav-second.html) :
   - grand écran : barre latérale à gauche, le menu du bas est masqué ;
   - petit écran : en haut et en bas du contenu.
*/

.second-menu {
  border-bottom: 1px solid var(--color-grey-light);
  padding-bottom: 15px;
}

.second-menu ul {
  padding-left: 1em;
  color: var(--color-grey-light);
  margin-left: -0.4em;
}

.second-menu li {
  list-style-type: none;
  float: left;
}

.second-menu li::after {
  content: "— ";
}

.second-menu li:last-of-type::after {
  content: none;
}

.second-menu a {
  padding: 0.2em 0.5em 0.2em 0.5em;
  color: black;
  display: inline;
}

.second-menu .active {
  color: var(--color-brand-dark);
}

.page-content .secondary-menu {
  border-top: 1px solid var(--color-grey-light);
}

.page-content .second-menu {
  border-bottom: 0;
  margin-top: var(--spacing);
}

/* Petits écrans : boutons en haut et en bas du contenu */

@media screen and (max-width: 799px),
       screen and (max-height: 599px) {
  .second-menu {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: var(--color-grey);
  }

  .second-menu li {
    margin: 0.5em 0.3em;
  }

  .second-menu li::after {
    content: "";
  }

  .second-menu a {
    color: #fff;
    background-color: #545454;
    border-radius: 0.2em;
    padding: 0.3em 0.6em;
  }

  .second-menu a.active {
    background-color: var(--color-brand);
    color: #fff;
  }

  .second-menu a:hover {
    background-color: var(--color-contrast);
    text-decoration: none;
  }

  .page-content .secondary-menu {
    border: 0;
  }
}

/* Grands écrans : barre latérale */

@media screen and (min-width: 800px) and (min-height: 600px) {
  .secondary-menu {
    width: var(--sidebar-width);
    float: left;
    background: var(--color-background);
    padding-top: 30px;
  }

  .second-menu {
    border-bottom: 0;
  }

  .second-menu ul {
    margin-left: var(--spacing);
  }

  .second-menu li {
    list-style-type: decimal;
    float: none;
  }

  .second-menu li::after {
    content: none;
  }

  .second-menu a {
    display: block;
  }

  .second-menu .active {
    text-decoration: underline;
  }

  /* Masquer le menu du bas */
  .page-content .secondary-menu {
    display: none;
  }

  .page-content {
    padding-top: var(--spacing);
    float: right;
    clear: none;
    padding-left: 0;
  }

  .page-content,
  .site-footer {
    width: var(--main-width);
    max-width: 100%;
  }

  .site-footer {
    clear: both;
    padding-left: var(--sidebar-width);
  }
}


/* ==========================================================================
   7. Cartes
   ==========================================================================
   Un élément .cards donne la classe .card-list à la liste qui le suit
   (voir assets/js/coursweb.js).
*/

@media screen and (min-width: 600px) {
  .card-list {
    margin: 0 0 2em 0;
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(3, 1fr);
  }

  .card-list li {
    list-style: none;
    display: block;
    border: 0 solid var(--color-brand);
    padding: 0.8em 1em;
    background: linear-gradient(135deg, var(--color-brand-dark), #003932);
    color: #c6d2c8;
  }

  .card-list li a {
    font-weight: bold;
    display: block;
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 0.5em;
  }

  .card-list li a:hover {
    color: #fff;
  }
}


/* ==========================================================================
   8. Boutons d'action (modifier, slideshow)
   ==========================================================================
   coursweb.js ajoute la classe .is-hidden tant que la page
   n'a pas défilé de plus de 200px.
*/

@media screen and (min-width: 601px) {
  .post-content {
    padding-right: 5em; /* place pour les boutons */
  }

  .source {
    display: block;
    position: fixed;
    top: calc(50vh - 3.5rem);
    right: 2rem;
    width: 3rem;
    height: 7rem;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .source.is-hidden {
    opacity: 0;
    visibility: hidden;
  }

  .source li {
    list-style: none;
  }

  /* Filet vertical derrière les boutons */
  .source::before {
    display: block;
    position: fixed;
    top: 0;
    right: 3.5rem;
    height: 100vh;
    width: 1px;
    background-color: var(--color-brand);
    content: "";
    z-index: 1;
  }

  .edit-link,
  .slideshow-link {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font: 0/0 a;
    text-shadow: none;
    color: transparent;
    background-color: var(--color-brand);
    background-size: 100%;
    transition: background-color 0.3s ease-in-out;
  }

  .edit-link {
    background-image: url("../img/edit-link-2.png");
  }

  .slideshow-link {
    top: 4rem;
    background-image: url("../img/slideshow-link-2.png");
  }

  .edit-link:hover,
  .slideshow-link:hover {
    background-color: var(--color-brand-dark);
  }
}


/* ==========================================================================
   9. Tableaux
   ========================================================================== */

table,
th,
td {
  border: 1px solid var(--color-grey-light);
}

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

th {
  font-weight: normal;
  color: white;
  background-color: var(--color-brand);
}

th,
td {
  padding: 0.3em 0.5em;
}

/* Lignes alternées */
tr:nth-child(even) {
  background-color: var(--color-table-stripe);
}


/* ==========================================================================
   10. Ajustements
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-grey-dark);
}

hr {
  margin-top: 1.5em;
  margin-bottom: 2em;
  border: none;
  height: 2px;
  background-color: var(--color-grey-light);
}

figcaption {
  font-style: normal;
  font-size: 0.85em;
  padding-left: 0;
  color: var(--color-grey);
}

.page-content {
  padding-top: 30px; /* modifié par les media queries */
}

/* Images du contenu */

.post-content img {
  margin: 0.5em 0;
  max-height: 45vh;
  cursor: zoom-in;
}

.post-content img.large-image {
  max-height: 100%;
  cursor: auto;
}

/* Figures générées par coursweb.js */

.post-content .figure-auto {
  margin-bottom: var(--spacing);
}

.post-content .figure-auto img {
  margin-bottom: 0.25em;
}

.post-content .image-link {
  display: inline-block;
}

.post-content .image-link:focus-visible {
  outline: 3px solid var(--color-brand-dark);
  outline-offset: 3px;
}

/* Visionneuse d'images (<dialog class="lightbox">) */

.lightbox {
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  cursor: zoom-out;
}

.lightbox::backdrop {
  background-color: rgba(0, 0, 0, 0.85);
}

.lightbox[open] {
  animation: lightbox-in 0.2s ease-out;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-img {
  display: block;
  max-width: 95vw;
  max-height: 85vh;
  margin: 0 auto;
  border: 0;
  object-fit: contain;
  background-color: var(--color-background);
}

.lightbox-caption {
  margin-top: 0.5em;
  color: #fff;
  font-size: var(--font-size-small);
}

.lightbox-close {
  position: fixed;
  top: 0.5rem;
  right: 1rem;
  padding: 0 0.3em;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--color-brand);
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox[open] {
    animation: none;
  }
}

/* Tableaux du contenu */

.post-content tbody {
  vertical-align: top;
}

.post-content table {
  margin-bottom: 2.5em;
}

.post-content tbody td:first-of-type code {
  display: block;
  margin-right: 1em;
}

/* Image suivie d'une légende en italique (si non transformée en figure) */
img + br + em {
  display: block;
}

/* Notes de bas de page */

.post-content .footnotes::before {
  content: "Notes";
  display: block;
  font-size: 140%;
  font-weight: 700;
  margin: 2.5em 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--color-grey-light);
}

.post-content .footnotes {
  font-size: 90%;
  line-height: 1.2;
}

.site-header .wrapper {
  max-width: 100%;
}

@media screen and (max-width: 799px),
       screen and (max-height: 599px) {
  .page-content {
    padding-bottom: 0;
  }

  .site-header,
  .site-footer {
    border: 0;
  }
}

/* Page d'accueil : pleine largeur */

@media screen and (min-width: 800px) {
  .homepage .page-content {
    width: 100%;
    padding-left: 0;
  }

  .homepage .wrapper {
    max-width: calc(100% - var(--spacing) * 2);
    margin-left: 0;
    padding-right: var(--spacing-half);
  }
}

/* Embeds Figma : un peu de marge et une ombre */

iframe[src*="figma.com"] {
  margin: 10px 0 20px 0;
  box-shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 2px 6px 2px;
  border-radius: 8px;
}

/* Embeds CodePen : un peu de marge après */

.cp_embed_wrapper {
  margin-bottom: 1em;
}

/* Liens d'évitement (accessibilité) */

.skiplink {
  display: inline-block;
  color: #555;
  background: #fff;
  padding: 0.5em;
  position: absolute;
  left: -99999rem;
  z-index: 100;
}

.skiplink:focus {
  left: 0;
}

/* Listes de tâches */

ul.task-list {
  list-style: none;
  margin-left: 0;
}

.task-list-item-checkbox {
  margin-right: 0.5em;
  vertical-align: text-bottom;
}


/* ==========================================================================
   11. Utilitaires
   ========================================================================== */

/* Galerie en ligne, utilisable dans les exemples de code */

.flexgallery {
  display: flex;
}

.flexgallery img:hover {
  cursor: default;
}

.flexgallery figure {
  padding: 0 0.5em;
}

.flexgallery figure:first-of-type {
  padding-left: 0;
}

.flexgallery figure:last-of-type {
  padding-right: 0;
}

/* Texte lisible uniquement par les lecteurs d'écran */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   12. Coloration syntaxique (Rouge)
   ========================================================================== */

.highlight {
  background: #fff;
}

.highlighter-rouge .highlight {
  background: var(--color-code-background);
}

.highlight .c   { color: #998; font-style: italic; }              /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2; }    /* Error */
.highlight .k   { font-weight: bold; }                            /* Keyword */
.highlight .o   { font-weight: bold; }                            /* Operator */
.highlight .cm  { color: #998; font-style: italic; }              /* Comment.Multiline */
.highlight .cp  { color: #999; font-weight: bold; }               /* Comment.Preproc */
.highlight .c1  { color: #998; font-style: italic; }              /* Comment.Single */
.highlight .cs  { color: #999; font-weight: bold; font-style: italic; } /* Comment.Special */
.highlight .gd  { color: #000; background-color: #fdd; }          /* Generic.Deleted */
.highlight .gd .x { color: #000; background-color: #faa; }        /* Generic.Deleted.Specific */
.highlight .ge  { font-style: italic; }                           /* Generic.Emph */
.highlight .gr  { color: #a00; }                                  /* Generic.Error */
.highlight .gh  { color: #999; }                                  /* Generic.Heading */
.highlight .gi  { color: #000; background-color: #dfd; }          /* Generic.Inserted */
.highlight .gi .x { color: #000; background-color: #afa; }        /* Generic.Inserted.Specific */
.highlight .go  { color: #888; }                                  /* Generic.Output */
.highlight .gp  { color: #555; }                                  /* Generic.Prompt */
.highlight .gs  { font-weight: bold; }                            /* Generic.Strong */
.highlight .gu  { color: #aaa; }                                  /* Generic.Subheading */
.highlight .gt  { color: #a00; }                                  /* Generic.Traceback */
.highlight .kc  { font-weight: bold; }                            /* Keyword.Constant */
.highlight .kd  { font-weight: bold; }                            /* Keyword.Declaration */
.highlight .kp  { font-weight: bold; }                            /* Keyword.Pseudo */
.highlight .kr  { font-weight: bold; }                            /* Keyword.Reserved */
.highlight .kt  { color: #458; font-weight: bold; }               /* Keyword.Type */
.highlight .m   { color: #099; }                                  /* Literal.Number */
.highlight .s   { color: #d14; }                                  /* Literal.String */
.highlight .na  { color: #008080; }                               /* Name.Attribute */
.highlight .nb  { color: #0086B3; }                               /* Name.Builtin */
.highlight .nc  { color: #458; font-weight: bold; }               /* Name.Class */
.highlight .no  { color: #008080; }                               /* Name.Constant */
.highlight .ni  { color: #800080; }                               /* Name.Entity */
.highlight .ne  { color: #900; font-weight: bold; }               /* Name.Exception */
.highlight .nf  { color: #900; font-weight: bold; }               /* Name.Function */
.highlight .nn  { color: #555; }                                  /* Name.Namespace */
.highlight .nt  { color: #000080; }                               /* Name.Tag */
.highlight .nv  { color: #008080; }                               /* Name.Variable */
.highlight .ow  { font-weight: bold; }                            /* Operator.Word */
.highlight .w   { color: #bbb; }                                  /* Text.Whitespace */
.highlight .mf  { color: #099; }                                  /* Literal.Number.Float */
.highlight .mh  { color: #099; }                                  /* Literal.Number.Hex */
.highlight .mi  { color: #099; }                                  /* Literal.Number.Integer */
.highlight .mo  { color: #099; }                                  /* Literal.Number.Oct */
.highlight .sb  { color: #d14; }                                  /* Literal.String.Backtick */
.highlight .sc  { color: #d14; }                                  /* Literal.String.Char */
.highlight .sd  { color: #d14; }                                  /* Literal.String.Doc */
.highlight .s2  { color: #d14; }                                  /* Literal.String.Double */
.highlight .se  { color: #d14; }                                  /* Literal.String.Escape */
.highlight .sh  { color: #d14; }                                  /* Literal.String.Heredoc */
.highlight .si  { color: #d14; }                                  /* Literal.String.Interpol */
.highlight .sx  { color: #d14; }                                  /* Literal.String.Other */
.highlight .sr  { color: #009926; }                               /* Literal.String.Regex */
.highlight .s1  { color: #d14; }                                  /* Literal.String.Single */
.highlight .ss  { color: #990073; }                               /* Literal.String.Symbol */
.highlight .bp  { color: #999; }                                  /* Name.Builtin.Pseudo */
.highlight .vc  { color: #008080; }                               /* Name.Variable.Class */
.highlight .vg  { color: #008080; }                               /* Name.Variable.Global */
.highlight .vi  { color: #008080; }                               /* Name.Variable.Instance */
.highlight .il  { color: #099; }                                  /* Literal.Number.Integer.Long */


/* ==========================================================================
   13. Impression
   ==========================================================================
   Certaines règles viennent de HTML5 Boilerplate.
*/

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important; /* le noir s'imprime plus vite */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  pre {
    white-space: pre-wrap !important;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  /* Éléments masqués à l'impression */
  .site-nav,
  .secondary-menu,
  .site-footer,
  #post-footer,
  .edit-link,
  .slideshow-link,
  .code-copy {
    display: none;
  }

  .site-header {
    border-top: 0;
  }

  body {
    font-size: 12px;
  }

  .post-title {
    font-size: 26px;
    letter-spacing: 0;
  }

  .post-content h1 {
    font-size: 22px;
  }

  .post-content h2 {
    font-size: 18px;
  }

  .post-content h3,
  .post-content h4,
  .post-content h5,
  .post-content h6 {
    font-size: 16px;
  }
}
