:root {
    --color: black;
    --serif: "Junicode-Condensed";
    --sans: "U001";
    --body-font: var(--sans), sans-serif;
    --header-font: var(--serif);
    --mono: Monospace;
    --font-lettrine: "Young Serif";
    --font-size: 1.4em;
    --line-height: 1.2em;
    --line-height-h1: 1.1em;
    --font-size-small: 14px;
    --font-size-h1: 29px;
    --highlight-color: #f2f2ff;
    --bleu-bille: #112B92;
    --vert-karel: #00B788;
    --orange-karel: #ff5900;
    --rose-karel: #FCBFC4;
    --rose-pale: #ffe1e4;
    --red-question: #ff3f00;
}


/* width */
::-webkit-scrollbar {
    width: 2px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #d6d6d6;;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #000;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    color: rgb(0, 71, 171);

}

/* BLOCKS -------------------------------------  */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga", "dlig", "clig", "kern";
    -webkit-font-feature-settings: "liga", "dlig", "clig", "kern";
    -moz-font-feature-settings: "liga", "dlig", "clig", "kern";
    -o-font-feature-settings: "liga", "dlig", "clig", "kern";
}
body {
    color: var(--color);
    font-family: var(--body-font);
    font-size: var(--font-size);
    line-height: var(--line-height);
    padding: calc(var(--line-height) / 2);
    color: black;
}
/* Insertion du pad dans la page */
iframe#ether {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
/* Style des niveaux de titre */
h1, h2, h3, h4, h5, h6 {
    font-size: var(--font-size);
    font-weight: bold;
    font-family: var(--header-font);
    margin: 0;
    margin-top: calc(2 * var(--line-height));
    margin-bottom: var(--line-height);
    padding-top: var(--line-height);
    clear: both;
}
h1, header h2 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    margin: var(--line-height) 0;
    font-family: var(--header-font);
    font-weight: normal;
    font-weight: bold;
    margin-bottom: 0;
    line-height: inherit;
    text-align: center;
    display: inline;
    text-transform: inherit;
}
#content h1 {
    font-size: calc(var(--font-size) * 3.5);
    line-height: 1em;
    margin: 5em 0;
}
h2 {
    text-transform: inherit;
	font-size: 3.2em;
	line-height: 0.8em;
	margin: 0;
	padding: 0;
}
h3 {
    text-transform: uppercase;
    font-family: var(--sans);
    font-size: 0.8em;
    line-height: 1.3em;
    font-weight: 900;
    margin: 0;
    margin-bottom: 12px;
    margin-top: 24px;
}
h4 {
    text-decoration: underline;
}
img {
    max-width: 200px;
    float: left;
    margin: calc(var(--line-height) / 2);
    display: block;
}
img.inline {
    display: inline;
    vertical-align: top;
    margin: 0;
    height: 1em;
}
img.large {
    width: 90%;
    max-width: none;
    margin: auto;
}
.thumbnail {
    max-width: 30%;
}
blockquote {
    font-family: var(--sans);
    font-size: var(--font-size);
    margin: var(--line-height) calc(2 * var(--line-height));
}
p {
    margin-bottom: var(--line-height);
    clear: both;
}
hr {
    border: 0;
    height: var(--line-height);
    margin: 0;
}
hr + hr {
    display: block;
    border-bottom: 1px solid black;
}
code, pre {
    font-family: var(--mono);
    white-space: pre-wrap;
}
pre {
    outline: 1px solid var(--color);
    padding: var(--line-height);
    width: 75%;
}
/* Style des légendes d'images */
figcaption {
    font-family:  var(--sans);
    font-size: var(--font-size-small);
    line-height: 1.3em;
    text-align: center;
    margin-bottom: var(--line-height);
}
/* Style des frames de vidéo ou autres objets hors image */
figure iframe {
    max-width: 70%;
    margin: var(--line-height) auto;
    display: block;
}
audio,
video {
    display: block;
    clear: both;
    margin: auto;
    margin-bottom: calc(var(--line-height) * 2);
}
/* Style des notes de bas de pages */
.footnote {
    font-size: var(--font-size-small);
    line-height: 1.3em;
    margin-bottom: calc(2 * var(--line-height));
}
.footnote p {
    margin-bottom: 0;
}
/* INLINES ------------------------------------- */
/* Style des liens hypertextes */
a,
a:visited {
    text-decoration: underline;
    color: var(--color);
}
/* Style du texte en roll-over sur les liens */
a:hover {
    text-decoration: none;
    color: var(--orange-karel);
}
/* Style quand on arrive à une ancre */
.target {
    background-color: var(--color);
}
/* Style de l'italique */
em {
    font-style: italic;
}
/* Style du bold */
strong {
    font-weight: bold;
}
/* Style des exposants */
sup {
    font-size: 0.65em;
    line-height: 0;
    vertical-align: 0.5em;
}
sup a {
    font-family:  var(--sans);
}
/* Style du texte souligné */
u {
    text-decoration: none;
    border-bottom: 2px solid yellow;
}
dt {
    font-style: italic;
    display: inline;
    font-family: var(--sans);
}
dt:after {
    content: ": ";
}
dd {
    display: inline;
    margin:0;
}
dd:after {
    content:'\0A';
    white-space:pre;
}
dd + dd {
    margin-left: calc(var(--line-height) * 2);
}
.metadata dt,
.metadata dd {
    float: left;
}
.metadata dt {
    clear: both;
    margin-right: 4px;
}
.metadata dd +dd {
    margin-left: 0;
}
.metadata dd:after {
    content: ", ";
}
.metadata dd:last-child:after {
    content: "";
}
.metadata dt.meta-participants {
    display: none;
}
.comment:before {
    background-color: yellow !important;
    border-radius: 1em;
    display: inline;
    height: 1em;
    margin: 0 0.5em;
    padding-left: 7px;
    padding-right: 9px;
    text-align: center;
    width: 1em;
    content: "!";
    font-family:  var(--sans);
}
/* FORMS -------------------------- */
form {
    margin-bottom: none;
}
form label, form textarea, form input {
    font-family: inherit;
    font-size: inherit;
}
form input, form textarea {
  background: none;
  border-style: solid;
  border-color: black;
  font-size: inherit;
  display: block;
  margin-top: calc(var(--line-height) / 4);
}
/* Style de l'élément activé */
form input:focus, form textarea:focus {
    background-color: white;
}
form input[type=text], form input[type=password] {
    padding: calc(var(--line-height) / 4);
    position: relative;
    top: -1px;
    width: 75%;
}
form input[type=submit] {
  cursor: pointer;
  padding: calc(var(--line-height) / 4);
  border-style: none;
  border-color: none;
  text-decoration: none;
  color: var(--color);
}
form input[type=submit]:hover {
    background-color: white;
    text-decoration: none;
    color: black;
}
/* GENERIC CLASSES -------------------------------- */
/* Style des boutons */
.button {
  text-decoration: none;
    margin: 0 calc(var(--line-height) / 2);
}
/* Style des boutons en roll over */
.button:hover {
    background-color: none;
    outline: none;
}
/* Classe pour transformer des éléments blocs en éléments en ligne */
.inline {
    display: inline;
}
/* PAGE STRUCTURE --------------------------------- */
/* Style des containers */
.wrap {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    grid-column: main;
}
.wrap:nth-of-type(2) {
    overflow: auto;
}

