/*! HTML5 Boilerplate v5.3.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
 *
 * These selection rule sets have to be separate.
 * 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
   ========================================================================== */

header {
    position: fixed;
    background-color: white;
    top: 0;
    width: 100%;
    display: inline-flex;
    justify-content: space-around;
    box-shadow: 0 0 15px grey;
    background-color: #F4F0F1;
}

body {
    font-family: "Georgia";
}

section
{
  width: 80%;
  margin: auto;
}

.menubarre {
    width: 8%;
    height: 8%;
    margin-top: 20px;
}

.logo {
    width: 50%;
    height: 50%;
}

.caddie {
    width: 8%;
    height: 8%;
    margin-top: 20px;
}

.contenu_principal {
    width: 90%;
}

h1 {
    margin-top: 1em;
    font-family: serif;
    color: grey;
    margin-left: 4%;
}


/* Réglage des tailles */

.tailles {
    margin-left: 4%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.tailles a, .menu_fixe a {
    margin: .25em;
    text-decoration: none;
    border-radius: 7px;
    padding: 2%;
    border: 4px solid #DEDFD8;
    color: white;
    background-color: #DEDFD8;
}

.tailles a:hover, .menu_fixe a:hover {
    background-color: black;
    border: 4px solid black;
}


/* Réglage des photos de chaussettes */

.chaussettes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 3%;
}

article h3, article p {
    font-weight: normal;
    text-align: center;
    color: grey;
    font-style: italic;
    font-family: serif;
}

article h3 {
    box-shadow: 0px -10px 10px -10px lightgrey inset;
}

article {
    margin-left: 2%;
}

.prix {
    width: 20%;
    border: 1px solid #DEDFD8;
    border-radius: 5px;
    background-color: #DEDFD8;
    padding-right: 1px;
    margin-left: 70%;
}

figure {
    width: 100%;
    margin-left: 5%;
}

img {
    width: 100%;
}

.pub {
    margin: auto;
}


/* -------------- FOOTER ------------- */


/* alignement des logos*/

.ligne1, .ligne2 {
    display: flex;
    justify-content: space-around;
}

footer h3, footer p, form {
    font-weight: normal;
    font-style: italic;
    color: grey;
    font-family: serif;
    font-size: 1em;
    text-align: center;
}

footer figure {
    width: 100px;
    height: 100px;
}


/* -------------------- PAGE BLOG ---------------- */

.blog {
    margin-left: 5%;
    position: relative;
    margin-top: 20%;
}

.article1 figure {
    width: 70%;
    border: 1px solid black;
    margin-left: 0;
}

.article1 img {
    margin: 12px;
    width: 95%;
    height: 95%;
}

.texte {
    font-family: serif;
    width: 90%;
    text-align: left;
    font-style: normal;
    color: black;
}

.commentaire {
    text-align: left;
    color: lightgrey;
    font-size: .75em;
}

h2 {
    font-size: 1.7rem;
    font-family: serif;
    color: #B35860;
    margin-left: 0%;
}

#monpetitpanier {
    color: #B35860;
    font-size: 1.7rem;
}
aside {
    display: none;
}


/* VERSION TABLETTE */

.tablette, .icon {
    display: none;
}

@media (min-width: 800px) {
    .mobile {
        display: none;
    }
    .tablette {
        position: relative;
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
    }
    /* logo + menu + rose */
    .haut {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    /* Logo Archiduchesse */
    .haut figure {
        width: 30%;
        height: 30%;
    }
    .tablette img {
        width: 100%;
    }
    /*Encadrement rose a droite du header*/
    .rose {
        background-color: #FCE9E7;
        text-align: center;
        width: 30%;
    }
    /* Menu format tablette */
    .haut ul {
        display: inline-flex;
        list-style-type: none;
        padding-left: 0;
        width: 40%;
    }
    .haut li {
        border: 5px solid white;
        border-radius: 5px;
        margin-right: 1.5em;
        padding: .25em;
        background-color: white;
    }
    li a {
        text-decoration: none;
        color: grey;
    }
    li a:hover {
        border: 5px solid black;
        color: black;
        border: black;
    }
    #menu {
        display: inline-flex;
        justify-content: center;
        width: 90%;
        margin-top: 0;
        margin-bottom: 0;
    }
    #menu li {
        display: inline-flex;
        margin-right: 1%;
        align-items: center;
        height: 3em;
        width: 75%;
        border-left: 1px solid #F7E5F1;
        border-top: 1px solid #F7E5F1;
        border-right: 1px solid #F7E5F1;
    }
    .tablette {
        box-shadow: none;
    }
    #menu li:hover {
        background-color: #F7E5F1;
    }
    #menu figure {
        width: 30%;
        margin: 0;
        margin-right: 15%;
    }
    #menu li span {
        font-weight: normal;
        font-size: .5em;
    }
    #menu h2 {
        font-size: 1em;
        font-family: serif;
        font-style: italic;
        color: grey;
    }
    /* Menu des tailles a droite */
    .menu_fixe {
        position: fixed;
        display: flex;
        flex-direction: column;
        width: 6%;
        margin-left: 90%;
    }
    /* Titre "chaussettes de ville"*/
    h1 {
        margin-top: 3.5%;
        font-weight: normal;
    }
    /* Début du footer - premiere ligne et deuxième ligne */
    .ligne1 article, .ligne2 article {
        display: inline-flex;
        border: 1px solid lightgrey;
        margin-top: 2em;
        align-items: center;
    }
    .tablette2 {
        display: inline-flex;
    }
    footer .mobile {
        display: none;
    }
    .blog {
        margin-top: 2%;
    }
    aside {
        display: flex;
        flex-direction: column;
        position: absolute;
        margin-left: 80%;
    }
    aside ul {
        list-style-type: none;
    }
    span {
        color: lightgrey;
        font-style: italic;
        font-size: .8em;
    }
    aside li a {
        color: #44C2AC;
    }
    .texte {
        width: 75%;
    }
}


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


/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}


/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

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


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


/*
 * 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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *, *:before, *:after, *:first-letter, *:first-line {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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, 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;
    }
    img {
        max-width: 100% !important;
    }
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    h2, h3 {
        page-break-after: avoid;
    }
}
