/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    padding: 0;
    margin: 0;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0;
    text-align: center;
    background-color: #a6d20c;
    color: #505050;

    -webkit-box-shadow: 0px -1px 18px -10px rgba(80,80,80,0.75);
    box-shadow: 0px -1px 18px -10px rgba(80,80,80,0.75);
}

.browserupgrade a {
    border-bottom: dotted;
    border-bottom-width: 2px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 20px;
    line-height: 32px;
    font-family: europa, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    color: #505050;
    background: url('../img/background/bg-wood-4k.jpg');
}

a, a:hover, a:focus, a:visited, a:active {
    outline: 0;
    text-decoration: none;
    color: #505050;
}
p, a {
    font-family: europa, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    line-height: 32px;
    font-size: 20px;
    -moz-osx-font-smoothing: antialiased;
    -ms-font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

ul, ul li {
    list-style: none;
}

ul li {
    display: inline-block;
    margin-left: 5px;
}

.border {
    height: 25px;
    background: url('../img/header-border.png') bottom repeat-x;
}

.border.flipped {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

footer .border {
    position: relative;
    bottom: -1px;
}

header .border {
    position: relative;
    top: -1px;
}

header,footer {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

header .logo {
    position: absolute;
    top: 54px;
    left: calc(50% - 138.5px);
}

footer .logo {
    position: absolute;
    bottom: 44px;
    left: calc(50% - 138.5px);
}

footer .bottom-menu {
    /*display: -webkit-box;*/
    /*display: -moz-box;*/
    /*display: -ms-flexbox;*/
    /*display: -webkit-flex;*/
    /*display: flex;*/
    /*flex-direction: column-reverse;*/
    /*-webkit-flex-direction: column-reverse;*/
    /*flex-wrap: wrap;*/
    /*-webkit-flex-wrap: wrap;*/
    /*justify-content: center;*/
    /*padding: 0 100px;*/

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
     -webkit-box-orient: vertical;
     -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    -ms-flex-pack: center;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 20px;
}

footer .bottom-address {
    text-align: center;
    margin: 50px auto;
    color: #ffffff;
}

footer .bottom-address h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

footer .bottom-address .address-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

footer .bottom-address .address-list .address-list-item.mobile-margin-top:before {
    content: ' ';
    display: block;
    margin-top: 20px;
}

footer .bottom-address .address-list .address-list-item.mobile-break:after {
    content: ' ';
    display: block;
}

footer .bottom-address .address-list .address-list-item:last-child:after,
footer .bottom-address .address-list .address-list-item:nth-child(2n):after {
    content: '';
    margin: 0;
}

footer .bottom-address .address-list .address-list-item:after {
    content: '·';
    margin: 0 5px 0 10px;
}

footer .bottom-address .address-list .address-list-item:last-child:after,
footer .bottom-address .address-list .address-list-item.no-point:after {
    content: '';
    margin: 0;
}

footer .bottom-menu .element {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

section.body {
    min-height: calc(100vh - 500px);
    margin-bottom: 50px;
}

.language-menu {
    margin-top: 50px;
    color: #ffffff;
    display: none;
}

.language-menu .language-item .language {
    height: 35px;
    text-transform: capitalize;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.language-menu .language-item .fr:before {
    content: " "; /* 1 */
    display: block;
    background-image: url('../img/icons/flags/fr.png');
    border-radius: 100%;
    width: 35px;
    height: 35px;
    background-size: 35px;
    background-repeat: no-repeat;
    margin-right: 10px;
}
.container {
    max-width: 1550px;
    width: auto !important;
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.height90 {
    height: 90px;
}
.height115 {
    height: 115px;
}

.white {
    background-color: #ffffff;
}

.green {
    background-color: #97BF0D;
}

.fg-white {
    color: #ffffff;
}

.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.body {
    text-align: center;
}

.body h1 {
    font-size: 55px;
    font-weight: normal;
    margin: 100px 0;
    color: #017a5e;
    font-family: ff-market-web;
}

.body .pdfs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.body .pdfs .pdf {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 20px;
}

.body .pdfs .pdf:last-child {
    margin: 0;
}

.body .pdfs .pdf a {
    color: #017a5e;
}

.body .pdfs .pdf img {
    border: 3px solid #ffffff;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: 60vw;
    height: auto;
}

.body .pdfs .pdf figcaption {
    margin-top: 10px;
    color: #017a5e;
}

@media only screen and (min-width: 375px) and (orientation : portrait) {
    footer .bottom-address .address-list .address-list-item.phone-break:after {
        content: ' ';
        display: block;
    }
    /*footer .bottom-address .address-list .address-list-item:after {*/
        /*content: '';*/
        /*margin: 0;*/
    /*}*/
}

@media only screen and (min-width: 768px) {
    .container {
        width: 760px;
    }
    .language-menu {
        display: block;
    }
    .body .pdfs {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .body .pdfs .pdf {
        margin-right: 40px;
    }

    .body .pdfs .pdf img {
        width: 250px;
    }

    footer .bottom-address .address-list .address-list-item.mobile-break:after {
        content: '·';
        margin: 0 5px 0 10px;
        display: initial;
    }
}

@media only screen and (min-width: 992px) {
    .container {
        width: 980px;
    }
}

@media only screen and (min-width: 1200px) {
    .container {
        width: 1180px;
    }
    footer .bottom-menu {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    footer .bottom-menu .element {
        -webkit-box-pack: normal;
        -ms-flex-pack: normal;
        justify-content: normal;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    footer .bottom-menu .element a {
        border-right: 1px ridge #505050;
        padding: 0 20px;
    }

    footer .bottom-menu .element a:last-child {
        border-right: none;
        padding-right: 0;
    }

    footer .bottom-address .address-list .address-list-item.mobile-margin-top:before {
        content: '';
        display: initial;
    }
    footer .bottom-address .address-list .address-list-item:nth-child(2n):after {
        content: '·';
        margin: 0 5px 0 10px;
    }
    footer .bottom-address .address-list .address-list-item:last-child:after {
        content: '';
        margin: 0;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
