/* ---------- BOX-SIZING ---------- */

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* ---------- HTML5 TAGS ---------- */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
video {
    display: inline-block;
}

/* ---------- GENERAL STYLES ---------- */

html {
    font-size: 100%;
}

body {
    font-family: arial, helvetica, sans-serif;
    line-height: 1.5;
    margin: 0;
}

h1 {
    font-size: 2em;
    margin: 20px 0;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1em;
}

h5 {
    font-size: 0.8em;
}

h6,
small {
    font-size: 0.7em;
}

ol,
ul {
    padding-left: 0;
}

dd,
li {
    margin-left: 20px;
}

mark {
    background-color: yellow;
    padding: 0 5px;
}

code,
pre,
samp,
kbd {
    font-family: monospace, serif;
    font-size: 1em;
    padding: 5px 10px;
}

pre {
    background-color: #efefef;
    border: 1px solid #ddd;
    overflow: auto;
}

sub,
sup {
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -5px;
}

sub {
    bottom: -5px;
}

abbr {
    border-bottom: 1px solid;
}

blockquote {
    font-style: italic;
    margin-left: 30px;
}

hr {
    height: 1px;
    background-color: black;
    border: 0;
}

/* ---------- IMAGE ---------- */

img {
    border: none;
    height: auto;
    max-width: 100%;
}

figure {
    margin: 0;
}

/* ---------- FORM ---------- */

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0 0 15px 0;
    outline: none;
    padding: 5px;
}

textarea {
    overflow: auto;
}

select {
    padding: 4px;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
    padding: 6px 9px 5.75px 9px;
    width: auto;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

input[type="file"] {
    border: none;
    padding: 0;
    width: auto;
}

/* ---------- TABLE ---------- */

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 15px 0;
    width: 100%;
}

caption,
th,
td {
    padding: 5px;
}

/* ---------- GENERAL STYLES ---------- */

body {
    background-color: #f0f1f1;
    color: #333;
    font-family: "Georgia", "Times", "DejaVu serif", "Times New Roman", serif;
    font-size: 1.2em;
    padding: 0 1em;
}

h1,
h2,
h3 {
    font-weight: normal;
}

a {
    color: #777;
    text-decoration: underline;
}

a:hover,
a:focus {
    text-decoration: none;
}

ul li {
    list-style-type: square;
}

/* ---------- HEADER ---------- */

header {
    padding: 3em 0 2em;
    text-align: center;
}

body > header > h1,
body > header > .h1-home {
    font-size: 2.3em;
    line-height: 1;
    margin: 0;
}

header h1 a,
header .h1-home a {
    color: #0f3;
    text-decoration: none;
}

header h1 a:hover,
header .h1-home a:hover {
    text-decoration: underline;
}

header h2 {
    font-size: 1em;
    margin: 0;
}

/* ---------- SECTION ---------- */
#container {
    max-width: 100%;
    width: 35em;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px;
}

.directory {
    margin: 0 0 50px 0;
    text-align: center;
}

.directory:first-letter {
    text-transform: uppercase;
}

.erreur #container {
    text-align: center;
}

/* ---------- ARTICLE / PAGE ---------- */

.full-width {
    width: 100%;
}

article header h1,
article header h2 {
    color: #333;
    font-size: 1.5em;
    line-height: 1.1;
}

article header h1 a,
article header h2 a {
    color: #333;
    text-decoration: none;
}

article header h1 a:hover,
article header h1 a:focus,
article header h2 a:hover,
article header h2 a:focus {
    border-bottom: 1px solid #333;
}

article header {
    background-color: transparent;
    color: inherit;
    padding: 0;
    text-align: center;
}

article header p {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 0;
}

article section {
    background-color: inherit;
    padding: 0;
}

article img {
    margin: 0 5px;
    box-shadow: 0 0 10px #ccc;
}

article footer {
    background-color: inherit;
    color: #777;
    font-size: 0.85em;
    margin-bottom: 6.5em;
    padding: 0;
    text-align: center;
}

article footer a {
    text-decoration: underline;
}

article footer a:hover,
article footer a:focus {
    text-decoration: none;
}

/* ---------- PAGINATION ---------- */

#pagination {
    text-align: center;
}

#pagination span,
#pagination a {
    display: inline-block;
    margin: 0;
    padding: 5px;
    color: #333;
}

#pagination span:first-letter,
#pagination a:first-letter {
    text-transform: uppercase;
}

/* ---------- SIDEBAR ---------- */

aside {
    max-width: 100%;
    width: 50em;
    margin: 5em auto;
    font-size: 0.85em;
}

aside > div {
    width: 30%;
    float: left;
    margin: 0;
}

aside div:nth-child(2) {
    margin: 0 5%;
}

aside h3 {
    font-size: 1em;
    color: #777;
    margin: 0 0 15px 0;
}

aside a {
    color: #777;
}

aside ul {
    margin: 0 0 50px 0;
}

aside li:first-letter {
    text-transform: uppercase;
}

/* ---------- TAG ---------- */

li.tag {
    display: inline-block;
    margin: 0;
    padding: 0 0.5em 0 0;
}

.tag a {
    float: left;
}

.tag-size-1 {
    font-size: 1em;
}
.tag-size-2 {
    font-size: 1.1em;
}
.tag-size-3 {
    font-size: 1.2em;
}
.tag-size-4 {
    font-size: 1.3em;
}
.tag-size-5 {
    font-size: 1.4em;
}
.tag-size-6 {
    font-size: 1.5em;
}
.tag-size-7 {
    font-size: 1.6em;
}
.tag-size-8 {
    font-size: 1.7em;
}
.tag-size-9 {
    font-size: 1.8em;
}
.tag-size-10 {
    font-size: 1.9em;
}
.tag-size-max {
    font-size: 2em;
}

/* ---------- FOOTER ---------- */

footer {
    clear: both;
    padding: 20px;
    text-align: center;
    color: #777;
}

footer p {
    margin: 0;
}

footer a {
    color: #777;
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
}

/* ---------- FORM ---------- */

#form h2 {
    margin: 0;
}

label {
    display: block;
}

input,
select,
textarea {
    border: 1px solid #bbb;
    color: #555;
}

button,
input[type="submit"],
input[type="reset"] {
    background-color: #0f3;
    border: 1px solid #0f3;
    color: #eee;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #444;
    border: 1px solid #444;
}

.capcha-letter,
.capcha-word {
    font-weight: bold;
}

/* ---------- TABLE ---------- */
table,
th,
td {
    border: 1px solid #999;
}

/* ---------- RESPONSIVE DESIGN ---------- */

@media screen and (max-width: 800px) {
    #container {
        padding: 0;
    }

    header {
        padding: 20px 0;
    }

    aside > div {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}
