/*! 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;
}

/*
 * 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.
 */

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

::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 {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
* {
    box-sizing: border-box;
}
img {
    vertical-align: middle;
}
body {
    font-family: 'Lora', serif;
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    overflow-x: hidden;
}
a, a:hover, a:visited, a:active {
    color: #000;
    text-decoration: none;
}

header .logo {
    height:26px
}
h2 img {
    height: 34px;
    margin-left: 40px;
    margin-top: 40px;
}
header, #primary {
    max-width: 960px;
    margin: auto;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

.baseline {
    display: inline-block;
    height: 80px;
    max-width: 700px;
    vertical-align: middle;
}
.logo_cnrs {
    display: inline-block;
    width: 90px;
    margin:30px 30px 30px 1%; 
}
.logo_saga {
    display: inline;
    width: 260px;
    margin-right: 10px;
}
h1 {
    display: inline;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 21px;
}

article .liste_dossier h3, article .liste_dossier h2 {
    font-family: "Roboto Slab";
    font-weight: 700;
    margin-left: 10px;
    margin-right: 10px;
    line-height: 22px;
    margin-bottom: 0;
    font-size: 1.17em;
    letter-spacing: -0.3px;
}
article .liste_dossier h3 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.3px;
}
article .liste_dossier p {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
}
article .liste_dossier p {
    font-size: 14px;
}
article .liste_dossier p.lg {
    margin-top: 10px;
    margin-bottom: 8px;
}

.nouveau_dossier {

}
.nouveau_dossier h2 {
    font-size: 30px;
    line-height: 32px;
    margin-bottom: 0;
    margin-top: 5px;
}
.nouveau_dossier h3 {
    font-weight: 400;
}
.nouveau_dossier li {
    width: 98%;
    margin: 0 1%;
    padding: 0px;
    overflow: hidden;
}
.nouveau_dossier .ombre {
    position: absolute;
    width: 100vw;
    left: 0;
    height: 10px;
    margin-top: 0px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.15);
}
.nouveau_dossier img {
    max-width: 55%;
    display: inline-block;
    margin-right: 2%;
    vertical-align: top;
}
.detail_dossier {
    display: inline-block;
    max-width: 42%;
}

ul.liste_dossier  {
    text-align: center;

}
.liste_dossier li {
    border:1px solid #bbb;
    width: calc( 23% - 4px );
    margin: 1%;
    padding: 0px;
    overflow: hidden;
    display: inline-block;
    text-align: left;
    vertical-align: top;
}
.liste_dossier li {
    width: calc( 31.4% - 4px );
    -min-height: 406px;
}
.liste_dossier .contenu_dossier {
    min-height: 210px;
}
.liste_dossier .contenu_vintage {
    min-height: 230px;
}
.liste_dossier img {
    width: 100%;
    max-height: 120px;
    max-height: 163px;
}
.prtitre {
    margin-top: 0;
}
.clearboth {
    clear: both;
}
time {
    font-size: 12px;
    color: #AAA;
    float: left;
    margin: 10px;
    font-weight: bold;
}
.nouveau_dossier time {
    margin-left: 0;
}

.flag {
    width: 26px!important;
    opacity: .5;
    margin-right: 5px;
    -filter: invert(1);
    background: #fff;
    margin-bottom: 3px;
}


/* ==========================================================================
   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;
    }
}


@media only screen and (max-width: 641px) {
    header, #primary {
        max-width: initial;
        width: 100%;
        margin: 0;
    }
    .logo_cnrs {
        width: 50px;
        margin: 10px 10px;
    }
    .baseline {
        display: inline;
    }
    h1 {
        display: inline-block;
        font-size: 16px;
        width: 96%;
        margin-left: 4%;
        letter-spacing: -0.2px;
    }
    .logo_saga {
        display: inline-block;
    }
    h2 img {
        height: 34px;
        margin-left: 15px;
        margin-top: 20px;
    }
    .nouveau_dossier img {
        max-width: 100%;
        margin-right: 0%;
    }
    .detail_dossier {
        max-width: 100%;
    }    
    .nouveau_dossier li {
        width: 100%;
        margin: 0 0%;
    }
    .detail_dossier {
        max-width: 100%;
        width: 92%;
        margin-left: 4%;
        margin-top: 12px;
    }
    .nouveau_dossier h2 {
        font-size: 26px;
    }
    .nouveau_dossier h2 {
        font-size: 26px;
    }
    .detail_dossier p {
        font-size: 15px;
    }
    .liste_dossier li {
        width: calc( 46.4% - 4px );
    }
}

@media only screen and (max-width: 461px) {
    .liste_dossier li {
        width: calc( 92.4% - 4px );
        margin-bottom: 20px;
    }
    .liste_dossier img {
        max-height: 190px;
    }
    .liste_dossier.liste_collection img {
        max-height: initial;
    }
    .liste_dossier .contenu_dossier, .liste_dossier .contenu_vintage {
        min-height: initial;
    }
}
