@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Some of the following ideas are from Josh Comeau */
/* His blog : https://www.joshwcomeau.com/          */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

:root {
  --tpetit: 0.75rem;
  --petit: 0.875rem;
  --normal: 1rem;
  --grand: 1.125rem;
  --tgrand: 1.25rem;
  --ttgrand: 1.375rem;
  --tttgrand: 1.5rem;
}

body {
  font-family: 'Noto Sans', sans-serif;
  font-size: var(--normal);
  color: white;
  background-color: #444;
  line-height: 1.5;
  padding-top: 0.5rem;
}

#be {
  max-width: min(65ch, 94%);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1 {
  font-weight: bold;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 1em;
  padding-top: 1.5em;
}

h2 {
  margin-top: 0.75em;
  margin-bottom: 0.5em;
}

h3 {
  margin-top: 0.75em;
  margin-bottom: 0.375em;
}

ul {
  list-style: none;
}

ol ol {
  list-style-type: lower-alpha;
}

p {
  margin-top: 0;
  margin-bottom: 0.75em;
}

nav {
  border: 1px solid white;
  border-radius: 1rem;
  background-color: #333;
  box-shadow: 0.5em 0.5em 1em #262626;
  position: absolute;
  z-index: 10;
  top: 0px;
  right: 0px;
}

nav.off {
  width: 45px;
  height: 42px;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: -2em
}

nav ul {
  display: flex;
  flex-flow: column wrap;
  padding-left: 0;
}

nav.off ul {
  display: none;
}

nav li {
  padding: 0.5rem;
  padding-left: 1rem;
  border-bottom: 1px solid white;
}

nav li:last-child {
  border: none;
}

button {
  background-color: transparent;
  border: none;
  width: 32px;
  height: 32px;
}

.menu {
  background-image: url(images/fermer.png);
  position: absolute;
  top: 4px;
  right: 5px;
}

.menu.off {
  background-image: url(images/3lignes.png);
}

#nav2 {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 1rem;
  max-height: 2em;
  margin-bottom: 2em;
}

aside {
  font-size: var(--petit);
  margin-bottom: 1rem;
  margin-top: 1rem;
  padding: 0.75em;
  padding-left: 1.125em;
  border: 1px solid white;
  border-radius: 1rem;
  background-color: #333;
  box-shadow: 0.5em 0.5em 1em #262626;
}

#nav2 aside {
  flex: 1 1 0px;
  margin-top: -1rem;
  position: relative;
  z-index: 1;
}

.bouton2 {
  background-image: url(images/fermer2.png);
  position: absolute;
  top: 4px;
  right: 8px;
}

.bouton2.off {
  background-image: url(images/ouvrir.png);
}

#sommaire, #autrespages {
  z-index: 1;
  position: relative;
}

#sommaire.off, #autrespages.off {
  display: none;
}

aside header {
  font-size: larger;
  font-weight: bolder;
  padding-bottom: 0.25em;
}

aside ul, aside ol {
  padding-left: 1em;
}

ul.avecpoint {
  list-style: disc;
}

ul.avecpoint ul {
  list-style: circle;
}

a:link {
  color: #66c8ff;
  text-decoration: none;
}

a:visited {
  color: #33c9ff;
  text-decoration: none;
}

a:hover {
  color: #99c8ff;
  font-weight: bolder;
  text-decoration: none;
}

a:active {
  color: #99c8ff;
  text-decoration: none;
  outline: 2px ridge red;
}

*:focus {
  outline: 4px ridge red;
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

.courant {
  font-weight: bolder;
}

img.photo {
  margin: 1.5em;
  border: 1px solid white;
  border-radius: 1rem;
  box-shadow: 0.5em 0.5em 1em #262626;
}

img.droite {
  float: right;
  clear: right;
  margin-right: 0em;
  margin-top: 0em;
  margin-left: 1em;
  margin-bottom: 1em;
}

.droite, .droite p {
  text-align: right;
}

#listepages {
  padding-left: 0;
  font-size: var(--tgrand);
}

