/* mise en page pour mobile */
#conteneur {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(75, auto);
  margin: 0 auto;
  grid-template-areas:
    "header header header header header header"
    "nav    nav    nav    nav    nav    nav"
    "main   main   main   main   main   main"
    "footer footer footer footer footer footer";
  }

/* mise en page pour ordinateur de bureau */
@media screen and (min-width: 1200px) {
  #conteneur {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(75, auto);
  margin: 0 auto;
  grid-template-areas:
    "header header header header header header"
    "nav    main   main   main   main   main"
    "footer footer footer footer footer footer";
  }
}

/* -------------------------------------------------------------------------- */

body {
  margin: 0;
  background-color: #666;
  font-family: 'Open Sans', sans-serif;
  font-size: 110%;
}

header {
  grid-area: header;
  /*background-image: linear-gradient(black, DodgerBlue);*/
  background-color: DarkSlateBlue; /* SteelBlue */
  color: #eee;
  padding-left: 20px;
  /*letter-spacing: 2px;*/
}
header > p {
  font-size: 120%;
  color: white;
}

nav {
  grid-area: nav;
  background-color: #eee;
  padding-left: 20px;
  padding-right: 10px;
}
nav h2 {
  font-size: 120%;
  margin-bottom: 5px;
}
nav ul {
  list-style-type: none;
  padding: 0;
}
nav li {
  padding-bottom: 5px;
}
nav a {
  color: #333;
  text-decoration: none;
}
nav a:hover {
  color: black;
  background-color: white;
}

main {
  grid-area: main;
  background-color: #fff;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 40px;
  /*padding-top: 1px;*/  /* nécessaire */
  /*color: #333;*/
}

footer {
  grid-area: footer;
  color: white;
  text-align: center;
  padding: 10px;
}

h1 {
  font-size: 180%;
  font-weight: bold;
}

h2 {
  font-size: 158%;
  font-weight: bold;
}

h3 {
  font-size: 136%;
  font-weight: bold;
}

h4 {
  font-size: 120%;
  font-weight: bold;
}

h5 {
  font-size: 112%;
  font-weight: bold;
}

/* -------------------------------------------------------------------------- */

code { /* mots clés */
  font-size: 1.3em;
  font-weight: bold;
  background-color: #eeeeee;
}

kbd { /* touches du clavier */
  font-size: 1.3em;
  font-weight: bold;
  background-color: #eee;
  border: solid #333 1px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 5px;
}

strong { /* texte important */
  padding-left: 2px;
  padding-right: 2px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #000;
}

em { /* classes, méthodes et fonctions */
  font-weight: bold;
  font-style: italic;
  color: #000;
}

b { /* chemins, URL et adresses IP */
  font-family: monospace;
  font-size: 1.3em;
}

i { /* texte en anglais */
  font-weight: bold;
}

blockquote { /* ex: syntaxe d'une commande */
  border-left: solid #ddd 10px;
  padding: 15px 20px;
  background-color: #f7f7f7;
}
blockquote > pre { /* ex: syntaxe d'une commande */
  font-size: 1.3em;
}

a {
  font-weight: bold;
}

mark {
  background-color: yellow;
}

/* non utilisés */
u {}
del {}
ins {}

/* -------------------------------------------------------------------------- */

.source { /* code source */
  font-size: 1.3em;
  background-color: #f7f7f7;
  padding: 10px;
  border: solid #000 1px;
  border-radius: 10px;
  color: #333;
  }

.console { /* entrées-sorties console */
  font-size: 1.3em;
  background-color: #666;
  padding: 10px;
  border: solid #000 1px;
  border-radius: 10px;
  color: #fff;
  }

.web { /* fenêtre du navigateur */
  background-color: #fff;
  padding: 20px;
  border: solid #000 1px;
  border-radius: 10px;
  }
div.web h1 {
  color: #333;
}
div.web h2 {
  color: #333;
}
div.web h3 {
  color: #333;
}
div.web h4 {
  color: #333;
}

.java { /* code Java */
  background-color: #fffff8;
  }

.xml { /* code XML */
  background-color: #fbfffb;
  }

/* -----------------------------------------------------------------------------
  Tableaux
----------------------------------------------------------------------------- */
table, th, td {
  border: 1px solid #666;
  border-collapse: collapse;
  margin: 20px;
}
th, td {
  padding: 5px 10px;
}
th {
  background-color: #666;
  color: #fff;
  text-align: left;
}

table.trans {
  border: 0;
}
table.trans tr {
  border: 0;
  padding-bottom: 10px;
  vertical-align: top;
}
table.trans th {
  border: 0;
}
table.trans td {
  border: 0;
}

/* -----------------------------------------------------------------------------
  Figures
----------------------------------------------------------------------------- */
figure {
  border: dashed #666 1px;
  padding: 20px;
  margin: 0px;
  text-align: center;
}

figCaption {
  font-size: smaller;
  font-style: italic;
  color: #666666;
}

/* -----------------------------------------------------------------------------
  Table des matières
----------------------------------------------------------------------------- */

#tdm {
  border: solid black 1px;
  padding: 10px;
}

#tdm > a {
  display: block;
  text-decoration: none;
}

.new {
  background-color: red;
  color: white;
  font-size: 80%;
  font-weight: bold;
  padding-left: 5px;
  padding-right: 5px;
}

  