/*=================================*/
/* Pico kro Theme
/* By: Timothée Crozat
/* https://www.crachecode.net
/*=================================*/

/* Reset Styles
/*---------------------------------------------*/
*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img {
    display: block;
    max-width: 100%;
}

/* Input Styles
/*---------------------------------------------*/
input,
textarea,
select {
    padding: 5px;
    font: 400 1em Verdana, Sans-serif;
    color: #666;
    background: #fff;
    border: 1px solid #999999;
    margin: 0 0 1em 0;
}

input:focus,
textarea:focus,
select:focus {
    color: #000;
    background: #fff;
    border: 1px solid #666666;
}

/* Main Styles
/*---------------------------------------------*/
:root {
    /* taille typo générale */
    font-size: min(15px,calc(10px + .5vw));
    --primary-color: #b14949;
    --secondary-color: #5eade2;
}
@font-face {
    font-family: ubuntu;
    src: url('/themes/red/fonts/ubuntu-v15-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: ubuntu;
    src: url('/themes/red/fonts/ubuntu-v15-latin-500.woff2') format('woff2');
    font-weight: bold;
}
@font-face {
    font-family: ubuntu;
    src: url('/themes/red/fonts/ubuntu-v15-latin-500italic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: ubuntu;
    src: url('/themes/red/fonts/ubuntu-v15-latin-italic.woff2') format('woff2');
    font-style: italic;
}

@font-face {
    font-family: ubuntu-mono;
    src: url('/themes/red/fonts/ubuntu-mono-v10-latin-regular.woff2') format('woff2');
}

*::selection {
    color: white;
    background: var(--primary-color);
}

body {
    font-family: ubuntu, 'Open Sans', Helvetica, Arial, Helvetica, sans-serif;
    color: #ddd;
    background: #333;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 7em;
    line-height: 1.8em;
}

a, a:visited {
    color: var(--primary-color);
    text-decoration: none;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

a:hover, a:active {
    color: var(--secondary-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #e5e5e5;
    line-height: 1em;
    margin-bottom: .7em;
    margin-top: 2em;
    font-weight: normal;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

p, table, ol, ul, pre, blockquote, dl {
    margin-bottom: 1em;
}

ol, ul {
    padding-left: 30px;
}

b, strong {
    font-weight: bold;
}

i, em {
    font-style: italic;
}

u {
    text-decoration: underline;
}

abbr, acronym {
    cursor: help;
    border-bottom: 0.1em dotted;
}

td, td img {
    vertical-align: top;
}

td, th {
    border: solid 1px #999;
    padding: 0.25em 0.5em;
}

th {
    font-weight: bold;
    text-align: center;
    background: #eee;
}

sub {
    vertical-align: sub;
    font-size: smaller;
}

sup {
    vertical-align: super;
    font-size: smaller;
}

code {
    margin: 0 0.1em;
    padding: 0.1em 0.2em;
    background: rgba(0,0,0,.4);
    font-family: 'ubuntu-mono', 'Courier New', 'Courier', monospace;
    line-height: 2;
    color: #ddd;
}

pre {
    padding: 0 1em;
    background: rgba(0,0,0,.4);
}
pre code {
    display: block;
    margin: 0;
    padding: 1.1111em 0;
    border: 0 none;
    background: transparent;
    overflow-x: auto;
    line-height: 1.4;
}

dd {
    margin-left: 2em;
}

/* Structure Styles
/*---------------------------------------------*/
body {
    display: grid;
    grid-template-areas: 
        "head       head"
        "content    sidebar";
    grid-template-columns: 7fr 3fr;
}
#content {
    grid-area: content;
}
#sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 2rem;
    align-self: start;
    min-height: 100vh;
    max-height: 100vh;
    overflow: auto;
}
.inner {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

#header {
    grid-area: head;
    background: var(--primary-color);
    padding: 60px 0;
    margin-bottom: 80px;
    color: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,.5);
}
#header > .inner {
    display: flex;
    justify-content: space-between;
}
#header #logo a {
    font-weight: bold;
    font-size: 1.8rem;
    white-space: nowrap;
}
#header a {
    color: #fff;
}
#header a:hover,
#header .active a {
    color: var(--secondary-color);
}
#header nav {
    list-style: none;
    margin-top: .1rem;
}
#header nav a {
    font-weight: bold;
    margin-left: 1rem;
}
#header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 2rem;
}

/* Media Queries
/*---------------------------------------------*/

/* Small Devices, Tablets */
@media only screen and (max-width : 999px) {
    .inner {
        width: 85%;
    }
    .inner img {
        width:100%;
    }
    #header {
        margin-bottom: 40px;
        padding: 30px 0;
    }
    #header h1 {
    }
    /*#header nav {
        width: 100%;
    }
    #header nav ul {
        padding: 0;
    }
    #header nav li {
        display: block;
        width: 50%;
        text-align: center;
    }
    #header nav li a {
        display: block;
        margin: 0;
        padding: 10px 0;
    }
    #footer {
        margin-top: 40px;
        padding: 30px 0;
    }*/
}
