/* Eléments principaux de la page */
body
{
    background: #e8f3f5;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: #181818;
}

#page
{
    width: 900px;
    margin: auto;
}

section h1, nav a
{
    font-family: 'Croissant One', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
}

/* Header */
header
{
    border-bottom:3px solid #4d4437;
    margin-bottom:20px;
    position: relative;
}

#titre_page
{
    display: inline-block;
}

header h1
{
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 2.5em;
    font-weight: normal;
    display: inline-block;
    margin-bottom: 0px;
}

header h2
{
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1.1em;
    margin-top: 0px;
    font-weight: normal;
    color: #181818;
}

/* Navigation - Desktop */
nav
{
    display: inline-block;
    width: 890px;
    text-align: right;
}

nav ul
{
    list-style-type: none;
}

nav li
{
    display: inline-block;
    margin-left: 15px;
}

nav a
{
    font-size: 1.3em;
    color: #181818;
    padding-bottom: 3px;
    text-decoration: none;
}

nav a:hover
{
    color: #760001;
    border-bottom: 3px solid #760001;
}

/* Corps */
article, aside
{
    display: inline-block;
    vertical-align: top;
    text-align: justify;
}

article
{
    width: 625px;
    margin-right: 15px;
}

article p
{
    font-size: 0.8em;
}

aside
{
    position: relative;
    width: 235px;
    background-color: #76b1cc;
    box-shadow: 0px 2px 5px #1c1a19;
    border-radius: 5px;
    padding: 10px;
    color: white;
    font-size: 0.9em;
    margin-top:20px;
}

#photo
{
    text-align: center;
}

#photo img
{
    border: 1px solid #181818;
    width: 220px;
    height: auto;
}

/* Footer */
footer
{
    padding-top: 25px;
    font-size:0.6em;
    color:#897962;
    text-align:center;
}

footer a, footer a:link, footer a:visited
{
    color:#897962;
    text-decoration:none;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet and smaller screens */
@media screen and (max-width: 950px) {
    #page {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

/* Mobile screens */
@media screen and (max-width: 768px) {
    /* Adjust navigation for mobile */
    nav {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }
    
    nav ul {
        padding: 0;
        margin: 0;
    }
    
    nav li {
        display: block;
        margin: 0 0 10px 0;
    }
    
    nav a {
        display: block;
        padding: 10px;
        font-size: 1.1em;
        background-color: #e9e4dc;
        border-radius: 3px;
    }
    
    nav a:hover {
        background-color: #d8d0c5;
        border-bottom: none;
    }
    
    /* Page content adjustments */
    header h1 {
        font-size: 2em;
    }
    
    header h2 {
        font-size: 1em;
    }
    
    article, aside {
        display: block;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    #photo img {
        width: 80px;
        height: auto;
    }
}

/* Smaller mobile devices */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    
    header h2 {
        font-size: 0.9em;
    }
}

/* Correctifs pour les vieilles versions d'Internet Explorer */

/* Pour activer un positionnement type inline-block sur les vieilles versions d'IE */
.old_ie #titre_page, .old_ie #logo, .old_ie header h1, .old_ie nav, .old_ie nav li, .old_ie article, .old_ie aside
{
    display: inline;
}

/* Quelques ajustements pour les vieilles versions d'IE pour la maquette CV*/
.old_ie section h1, .ie8 section h1
{
    font-size: 1.1em;
}