/*
 * nileane.fr CSS Style
 * https://github.com/nileane/nileane.fr
 * Niléane Dorffer
 * MIT License
 */


/*
 * SUMMARY:
 *
 * 0. Imports
 * 1. Body and General declarations
 * 2. Seperators: <hr>
 * 3. Headlines: <hn>
 * 4. Header: body > nav
 * 5. Site Cover: body > header
 * 7. Pages: body > section
 * 8. Index of posts
 * 9. Post Content
 * 10. Animations
 */



/*
 * 0. Imports
 * ----------
 */

@import url(fonts/octicons/octicons.css);
@import url(fonts/social/social.css);
@import url(fonts/Montserrat/Montserrat.css);
@import url(fonts/Montserrat/MontserratAlternates.css);
@import url(syntax.css);

/*
 * 1. Body and General declarations
 * --------------------------------
 */

body {
    font: 10pt "Montserrat Alternates", "Montserrat", Cantarell, Roboto, sans-serif;
    background: #f0f0f0;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    color: #515151;
    -webkit-transition: background-color .2s;
    transition: background-color .2s;
}
body.dark {
    background-color: #111;
}
p,
section .post {
    line-height: 1.6;
}
section .post small {
    line-height: 1.2;
    opacity: .8;
}
ul {
    list-style: outside square;
}
a {
    color: #FF5255;
    text-decoration: none;
    -webkit-transition: all .3s;
    transition: all .3s;
}
*:active,*:focus,*:hover {
    outline: 0;
}
@media screen and (max-width:500px) {
    body {
        font-size: 9pt;
    }
}



/*
 * 2. Seperators: <hr>
 * -------------------
 */

hr {
    border-top: 1px solid #dedede;
    height: 4px;
    width: 30%;
    max-width: 150px;
    margin: 2em auto;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid #dedede;
}
aside hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.dark hr {
    opacity: 0.2;
}
hr.large {
    width: 100%;
    max-width: 100%;
    margin: 2em 0 1.5em;
}
hr.title {
    padding: 1.2em 0px;
    border-top: 0;
}
hr.title:first-child {
    padding-top: 0;
    margin-top: 0;
}



/*
 * 3. Headlines: <hn>
 * ------------------
 */

h1, h2, h3, h4 {
    /* font-family: "Voltaire", "Roboto Condensed", "Fira Sans", "Cantarell", sans-serif; */
}
h1, h2, h3 {
    font-weight: 400;
    line-height: 1;
    color: rgba(0, 0, 0, .7);
}
.dark h1,
.dark h2,
.dark h3 {
    color: #fff;
}
h1 {
    font-size: 2.8em;
    text-align: center;
}
div.post h1 {
    padding: 1em 0;
    margin: 0;
}
div.post h1:first-child {
    padding: 0 0 .5em;
}
.post h2 {
    font-size: 2em;
    margin: 2em 0;
    text-align: center;
}
.post h3 {
    font-size: 1.8em;
    margin: 1.5em 0 1em;
}
h3 em {
    font-style: normal;
    opacity: .3;
}
hr.title + h1 {
    margin: -1.8em 0 0 !important;
    padding: 0 !important;
    font-size: 1.2em;
    color: #D4D4D4;
    text-shadow:
        3px 0 #fff,
        -2px 0 #fff,
        7px 0 #fff,
        -4px 0 #fff;
    text-transform: uppercase;
    letter-spacing: -.05em;
}
.dark hr.title + h1 {
    text-shadow:
        3px 0 #191919,
        -2px 0 #191919,
        7px 0 #191919,
        -4px 0 #191919;
}

/*
 * 4. Header: body > nav
 * ------------------------
 */

