/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html { height: 100%; }

body {
    font-size: 1em;
    line-height: 1.4;
    height: 100%;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

.header-container {
    
}

header {
    display: flow;
    flex-flow: row nowrap;
    justify-content: flex-start;
    border-bottom: 3px solid #ffc900;
    padding-top: 1em;
    min-height: 3em;
}

.main-container {
    height: 100%;
    
}

.main {
    height: 100%;
    width: 95ex;
    margin: 0 auto;
    padding: 10px;
    max-width: calc(100% - 20px); /* for small screens, limit to width less padding on both edges */
}

.footer-container,
.main aside {
    border-top: 3px solid #ffc900;
}

.header-container,
.footer-container,
.main aside {
/*    background: #804000; */ /* brown */
/*    background: rgb(75, 98, 48);*/ /* green */
    background: rgb(39, 63, 59);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-right: 1.5ex;
    padding-left: 1.5ex;
}


.title {
    color: #ffc900;
    align: left;
    margin-top: 0;
/*    min-height: 1.5em;*/
}

.footer-container {
    display: none; /* Disable for now */
    position: fixed;
    bottom: 0;
    width: 100%;
/*    box-shadow: 0 5px 10px 10px #aaa;*/
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

nav {
    font-family: "Helvetica", sans-serif;
    font-size: 3em;
    align-self: flex-end;
    padding-bottom: 5pt;
    text-align: right;
    display: flex;
    flex-flow: row nowrap;
}

nav ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    /* disable hyphenation */
    -webkit-hyphens: none;
       -moz-hyphens: none;
            hyphens: none;
    
}

nav ul li {
    margin: 0 3px;
}

nav a {
    display: inline;
    float: none;
    /* display: block;
    margin-bottom: 5px;
    padding: 5px 0;

    text-align: center; */
    text-decoration: none;
    /* font-weight: bold; */

    color: white;
/*    font-size: 0.9em;*/
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

/* Translation bar */
/* Translation support */
.flag {
    display: inline;
    padding-left: 5px;
    padding-right: 5px;
}

.flag-fr {
    content: url("../images/fr.png");
}

.flag-en {
    content: url("../images/en.png");
}


/*.transbar {
    padding: 0;
    padding-top: 1em;
    margin: 0;
    float:left;
    list-style-type:none;
}
*/
/*.transbar > li > a {
    padding: 8px 14px;
    border: none; /* 1px solid #e5e5e5; */
/*    border-top-style: none;
    border-bottom-style: none;
    margin: 0 0 -1px;
    content: "!!";
}
*/

.transbar {
    padding-left: 5px;
    margin: 0;
    float: right;
    list-style-type: none;
    line-height: 12px;
    padding-top: 1.6em;
}

.transbar li {
    display: inline;
    padding-left: 10px;
}
.transbar li:first-child {
    /*padding-top: 1em;*/
}

.transbar li.trans-en > a:before {
    content: url("../images/en.png");
}
.transbar li.trans-en.active > a:before {
    content: url("../images/en-bw.png");
}

.transbar li.trans-fr > a:before {
    content: url("../images/fr.png");
}
.transbar li.trans-fr.active > a:before {
    content: url("../images/fr-bw.png");
}

.pull-right {
  float: right;
}

.pull-left {
  float: left;
}

#index-fr .main,
#index-en .main {
    display: flex;
}

#index img,
#index-fr img,
#index-en img {
    border-radius: 10px;
}

#index-fr article,
#index-en article {
    width: 100%;
    
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    
    margin: auto;
    padding-bottom: 50%;
}