.write-mode .wrap:nth-of-type(2),
.write-public-mode .wrap:nth-of-type(2) {
    overflow: hidden;
}

.wrap:first-of-type {
    border-bottom: 2px solid black;
}

.wrap:before, .wrap:after {
    content: " ";
    /* 1 */
     display: table;
    /* 2 */
}
.wrap:after {
    clear: both;
}
/* Style des sous-parties de containers */
.left-side, .middle, .right-side {
    position: relative;
}
.left-side,
.right-side  {
    flex: 0 0 auto;
    margin-top: 1em;
}
.middle {
    flex: 1;
    margin: 0;
    padding: 0;
}

.write-public-mode .middle {
   display: flex;
   flex-direction: column;
}

.write-mode #content,
.write-public-mode #content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.write-mode #content iframe#ether,
.write-public-mode #content {
    flex: 1 0;
    margin: 0;
    padding: 0;
    width: initial;
    height: initial;
}

/* Pour les inclusions de pads dans les compilations */
#content .middle {
    width: 100%;
}

.r-mode #content {
    margin: 1em;
    max-width: 32em;
}
/* NAV ------------------------------------------ */
/* Navigation */
nav {
    font-family: var(--sans);
    line-height: var(--line-height);
/*    position: fixed;
    top: 0; */
    padding: calc(var(--line-height) / 4);
}
nav#nav-left {
	border-right: 2px solid;
    grid-column: left;
    grid-row: 1 / span 2;
}
nav#nav-right {
    text-align: right;
    border-left: 2px solid black;
    grid-column: right;
    grid-row: 1 / span 2;
}
nav#nav-right .button,  nav#nav-left .button {
    display: flex;
    }
