@import url("theme.css");
html, body {
    height: 100%;
}
body {
    font-family: sans-serif;
    margin: 0;
    overflow: hidden;
}
main {
    height: inherit;
    overflow: hidden;
}
#accueil {
    height: inherit;
    overflow: hidden;
}
#produits {
    height: inherit;
    background-color: lightgray;
    overflow-y: scroll;
}
#accueil a {
    float: left;
    width: 24%;
    margin: 0.3%;
    height: 23%;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    border: 1px solid gray;
    text-decoration: none;
}
#accueil a figure {
    display: none;
}
#accueil span {
    display: block;
    margin: 0;
    width: 100%;
    line-height: 2em;
    color: white;
    font-size: medium;
    background-color: #00000075;
    border-radius: 5px 5px 0 0;
}
#accueil a:hover span {
    color: gold
}
/* DEBUT Pour afficher second niveau dans block */
#accueil div {
    display: block;
    float: left;
    margin-top: 2em;
    margin-left: -24%;
    width: 24%
}
#accueil div a {
    text-decoration: none;
}
#accueil div a h2 {
    font-size: small;
    background-color: #00000075;
    color: lightyellow;
    margin: 0;
    line-height: 2em;
}
#accueil div a h2:hover {
    color: lime;
}
#accueil section > div a span {
    display: none;
}
#accueil article {
    display: none
}
#accueil div div {
    display: none;
}
/*FIN Pour afficher second niveau dans block */
#entete {
    height: 8%;
    overflow: hidden;
}
/* ---------------------------------------------------------------------------- */
/*                                      entete                                  */
/* ---------------------------------------------------------------------------- */
.center {
    position: relative;
    margin: 0;
    padding: 0;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    color: snow;
    list-style-type: none;
}
.center li {
    display: inline-block;
    margin: 0 10px;
}
.center li:last-child {
    float: right;
    margin-right: 20px;
}
.center li:first-child {
    float: left;
    margin-left: 20px;
}
.center li:first-child img {
    display: inline-block;
    vertical-align: bottom;
}
.center img {
    display: none;
}
.center li:first-child span {
    display: none;
}
.center a {
    line-height: 20px;
    vertical-align: middle;
    color: inherit;
    text-decoration: none;
    font-size: smaller;
    background-image: none;
    text-transform: capitalize;
    cursor: pointer /*car nohref*/
}
.center a:hover {
    color: lime
}
/* ---------------------------------------------------------------------------- */
/*                                      titres                                  */
/* ---------------------------------------------------------------------------- */
produits > .titre {
    float: none;
    width: 100%;
    margin: 0;
    height: 2em;
    border-radius: 0;
}
.titre {
    display: block;
    text-decoration: none;
    text-align: center;
    width: 100%;
}
.titre:target {
    background-color: gold;
}
.titre > * {
    line-height: 2em;
    display: inline;
    text-align: center;
    color: midnightblue;
    font-size: smaller;
}
.titre h1:hover, .titre h2:hover, .titre H3:hover {
    text-decoration: underline;
}
.titre figure {
    display: none;
}
.titre span {
    margin-left: 5px;
}
.titre h2 {
    width: 100%;
}
/* ---------------------------------------------------------------------------- */
/*                              fiches article                                  */
/* ---------------------------------------------------------------------------- */
article {
    display: inline-block;
    width: 29%;
    height: 551px;
    padding: 1%;
    margin: 1%;
    box-shadow: 4px 4px 5px #555;
    background-color: whitesmoke;
    overflow: hidden;
}