@media screen and (max-width: 800px) {
    #nav-toggle { justify-self: flex-end; }

    #nav-toggle { cursor: pointer; padding: 10px 35px 16px 0px; }
    #nav-toggle.active { 
        padding-right: 0px; 
        z-index: 999;
    }
    #nav-toggle .toggle-button {
        position: absolute;
        top: 0.66em;
        right: 0.25ex;
        z-index: 999;
    }
    #nav-toggle span.toggle-button, #nav-toggle span.toggle-button:before, #nav-toggle span.toggle-button:after {
      cursor: pointer;
      border-radius: 1px;
      height: 5px;
      width: 35px;
      background: #ffc900;
      position: absolute;
      display: block;
      content: '';
    }
    #nav-toggle span.toggle-button:before {
      top: -10px; 
    }
    #nav-toggle span.toggle-button:after {
      bottom: -10px;
    }

    #nav-toggle span.toggle-button, #nav-toggle span.toggle-button:before, #nav-toggle span.toggle-button:after {
      transition: all 200ms ease-in-out;
    }
    #nav-toggle.active span.toggle-button {
      background-color: transparent;
    }
    #nav-toggle.active span.toggle-button:before, #nav-toggle.active span.toggle-button:after {
      top: 0;
    }
    #nav-toggle.active span.toggle-button:before {
      transform: rotate(45deg);
    }
    #nav-toggle.active span.toggle-button:after {
      transform: rotate(-45deg);
    }
    
    #nav-toggle ul {
        display: none;
        visibility: hidden;
        opacity: 0;
    }
    #nav-toggle.active ul {
        visibility: visible;
        opacity: 1;
        display: block;
        position: absolute;
        top: 1.1em;
        right: 0.25ex;
/*        width: 2ex;*/
/*        background-color: rgba(255, 255, 255, 0.75);*/
/*        background-color: rgba(90, 100, 90, 0.75);*/
        background-color: rgba(39, 63, 59, 0.75);
        border-radius: 4px;
        padding: 0.25ex;
        transition: opacity 200ms ease-in-out;
    }
    #nav-toggle.active li {
        line-height: 1.1em;
        display: block;
    }
    #nav-toggle.active a:before {
        content: attr(title);
        font-size: 0.6em;
        padding-right: 0.5ex;
/*        color: rgb(120, 120, 120);*/
        color: #ffc900;
        vertical-align: 15%;
    }
    
}

body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
/*    font-size: 12pt;*/ /* Use the browser defaults */
    line-height: 1.625em;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Futura-Medium", Helvetica, "Helvetica Neue", sans-serif;
    margin-top: 1.4em;
    margin-bottom: 0.2em;
    line-height: 1.2em;
    clear: both;

    /* Turn on ligatures */
    -moz-font-feature-settings: "liga=1, dlig=1";
    -ms-font-feature-settings: "liga", "dlig";
    -webkit-font-feature-settings: "liga", "dlig";
    -o-font-feature-settings: "liga", "dlig";
    font-feature-settings: "liga", "dlig";
}

a {
    color: rgb(151, 116, 78); /* light brown */
}

a:visited {
    color: rgb(53, 38, 30); /* dark brown */
}


code, pre {
  font-family: "Hasklig", "Source Code Pro", Monaco, Menlo, Consolas, monospace;
  font-size: 0.9em;
  line-height: 1.3em;
  width: 120ex;
}