nav div#staff-menu {
    display: inline;
    color: darkgray;
}
nav h1 {
    display: inline;
    font-size: 25px;
}
nav span:before {
    content: " — ";
}
nav div#sort-by {
    display: inline;
    color: darkgray;
}
/* Texte précédent/suivant */
div#previous a,
div#next a {
    position: fixed;
    top: 6.5em;
    font-family:  sans-serif;
    font-size: var(--font-size-small);
    line-height: 1.2em;
    padding: var(--line-height);
    z-index: 6666;
}
div#previous a span,
div#next a span {
    display: none;
}
div#previous a:hover span,
div#next a:hover span {
    display: block;
}
div#next {
    text-align: right;
    padding-right: 0;
}
div#next a {
        right: 0;
}
/* MAIN CONTENT ---------------------------------- */
header {
    font-size:  calc(2.5 * var(--font-size));
    line-height: 1.2em;
    margin: 0;
    margin-left: 0.25em;
    padding: 0;
    display: inline-block
}
header p {
    font-family: inherit;
    margin-bottom: 0;
    line-height: inherit;
    text-align: center;
    display: inline;
}
header p.authors:after {
    content: ", ";
}
li {
    margin-left: calc(1.5 * var(--line-height));
}
#content ul > li:before {
    content: "– ";
    margin-left: -1em;
}
ul {
    margin-bottom: 1em;
}
ol {
    list-style-type: decimal;
    margin-left: calc(1.5 * var(--line-height));
    margin-bottom: 1em;
}
.footnote ol li {
    margin-bottom: 0em;
}
dl.meta {
    font-family: var(--sans);
    color: gray;
    font-size: var(--font-size-small);
   line-height: 1.25em;
}
div.metadata {
   font-family: var(--sans);
   font-size: var(--font-size-small);
   line-height: 1.25em;
   position: absolute;
   top: 0px;
   left: -15em;
   width: 15em;
}
div#go-up {
    clear: both;
    margin-top: calc(2 * var(--line-height));
}
div#go-up a {
    border-bottom: none;
}
div#go-up a:hover {
    color: var(--color);
}
/* AUTHORSHIP ----------------------------- */
.authors {
    display: inline;
}
/* Hides Etherpad background colours */
#content span {
    background-color: inherit !important;
}
/* ------ PRINT/SCREEN ------ */
@media screen {
    .print-only {
    display: none;
    }
}
/* User Interface */
.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999999999;
    background: rgba(0,0,0,0.6667);
    text-align: center;
}
.popup-wrapper.hidden {
    display: none;
}
.popup-wrapper:before {
        position: relative;
        height: 100%;
        content: "";
        display: inline-block;
        vertical-align: middle;
    }
.popup {
        display: inline-block;
        vertical-align: middle;
        background-color: white;
        padding: 30px;
}

.manage_list li {
    padding: 0.2em 0;
}

.manage_list li:hover {
    color: var(--orange-karel);
}

.manage_list li .actions {
	display: inline-block;
	right: 0;
	position: absolute;
	text-align: left;
}

.manage_list li .actions .button {
    border: 1px solid;
    padding: 3px 15px;
    letter-spacing: 1px;
    font-size: 60%;
    text-transform: uppercase;
    font-family: var(--sans);
}

.manage_list li .actions .button--delete:hover {
    color: crimson;
}

#pads_list  {
    margin: 1em;
}

.pad-list--path, .pad-list--actions {
    background: white;
    position: sticky;
    padding: .5em .2em;
}

.pad-list--path {
    top: 0;
    border-bottom: 2px solid black;
}

.pad-list--actions {
    bottom : 0;
}

.pagination {
    text-align: center;
    padding-top: .5em;
}

.pagination .step-links.previous {
    float: left;
}

.pagination .step-links.next {
    float: right;
}

body {
    display: grid;
    grid-template-columns: [left] minmax(250px, 15vw) [main] auto [right] minmax(250px, 15vw);
    grid-template-rows: 0 1fr; /* Quick fix to remove emtpy white space in middle frame */
    padding: 0;
    margin: 0;
    min-height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
}
