﻿/* ===================== */
/*      VARIABLES        */
/* ===================== */
:root {
    --color-primary: #550000;
    --color-secondary: #760001;
    --color-background: #efe8cf;
    --color-white: #ffffff;

    --font-title: "Playfair Display", serif;
    --font-subtitle: "Lora", serif;
    --font-body: "Merriweather", serif;

    --font-small: 0.9em;
    --font-medium: 1em;
    --font-large: 1.3em;
    --font-xlarge: 2.5em;
    --gap: 15px;
}

/* ===================== */
/*      GLOBAL STYLES    */
/* ===================== */
body {
    background: var(--color-background);
    font-family: var(--font-body);
    color: var(--color-primary);
    margin: 0;
    padding: 0;
}

#page {
    width: 900px;
    margin: auto;
}

h1, h2, nav a {
    font-weight: 400;
}

/* ===================== */
/*       HEADER          */
/* ===================== */
header {
    border-bottom: 3px solid var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

#titre_page {
    display: inline-block;
}

header h1 {
    font-family: var(--font-title);
    font-size: var(--font-xlarge);
    font-weight: normal;
    display: inline-block;
    margin-bottom: 0;
}

header h2 {
    font-family: var(--font-subtitle);
    font-size: 1.1em;
    margin-top: 0;
    font-weight: normal;
}

/* ===================== */
/*     NAVIGATION        */
/* ===================== */
nav {
    text-align: right;
    margin-top: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
    margin-left: var(--gap);
}

nav a {
    font-size: var(--font-large);
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

nav a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* ===================== */
/*      MAIN CONTENT     */
/* ===================== */
article {
    width: 625px;
    text-align: justify;
    float: left;
}

article p {
    font-size: var(--font-small);
    line-height: 1.5;
    margin-bottom: 1em;
    font-family: var(--font-body);
}

aside {
    width: 235px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px #1c1a19;
    font-size: 0.9em;
    margin-top: 0;
    float: right;
}

/* Photo dans aside */
#photo {
    text-align: center;
}

#photo img {
    border: 1px solid #181818;
    max-width: 100%;
    height: auto;
}

/* Clear floats */
main::after {
    content: "";
    display: table;
    clear: both;
}

/* ===================== */
/*       FOOTER          */
/* ===================== */
footer {
    padding-top: 25px;
    font-size: 0.6em;
    color: #550000;
    text-align: center;
}

footer a {
    color: #550000;
    text-decoration: none;
}

/* ===================== */
/*     MEDIA QUERIES     */
/* ===================== */
@media (max-width: 950px) {
    #page {
        width: 100%;
        padding: 0 10px;
    }

    article, aside {
        float: none;
        width: 100%;
        margin: 0;
    }

    nav {
        text-align: center;
    }
}