body > nav {
    /* font-family: "Voltaire", "Roboto Condensed", "Fira Sans", sans-serif; */
    max-width: 800px;
    height: 62px;
    line-height: 62px;
    padding: 0 10px;
    margin: 0 auto;
    z-index: 2;
    -webkit-animation: slidin-bottom 2s 1;
    animation: slidin-bottom 2s 1;
    text-transform: uppercase;
    font-size: 120%;
    box-sizing: border-box;
}
body.home > nav:not(.home-nav) {
    position: absolute;
    left: 0;
    right: 0;
    top: 130px;
    -webkit-animation: fadin 2s 1;
    animation: fadin 4s 1;
}
@media screen and (max-width:500px) {
    body.home > nav:not(.home-nav) {
        top: 80px;
    }
}
body > nav > div { /* inner container */
    padding: 0;
    box-sizing: border-box;
    display: inline-block;
    width: 50%;
    float: left;
    word-spacing: normal;
    vertical-align: top;
}
body > nav .left { /* left section */
    color: #fff;
}
body > nav .right { /* right section */
    color: #aaa;
    font-weight: 500;
    font-size: 1em;
    text-align: right;
    max-width: 750px;
}
body > nav a {
    display: inline-block;
    padding: 0 .2em;
    text-transform: lowercase;
    cursor: pointer;
    color: rgba(255, 255, 255, .6);
}
body > nav:not(.home-nav) a {
    text-shadow: 0 0 5px #000;
}
body > nav a:hover,
body > nav a.active {
    color: #fff;
}
body > nav a.lang-swt {
    position: relative;
    font-weight: bold;
}
body > nav a.lang-swt.active:before {
    content: " ";
    width: 5px;
    height: 5px;
    position: absolute;
    top: 70%;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    transition: all .2s;
    display: block;
    border-radius: 50%;
    background-color: #FF5255;
}
body > nav .lights {
    -webkit-transform: rotate(180deg) scale(.8);
        -ms-transform: rotate(180deg) scale(.8);
            transform: rotate(180deg) scale(.8);
    -webkit-transform-origin: center;
            transform-origin: center;
    vertical-align: middle;
    line-height: .5;
    display: inline-block;
    color: rgba(255, 255, 255, .8);
}
body.dark > nav .lights {
    color: #000;
    text-shadow: 0 0 2px #fff,
       0 0 8px #fff,
       0 0 50px rgba(255, 255, 255, .9);
}
body > nav #logo {
    height: 50px;
    top: 0;
    position: absolute;
    padding: 5px 0;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
}



/*
 * 5. Site Cover: body > header
 * ---------------------------
 */

body > header {
    color: #fff;
    box-sizing: border-box;
    margin: 0;
    padding: 5rem 0 6rem;
    text-align: center;
    position: relative;
    -webkit-transition: all .3s;
    transition: all .3s;
}
body.home > header {
    padding: 2rem 0 5rem;
    margin-top: 62px;
}
@media screen and (max-width:500px) {
    body > header {
        padding: 3rem 0 6rem !important;
    }
    body.home > header {
        margin-top: 20px;
    }
}
body > header:before,
body > header:after {
    content: " ";
    position: absolute;
    bottom: -62px;
    top: -62px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: -1;
}
body > header:after {
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .3);
    background: url(../images/layout/photos/deviancealafenetre.jpg) top center / cover transparent;
    opacity: .5;
}
body.dark > header:after {
    opacity: .3;
}
body > header:before {
    background-color: #111;
}
body > header h1 {
    color: #fff;
    margin: 0;
    font-size: 2.3em;
    vertical-align: middle;
}
body.home > aside h1 {
    font-size: 2.7em;
}
body > header .book-title {
    max-width: 800px;
    padding: 0 7.14%;
    -webkit-animation: fadin 1.2s 1;
    animation: fadin 1.2s 1;
    margin: 0 auto;
    box-sizing: border-box;
    -webkit-transition: all .3s;
    transition: all .3s;
}
body > header .book-title small {
    font-size: 1.1em;
    display: block;
    margin: .2em;
    text-align: center;
    color: rgba(255, 255, 255, .6);
}
body > header .book-title small a {
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: top;
    max-width: 80%;
    overflow: hidden;
}
body > header .book-title img {
    height: 90px;
}