.codehilite > pre,
.sourceCode {
    /* Prevent selecting code (for copy & paste) */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

article {
    padding-bottom: 1.3em; /* adjust to accommodate footer */
}

/* Enable hyphenation in articles, but not necessarily everywhere */
article p {
    /* enable hyphenation */
    -webkit-hyphens: auto;
       -moz-hyphens: auto;
            hyphens: auto;
          
    /* Cross-browser hyphenation support.
       Source: http://www.newnet-soft.com/blog/csstypography
    */
    /*
            -ms-word-break: break-all;
                word-break: break-all;

                // Non standard for webkit
                word-break: break-word;

           -webkit-hyphens: auto;
              -moz-hyphens: auto;
                   hyphens: auto;
                 
  -webkit-hyphenate-before: 2;
   -webkit-hyphenate-after: 3;
           hyphenate-lines: 3;
    */
}

.hide {
  display: none;
}

.show {
  display: block;
}

ul.listing ul li {
    display: none;
}
ul.labs li,
ul.tp li,
ul.currentYear ul li {
    display: inherit !important;
}

li.archived {
    display: none;
}

dl, ul, ol {
    margin: 0.25em;
}

li p {
    margin-bottom: 0.5em;
}

.arobase:before {
  content: "@";
}

.point:before {
  content: ".";
}

p.people:before {
    content: "Intervenants: ";
}

.people {
    font-size: 18px;
}

/* Class pages */
dl {
	display: inline-block;
/*    width: 520px;*/
	margin: 1em 0;
	padding: 0;
/*    border-bottom: 1pt solid #ddd;*/
}

dt {
	clear: left;
	float: left;
    vertical-align: top;
	width: 200px;
	margin: 0;
	padding: 5px;
    padding-top: 1em;
/*    border-top: 1pt solid #ddd;*/
	font-weight: bold;
}

dd {
    vertical-align: top;
	float: left;
	width: 300px;
	margin: 0;
	padding: 5px;
    padding-top: 1em;
/*    border-top: 1pt solid #ddd;*/
}

dd ul {
    padding: 0;
    margin: 0;
}
dd ul li {
    list-style-type: none;
}

dd p {
    margin-top: 0;
    margin-bottom: 0;
}

td, th {
    padding-right: 5ex;
    
}

tr.even {
    background-color: #f6f6f6;
}


/*** Bibliographie / Publications ***/
/* Bibliography styles */
.bibtitle {
    font-style: italic;
    font-weight: bold;
    color: #000;
}

.bibauthors {
    display: inline;
}

.bibbooktitle,.bibjournal,.bibbookseries {
    font-style: italic;
}
.bibbookseries {
    color: #000;
}

.bibentry {
/*    font-size: 0.9em;*/
    line-height: 1.3em;
    margin-bottom: 1em;
    padding-left: 1ex;
    color: #444;
    border-left: 0.5px solid #ddd;
}

.bibentries-year {
    font-size: larger;
    margin-bottom: 0.25em;
    color: #666;
}

.bibauthor-Eagan-James {
    font-weight: bold;
}

.bibaward {
  font-weight: bold;
  color: #000;
}

.bibentryarticle {
  border-left: 0.5px solid #fdd;
}

.bibentryinproceedings {
  border-left: 0.5px solid #ddf;
}

.bibfooter {
  font-size: 9px;
  color: #777;
}

/*** Micropub ***/

article img {
    max-width: 100%;
    height: auto;
}

.micropub {
    height: calc(100% - 87pt);
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-items: center;
    
}

.micropub article {
    max-width: 68ex;
    margin: auto;
    padding-bottom: 6em;
    padding-left: 2ex;
    padding-right: 2ex;
}

.micropub.list article {
    padding-bottom: 1em;
    border: 1px solid rgb(240, 240, 240);
    border-radius: 10pt;
    margin-top: 2em;
    background-color: rgb(253, 253, 255);
}

.micropub article img {
    display: block;
    max-width: 100%;
    height: auto;
    align: center;
    padding-top: .5em;
}

.micropub .metadata {
    font-size: 0.83em;
    padding-top: 2.5em;
    color: hsl(0, 0%, 45%);
}

.micropub .metadata a {
    color: hsl(0, 0%, 65%);
    text-decoration: none;
}

.micropub .metadata a:visited {
    color: hsl(0, 0%, 65%);}

.micropub .metadata a:hover {
    text-decoration: underline;
}

.micropub .author:before {
    content: "by ";
}

.micropub .author {
    display: inline;
}

.micropub .author .microblog:before {
    content: "<";
}

.micropub .author .microblog:after {
    content: ">";
}

/*.micropub .publishedDate:before {
    content: " on ";
}
*/
.micropub .publishedDate {
    display: inline;
}

.micropub .publishedDate .time:before {
    content: " at ";
}

.invisible {
    visibility: hidden;
}


/****** Callouts ******/
.callout {
    display: flex;
    justify-content: space-around;
    flex: initial;
    flex-flow: column wrap;
    align-items: center;
    padding: 10px;
}

.callout img {
    max-width: 150px;
    height: auto;
    margin: 3px;
    box-shadow: 0px 1px 5px #ddd;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}


/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

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

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