#listepages ul {
  padding-left: 1.5em;
  font-size: var(--normal);
}

#listepages li {
  padding-bottom: 0.25rem;
}

footer {
  font-size: smaller;
  width: 90%;
  margin-top: 1em;
  margin-left: auto;
  margin-right: auto;
}

#be footer {
  text-align: center;
}

.flexible {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  gap: 0.75rem;
  margin-bottom: 1em;
}

.flexible table {
  padding: 0.387em;
  border: 2px dotted grey;
  border-radius: 1em;
  box-shadow: 0.5em 0.5em 1em #2c2c2c;
}

td {
  vertical-align: bottom;
}

td.droite {
  vertical-align: top;
  padding-right: 0.25em;
}

caption {
  font-weight: bolder;
}

blockquote {
  font-style: italic;
  margin: 1em 2em;
}

blockquote span {
  display: block;
  text-align: right;
  margin-top: -0.5em;
  font-style: normal;
  font-size: smaller;
}

.retour {
  display: block;
  text-align: right;
  margin-left: auto;
}

/*********************************************/
/*    Thème clair                            */
/*********************************************/
@media (prefers-color-scheme: light) {
  body {
    background-color: #eaeaea;
    color: #444;
  }

  nav, nav.off, img.profil, aside {
    background-color: #eaeaea;
    color: #444;
    border: 3px solid black;
  }

  a:link {
    color: #0000ff;
  }

  a:visited {
    color: #8800ff;
  }

  a:hover {
    color: #0088ff;
  }

  a:active {
    color: #0088ff;
  }

  .menu {
    background-image: url(images/fermer_n.png);
    top: 3px;
    right: 4px;
  }

  .menu.off {
    background-image: url(images/3lignes_n.png);
  }

  .bouton2 {
    background-image: url(images/fermer2_n.png);
  }

  .bouton2.off {
    background-image: url(images/ouvrir_n.png);
  }
}

/*********************************************/
/* Fin de la version mobile et retour à      */
/* la mise en page originale. Ou presque...  */
/*********************************************/
@media (min-width: 50rem) {
  body {
    color: #DDD;
    background-color: #666;
    padding-top: 2.5rem;
  }

  #be {
    width: 80%;
    max-width: 76ch;
    background-color: #444;
    border: 3px solid white;
    border-radius: 1rem;
    box-shadow: 1em 1em 1em #333;
    padding-left: 1.5em;
    padding-right: 1.5em;
    padding-bottom: 1em;
  }

  nav, nav.off {
    width: 96%;
    height: auto;
    position: static;
    background-color: #555;
    border: 3px solid white;
    box-shadow: 1em 1em 1ex #333;
    margin-top: -2rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
  }

  nav ul, nav.off ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
  }

  nav li {
    padding: 0.5rem;
    border: none;
  }

  #nav2, #sommaire, #autrespages, #sommaire.off, #autrespages.off {
    display: block;
  }

  #nav2 {
    margin-top: -0.75rem;
  }

  aside {
    float: right;
    clear: right;
    width: 36%;
    margin-left: 1.5em;
    margin-right: -4em;
    margin-bottom: 3em;
    border: 3px solid white;
    background-color: #555;
    box-shadow: 1em 1em 1em #333;
  }

  img.profil {
    margin-right: -3.5em;
    border: 3px solid white;
    border-radius: 12px;
    background-color: #555;
    box-shadow: 1em 1em 1em #333;
  }

  .menu, .bouton2 {
    display: none;
  }

  h1 {
    padding-top: 0.5em;
  }

  p {
    text-indent: 1em;
    text-align: justify;
    margin-top: 0;
    margin-bottom: 0.5em;
  }

  /*********************************************/
  /*    Thème clair                            */
  /*********************************************/
  @media (prefers-color-scheme: light) {
    body {
      background-color: grey;
      color: #444;
    }

    #be, nav, nav.off, img.profil, aside {
      background-color: #eaeaea;
      color: #444;
      border: 3px solid black;
    }
  }
}