article:target {
    background-color: lightgreen;
}
article header, article main, article footer {
    overflow: hidden;
    margin: 0;
    padding: 0 5px;
    background-color: white;
}
article header {
    height: 220px;
}
article header button {
    visibility: hidden;
    height: 20px;
    width: 20px;
    margin-top: 10px;
    margin-left: 94%;
}
article:hover header button {
    visibility: visible
}
article header .chapelet {
    height: 20px;
    width:95%;
    margin-top: -20px;
    margin-bottom: 0;
}
article header .chapelet a {
    background: none !important;
    text-decoration: none;
    color: black !important;
}
article header .chapelet a:before {
    content: "\00a0>\00a0";
    display: inline-block;
}
article header .chapelet a:hover {
    text-decoration: underline;
}
article header .chapelet a:first-child:before {
    content: " "
}
article header figure {
    height:185px;
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.magnify-wrapper img {
    max-height: inherit;
}
.magnify-wrapper img:hover {
    cursor:zoom-in;
}
.magnify-wrapper img:hover+div,
.magnify-wrapper img:active+div {
    opacity: 1;
}
.magnify-wrapper div{
    width: 150px;
    height: 150px;
    box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    position: absolute;
    border: 1px solid #444;
    z-index: 99;
    /*border-radius: 100%;*/
    display: block;
    opacity: 0;
    transition: opacity 0.2s;
}
article header figure img {
    margin:auto;
    height:90%;
    margin-top: 2.5%;
}
article main h3 {
    color: darkgreen;
}
article main h4 {
    color: firebrick;
}

article main {
    height: 230px;
}
article footer {
    height: 100px;
}
article h3, article h4 {
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
article main p {
    margin: 0;
    height: 100px;
    overflow: auto;
    text-overflow: ellipsis;
    background-color: #fafafa;
    font-size: small;
    color: midnightblue;
    margin-bottom: 10px;
}
.breve_description {
    height: 2.5em;
    overflow: auto;
    text-overflow: ellipsis;
}
article main a, article main span {
    display: inline-block;
    line-height: 40px;
    width: 140px;
    /*! margin: auto; */
    height: 40px;
    /*! border: 1px solid blue; */
    vertical-align: center;
    margin: auto;
}
article.tarif:target {
    background-color: gold;
}
article.obsolete {
    display: none;
}
article.conseil {
    background: white
}
article.conseil .date {
    width: 100%;
}
article.conseil figure {
    width: 100%;
    height: 100%;
}
article.conseil figure img {
    /*! display: flex; */
    max-width: 100%;
    max-height: 100%;
}
article.conseil footer {
    display: none;
}
article.nologo {
    background: url(""), url("") !important;
}
article .marque {
    display: block;
    background-repeat: no-repeat !important;
    background-size: contain, 1px !important;
    background-position: center;
    text-align: center;
    height: 30px;
    width: 100px;
    line-height: 30px;
    margin: auto;
    box-sizing: border-box;
    border: 1px solid gray;
    border-radius: 5px;
    box-shadow: 3px 3px 3px #aaa; /* offset-x | offset-y | blur-radius | color */
}
article .marque:hover {
    background-color: beige;
    filter: grayscale(0);
}
article .message {
    font-size: medium;
    color: orangered;
    height: 1.5em;
    text-align: center;
    display: none;
}
article footer .prix, article footer .nc {
    color: firebrick;
    font-weight: bold;
}
article footer a, article span {
    display: table;
    font-size: small;
    text-decoration: none;
    height: 1.3em;
    overflow: hidden;
    background: none !important;
    /*! color: black !important; */
}
article .gro {
    color: black !important;
}
article .perime {
    color: silver !important;
}
article .ean:before {
    content: "Ean: "
}
article .sto:before {
    content: "Stock: "
}
article .dlc:before {
    content: "Maj: "
}
article .gro:before {
    content: "Ref.Logikal: ";
}
article .con:before {
    content: "Ref.Constr.: "
}
article footer a {
    text-decoration: none;
    cursor: pointer;
    color: black;
}
article footer a:before, article span:before {
    display: inline-block;
    margin-right: 3px;
}
article footer a:hover {
    text-decoration: none;
    cursor: auto;
}
article .unit:before {
    content: " Prix :";
}
article .mètre:before, article .détail:before {
    content: "Prix au ";
}
article .sachet:before, article .boîte:before, article .lot:before, article .charge:before {
    content: "Prix par ";
}
article .unité:before {
    content: "Prix à l'";
}
article .refQuinc {
    display: inline-block;
    width: 30%;
    margin: 1%;
    color: lightslategray;
}
article .prix, article .nc {
    float: right;
    text-align: right;
    font-size: large;
    margin-top: -19px;
    margin-right: 10px;
    /*! color: orangered; */
}
article .prix:after {
    content: " € ttc";
    vertical-align: super;
    font-size: xx-small;
}
article .perime.prix {
    color: lightgray !important;
}
article:hover {
    background-color: antiquewhite;
}
#piedepage {
    background: #555;
}
#piedepage ul {
    width: 15%;
    margin: 0 1%;
    padding: 1%;
    /*! float: left; */
    display: inline-block;
    /*! min-height: 250px; */
    display: inline-grid;
}
#piedepage h2 {
    font-size: medium;
    font-weight: normal;
    line-height: 2em;
    border-bottom: 1px solid silver;
    color: lime;
}
#piedepage ul li {
    list-style-type: none;
}
#piedepage a {
    line-height: 1.5em;
    font-size: smaller;
    text-decoration: none;
    color: snow;
}
#piedepage a:hover {
    text-decoration: underline;
}
@media screen and (max-width: 960px) {
    button {
        visibility: hidden
    }
    .center li:nth-child(3) img {
        display: inline-block;
        float: right;
        margin-right: 10px
    }
    #entete span {
        display: none;
    }
    #piedepage ul {
        width: 29.3%;
    }
    #piedepage h2 {
        font-size: small;
        overflow: hidden;
    }
    article {
        width: 95%;
        height: 170px;
    }
    article header, article main, article footer {
        float: left;
        padding: 0 1%;
    }
    article header {
        height: 97%;
        width: 24%;
        margin: 0 1% 0 0;
    }
    article header p {
        font-size: smaller;
        height: 10%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    article header div {
        height: 100%;
    }
    article header div img {
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        display: block;
    }
    article main {
        height: 72%;
        width: 70%;
        margin: 0 0 1% 0;
    }
    article main p {
        width: 75%;
        height: 65px;
        color: midnightblue;
    }
    article main .title {
        margin: 0;
    }
    article main .conseil,
    article main .marque {
        text-align: center;
        height: auto;
        left: 30px
    }

    article main .marque {
        margin: auto;
        margin-top: -4em; 
    }
    article footer {
        height: 6em;
        width: 70%;
        margin: 0;
    }
    article footer a,
    article footer span {
        display: inline-block;
        margin-right: 15px;
    }
    article footer .prix,
    article footer .nc {
        font-size: large;
        margin-top: -20px;
    }
}
@media screen and (max-width: 512px) {
    #accueil a {
        width: 30%;
        margin: 1%;
        height: 20%;
        text-align: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border-radius: 5px;
        border: 1px solid gray;
    }
    .center li {
        display: inline-flex;
        list-style-type: none;
        margin: 0 2px
    }
    .center li:first-child img {
        display: inline-block;
        vertical-align: bottom;
        float: left;
    }
    .center li:nth-child(3) {
        float: right;
        margin-right: 20px
    }
    .center li:nth-child(3) span {
        display: none;
    }
    .center li:last-child span {
        /* les date et heure ne sont pas affichées */
        display: none;
    }
     article {
        width: 85%;
        height: auto;
        padding: 2.5%;
        margin: 5%;
    }
    article header {
        width: 96%;
        padding: 2%;
    }
    article header figure {
        height: 80%;
        margin: 0;
    }
        article header img {
        height: auto;
        max-width: 50%;
    }
    article .conseil .marque {
        position: relative;
        left: 0
    }
    article header p.chapelet {
        font-size: small;
    }
    article main {
        width: 96%;
        height: 180px;
        padding: 2%;
        margin: 0;
    }
    article main h3.title {
        margin: 5px 0;
        /*! height: 2.5em; */
    }
    article main p {
        height: 9em;
    }

    article main p {
        width: 100%;
        height: 6em;
    }
    article main .marque {
        float: none;
        margin-top: 0;
    }
    article footer {
        padding: 2%;
        width: 96%;
    }

    article footer a, article footer span {
        display: block;
        float: left;
        width: 60%;
        margin-right: 0;
        margin-top: 0;
    }
    article .prix, article .nc, article .prix, article .perime {
        float: right;
        font-size: large;
        font-weight: normal;
        margin-top: -10px;
    }
   #piedepage ul {
        width: 42%;
    }
}