@media screen and (max-width:500px) {
    body > header .book-title img {
        height: 70px;
    }
}
@media screen and (min-width:1001px) {
    body.home > aside .book-title {
        padding: .5em;
    }
    body > header h1 {
        font-size: 2.6em;
    }
}
@media screen and (min-width:1201px) {
    body.home > aside .book-title {
        font-size: 120%;
    }
}
#prevnext {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    max-width: 800px;
    margin: 0 auto;
    left: 0;
    right: 0;
    line-height: 32px;
    padding: 0;
    border-radius: 4px 4px 0 0;
    box-sizing: border-box;
    box-shadow: 0 3px rgba(0, 0, 0, 0.5);
    display: flex;
    display:  -ms-flexbox;
    display: -webkit-flex;
    overflow: hidden;
}
body.home #prevnext,
body.post #prevnext {
    animation: slidin-top 2s 1;
    -webkit-animation: slidin-top 2s 1;
}
#prevnext a {
    padding: 0 2rem;
    flex: 1 1 100px;
    -webkit-flex: 1 1 100px;
    -ms-flex: 1 1 100px;
    display: inline-block;
    color: rgba(255, 255, 255, .7);
    position: relative;
}
@media screen and (max-width:500px) {
    #prevnext a {
        padding: .5rem;
    }
}
#prevnext a:hover {
    background-color: rgba(0, 0, 0, .75);
    color: #fff;
}
#prevnext a:active {
    outline: 0;
}
#prevnext a.active,
body.post #prevnext a:nth-child(2) {
    color: #fff;
}
#prevnext a:before {
    content: " ";
    width: 6px;
    display: inline-block;
    height: 6px;
    vertical-align: middle;
    transition: all .2s;
    border-radius: 50%;
    background-color: #FF5255;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 150%);
    -webkit-transform: translate(-50%, 150%);
        -ms-transform: translate(-50%, 150%);
}
#prevnext a.active:before,
#prevnext a:hover:before,
body.post #prevnext a:nth-child(2):before {
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
}
#prevnext a.none {
    pointer-events: none;
}



/*
 * 6. Home navigation
 * ------------------
 */

.home-nav {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    height: auto;
    font-size: 100%;
    line-height: 32px;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0;
    border-radius: 0 0 4px 4px;
    box-sizing: border-box;
    box-shadow: 0 -3px rgba(255, 255, 255, 0.3),
        0 1px 4px rgba(0, 0, 0, .04);
    display:  -ms-flexbox;
    display: -webkit-flex;
    display:         flex;
    flex-flow: row;
    -webkit-animation: slidin-bottom 2s 1;
    animation: slidin-bottom 2s 1;
    -webkit-transition: all .2s;
    transition: all .2s;
    z-index: 1;
}
body.dark .home-nav {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 -3px rgba(0, 0, 0, 0.3);
}
.home-nav a {
    text-transform: none;
    padding: 0 1rem;
    -ms-flex: 1 1 80px;
    -webkit-flex: 1 1 80px;
    flex: 1 1 80px;
    display: inline-block;
    color: #333;
}
@media screen and (max-width:500px) {
    .home-nav a {
        padding: .2rem 0;
        font-size: 120%;
    }
    .home-nav a .title {
        display: none;
    }
}
body.dark .home-nav a {
    color: rgba(255, 255, 255, 0.6);
}
.home-nav a:hover {
    color: #ff5252;
    background-color: rgba(0, 0, 0, .02);
}
body.dark .home-nav a:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, .2);
}


/*
 * 7. Pages: body > section
 * ------------------------
 */

body > section {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 4px;
    margin: 0 auto 50px;
    font-size: 120%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    -webkit-transition: all .2s;
    transition: all .2s;
}
body > section.faded {
    background: none;
    box-shadow: none;
}
body.home > section.home-post {
    margin-bottom: -10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    background-color: #f8f8f8;
    z-index: 3;
}
body.dark > section {
    color: #888;
    background-color: #191919;
}
body.dark > section.faded {
    background: none;
    box-shadow: none;
}
body.dark > section.home-post {
    background-color: #1f1f1f;
}
body.home > section,
body.about > section:first-of-type {
    margin-bottom: 0;
    z-index: 2;
}
body > section > * {
    max-width: 1000px;
    margin: auto;
    padding: 3rem 9%;
}


/*
 * 8. Index of posts
 * -----------------
 */

ul.index {
    list-style: none;
    padding: 0;
    margin: 0;
}
.index li {
    padding: 20px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
body.home section.archive-post {
    margin-bottom: 4rem;
}
.archive-post .index {
    padding: 20px 0;
}
.archive-post .index > div {
    flex: 1 1 40%;
}
.dark .index li {
    border-color: rgba(255, 255, 255, 0.05);
}
.index li:last-child {
    border-bottom: none;
}
html[lang=fr] .index li.en-post a > *:not(.lang-indicator) {
    opacity: .3;
}
html[lang=en] .index li.fr-post a > *:not(.lang-indicator) {
    opacity: .3;
}
.lang-indicator {
    position: absolute;
    top: 30px;
    left: -45px;
    text-align: right;
    display: block;
    width: 30px;
}
.index h2 {
    margin: 0;
    color: rgba(0, 0, 0, 0.55);
    transition: all .2s;
}
.home-post .index h2 {
    font-size: 130%;
}
.dark .index h2 {
    color: rgba(197, 197, 197, 0.9);
}
.index h2.year {
  text-align: center;
  font-size: 110%;
  font-weight: bold;
  margin-top: 50px;
}
.index li.year:first-child {
  display: none;
}
.index li.year:last-child {
  display: none;
}
.index a:hover h2 {
    color: #000;
}
.dark .index a:hover h2 {
    color: #fff;
}
.index time {
}
.dark .index time {
    color: rgba(255, 255, 255, 0.4);
}
section.home-post > a,
section.archive-post > a {
    padding-top: 0;
    padding-bottom: 0;
    max-width: calc(800px - 11.14%);
}
section.archive-post:hover,
section.home-post:hover {
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(0, 0, 0, 0.14) !important;
}
.dark section.archive-post:hover,
.dark section.home-post:hover {
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}
section.home-post > a {
    padding-top: 24px;
    padding-bottom: 20px;
    display: block;
}
section.archive-post {
    margin-bottom: 20px;
}
section.archive-post > a {
    display: block;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
section.home-post time {
    color: #c6c6c6;
}
.dark section.home-post time {
    color: rgba(255, 255, 255, 0.3);
}

.archive-post a .index .excerpt {
    color: rgba(0, 0, 0, 0.55);
    position: relative;
    font-size: 85%;
}
body.dark .archive-post a .index .excerpt {
    color: rgba(197, 197, 197, 0.9);
}

@media screen and (min-width:500px) {
    .archive-post .index {
        display: flex;
        flex-flow: row wrap;
    }
    .archive-post a .index .excerpt {
        padding-left: 20px;
    }

}





/*
 * 9. Post Content
 * ---------------
 */

body.dark .post {
    color: #a1a1a1;
}
.post {
    color: #4D4D4D;
    font-family: "Montserrat", Cantarell, Roboto, sans-serif;
}
body.post .post {
    text-align: justify;
}
body.home .post {
    padding-top: 2.2rem;
    padding-bottom: 2.1rem;
}
img,
iframe {
    max-width:100%;
}
figure {
    margin: 0;
    padding: 0;
}
.post time {
    color: #ccc;
    font-size: 90%;
    display: block;
}
.dark .post time {
    color: #555;
}
.post figure.classic_headimg {
    height: 0;
    overflow: hidden;
    border-radius: 3px;
    margin: .5rem 0;
}
.post p a {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
.dark .post p a {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.post a:hover {
    border-color: #111;
    text-decoration: none;
}
.dark .post a:hover {
    border-color: #fff;
}
.post a img {
    border: 0;
}
.post img {
    border-radius: 3px;
}
.align,
.align.center {
    display: block;
    margin: 0 auto;
}
.align.center {
    margin: 0 auto;
}
.align.inline {
    display: inline-block;
    margin: 0 -5px 0 0;
}

.avatar {
    width: 90px;
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
    border-radius: 50% !important;
}
@media screen and (min-width:260px) {
    .post .avatar {
        float: right;
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
    .avatar {
        -webkit-transform: translate(10%, 5%);
        -ms-transform: translate(10%, 5%);
        transform: translate(10%, 5%);
    }
}
@media screen and (min-width:500px) {
    .align.right {
        float: right;
        margin: 10px 0 10px 30px;
    }
    .align.left {
        float: left;
        margin: 10px 30px 10px 0;
    }
    .post .avatar {
        margin-left: 2rem;
        margin-bottom: 3rem !important;
    }
    .avatar {
        width: 120px;
    }
}

em em {
    font-style: normal;
}
pre, code {
    font-family: "Fira Mono", monospace;
}
pre {
    background-color: #242424;
    color: #FFF;
    border-radius: 3px;
    padding: 1em;
    overflow: auto;
}
code {
    padding: 0 .7em;
    font-size: 90%;
    display: inline-block;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: rgb(34, 34, 34);
    color: #fff;
}
pre code {
   background-color: #242424;
   color: #fff;
   padding: 0;
}
pre pre {
    padding: 0 .5em;
    margin: 0;
}
.lineno {
    opacity: 0.2;
    pointer-events: none;
}
blockquote {
    font-weight: 300;
    font-size: 115%;
    margin: 1.8em 1em 1.8em 0;
    border-left: 2px solid #FF5255;
    padding-left: 1em;
    text-align: left;
}
.thumbnail-ct {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
        -ms-flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
            flex-flow: row wrap;
}
.thumbnail {
    display: inline-block;
    width: 48%;
        -ms-flex: 1 1 48%;
    -webkit-flex: 1 1 48%;
            flex: 1 1 48%;
    height: 145px;
    background-color: #444;
    margin: .2rem;
    padding: 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    -webkit-transition: all .3s;
            transition: all .3s;
    cursor: pointer;
}
.thumbnail img {
    position: absolute;
    top: 0; left: 0;
    border-radius: 0;
    opacity: .7;
    min-height: 100%;
    -webkit-transition: all .3s;
            transition: all .3s;
}
.thumbnail:not(.align):hover img {
    opacity: .3;
}
.thumbnail p {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.4),
        0 2px 1px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding: .5em;
    -webkit-transform: translateY(50%);
            -ms-transform: translateY(50%);
            transform: translateY(50%);
    -webkit-transition: all .3s;
            transition: all .3s;
}
.thumbnail p small {
    opacity: 0;
}
.thumbnail:hover p {
    bottom: 50%;
    opacity: 1;
}
.thumbnail:hover p small {
    opacity: 1;
}
.thumbnail strong {
    display: block;
    line-height: 1;
}
.thumbnail.align {
    width: 245px;
}
.thumbnail.align img {
    opacity: .9;
}
@media screen and (max-width: 699px) {
    .thumbnail.align {
        display: none
    }
}

/*
 * 10. Animations
 * --------------
 */

@keyframes slidin-left {
    from {
        transform: translate(50%, 0);
    }
    to {
        transform: translate(0, 0);
    }
}
@keyframes slidin-right {
    from {
        transform: translate(-50%, 0);
    }
    to {
        transform: translate(0, 0);
    }
}
@keyframes slidin-top {
    0% {
        transform: translate(0, 100%);
    }
    50% {
        transform: translate(0, 100%);
    }
    100% {
        transform: translate(0, 0);
    }
}
@keyframes slidin-bottom {
    0% {
        transform: translate(0, -100%);
    }
    50% {
        transform: translate(0, -100%);
    }
    100% {
        transform: translate(0, 0);
    }
}
@keyframes fadin {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
