* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*
 * -- BASE STYLES --
 * Most of these are inherited from Base, but I want to change a few.
 */
body {
    line-height: 1.7em;
    color: #505050;
    font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6,
label {
    color: #34495e;
}

.pure-img-responsive {
    max-width: 100%;
    height: auto;
}

.pure-vid-responsive {
    max-width: 100%;
    height: 100%;
}

a{
    color: #FF4400;
}

a:hover {
    color: #FFAA00;
}

/*
 * -- LAYOUT STYLES --
 * These are some useful classes which I will need
 */

.header {
    font-size: 13px;
    position: absolute;
    z-index: 2;
}

.l-box {
    padding: 1em;
}

.l-box-lrg {
    padding: 2em;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.is-center {
    text-align: center;
}



/*
 * -- PURE FORM STYLES --
 * Style the form inputs and labels
 */
.pure-form label {
    margin: 1em 0 0;
    font-weight: bold;
    font-size: 100%;
}

.pure-form input[type] {
    border: 2px solid #ddd;
    box-shadow: none;
    font-size: 100%;
    margin-bottom: 1em;
}

/*
 * -- PURE BUTTON STYLES --
 * I want my pure-button elements to look a little different
 */
.pure-button {
    background-color: #FFF;
    color: #505050;
    padding: 0.5em 2em;
    border-radius: 10px;
    border: 1px solid #FF4400;
}

.pure-button-hover, .pure-button:focus, .pure-button:hover {
    background-image: none;
    color: #FFAA00;
}

.pure-button-active, .pure-button:active {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #FFAA00;
}

a.pure-button-primary {
    background: white;
    border-radius: 5px;
    font-size: 120%;
}


/*
 * -- MENU STYLES --
 * I want to customize how my .pure-menu looks at the top of the page
 */

.home-menu {
    padding: 0.1em;
    text-align: center; 
    background: #111;
}

.pure-menu.pure-menu-fixed {
    /* Fixed menus normally have a border at the bottom. */
    border-bottom: none;
    /* I need a higher z-index here because of the scroll-over effect. */
    z-index: 4;
    top: 0;
    height: 50px;
}

.home-menu .pure-menu-heading {
    color: white;
    font-weight: 400;
    font-size: 100%;
    text-transform: none;
}

.home-menu .pure-menu-selected a {
    color: white;
    background: none;
}

.home-menu li a:hover {
    background: none;
    border: none;
    color: #FFAA00;
}

.home-menu li a:focus, .home-menu li a:hover {
    background-color: transparent;
}

.eau{
    margin: auto;
}

div.eau{
    text-align: center;
}

.link {
    margin: 2px;
    width: 99%;
    height: 32px;
    font-weight: bold;
    text-align: left;
    color: #FF4400;
}

.link:hover {
    color: #FFAA00;
}

.linkcalc {
    color: #FF4400;
    display: block;
    margin: 2px;
    width: 99%;
    text-decoration: none;
    font-size: 15px;
    background-color: #FFF;
    padding: 0.5em 2em;
    border-radius: 10px;
    font-weight: bold;
}

.linkcalc i{
    font-size: 30px;
    line-height: 35px;
    vertical-align: middle;
}

.linkcalc:hover {
    color: #FFAA00;
}

.pure-menu-selected>.pure-menu-link:visited {
    color: #FFF;
}

.qtelevain{
    width: 80px;
    float: left;
}

/*
 * -- SPLASH STYLES --
 * This is the blue top section that appears on the page.
 */

.splash-container {
    background-image: url('../img/pain.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    overflow: hidden;
    /* The following styles are required for the "scroll-over" effect */
    width: 100%;
    height: 100%;
    top: -50px;
    left: 0;
    position: fixed !important;
}

.splash {
    /* absolute center .splash within .splash-container */
    width: 80%;
    height: 55%;
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    text-align: center;
}

.splash a{
    text-decoration: none;
}

/* This is the main heading that appears on the blue section */
.splash-head {
    color: white;
    border: 1px solid white;
    padding: 0.6em;
    font-weight: 100;
    background: #FF4400;
    opacity: 0.8;
    border-radius: 10px;
    font-variant: small-caps;
}

/* This is the subheading that appears on the blue section */
.splash-subhead {
    font-size: 45%;
    color: white;
    text-align: right;
    position: relative;
    top: 12px;
    right: 5px;
    font-style: italic;
    font-variant: normal;
}

/*
 * -- CONTENT STYLES --
 * This represents the content area (everything below the blue section)
 */
.content-wrapper {
    /* These styles are required for the "scroll-over" effect */
    position: absolute;
    top: 100%;
    width: 100%;
    min-height: 12%;
    z-index: 2;
    background: white;

}

/* We want to give the content area some more padding */

.content1 {
    margin-top: 50px;
}

.content {
    padding: 1em 1em 3em;
}

/* This is the class used for the main content headers (<h2>) */
.content-head {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0em 0 1em;
    font-size: 120%;
}

/* This is a modifier class used when the content-head is inside a ribbon */
.content-head-ribbon {
    color: #505050;
}

/* This is the class used for the content sub-headers (<h3>) */
.content-subhead {
    color: #FF4400;
}
    .content-subhead i {
        margin-right: 7px;
    }

/* This is the class used for the dark-background areas. */
.ribbon {
    background: #FFCC66;
    color: #505050;
}

hr{
    border: 5px solid #FF4400;
    width: 30%;
    border-radius: 5px;
}

figure.photo {
    width: 90%;
    border: thin #c0c0c0 solid;
    display: flex;
    max-width: 600px;
    flex-flow: column;
    padding: 5px;
    margin: auto;
}

figure.photo figcaption {
    background-color: #FF4400;
    color: #fff;
    padding: 3px;
    text-align: center;
}

.tags {
    cursor: help;
    color: #FF4400;
}



.ustensile {
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    display: table;
    width: 100%;
  }

.ustensile div {
vertical-align: bottom;
}


/* Button go top */

#button, #calcu, #plani{
    display: inline-block;
    background-color: #FF4400;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 40px;
    right: 30px;
    transition: background-color .3s, 
    opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    text-decoration: none;
}

#plani{
    right: 90px;
}

#calcu{
    right: 150px;
}


#button::after, #plani::after, #calcu::after {
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: #fff;
}

#button::after {
    content: "\f077";
    font-family: FontAwesome;
}

#plani::after{
    content: "\f013";
    font-family: FontAwesome;
}

#calcu::after{
    content: "\f1ec";
    font-family: FontAwesome;
}


#button:hover, #plani:hover, #calcu:hover {
    cursor: pointer;
    background-color: #FFAA00;
}


#button.show, #plani.show, #calcu.show {
    opacity: 1;
    visibility: visible;
}

.hide {
    opacity: 0;
    visibility: hidden;
}

/* table */

.pure-table {
    border: 0;
}

.pure-table th, .pure-table td{
    border-bottom-color: #FF4400;
}

.pure-table input.input-farine{
    width : 100px;
}

.calcul{
    display: none;
}

.calcul2{
    display: inline;
}

.results {
    font-size: 18px;
    font-weight: bold;
}

.resultsnumber {
    color: #FF4400;
    font-size: 25px;
    font-weight: bold;
}

.parametres {
    margin-left: 20%;
}

.parametres label {
    text-align: left;
}

.video_yt {
max-width:600px;
}

/* popup */

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 200ms;
    visibility: hidden;
    opacity: 0;
    z-index: 3000;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
    z-index: 3000;
}

.popup {
    margin: 15px auto 0;
    padding: 10px 10px 0;
    border-radius: 10px;
    width: 100%;
    max-height: 100%;
    position: relative;
    background-color: #FFCC66;
    overflow: auto;
    z-index: 3000;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #FF4400;
}

/*Fb Comments Width Fix*/
.fb_iframe_widget_fluid_desktop, .fb_iframe_widget_fluid_desktop span, .fb_iframe_widget_fluid_desktop iframe {
            max-width: 100% !important;
            width: 100% !important;
 }

 .formerr{
    text-align: center;
    color: red;
    font-weight: bold;
 }

/* This is the class used for the footer */
.footer {
    color: white;
    background: #111;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1500;
}

.footer span {
    position: absolute;
    right: 10px;
    font-style: italic;
    font-size: 0.7em;
}

/*
 * -- TABLET (AND UP) MEDIA QUERIES --
 * On tablets and other medium-sized devices, we want to customize some
 * of the mobile styles.
 */
@media (min-width: 48em) {

    /* We increase the body font size */
    body {
        font-size: 16px;
    }

    .header {
        font-size: 16px;
    }

    /* We can align the menu header to the left, but float the
    menu items to the right. */
    .home-menu {
        text-align: left;
    }
        .home-menu ul {
            float: right;
        }

    .home-menu .pure-menu-heading {
    font-size: 120%;

    }

    /* We increase the height of the splash-container */
/*    .splash-container {
        height: 500px;
    }*/

    /* We decrease the width of the .splash, since we have more width
    to work with */

    .splash-container {
        top: 0;
    }

    .splash {
        width: 70%;
    }

    .splash-head {
        font-size: 200%;
    }

    .splash-subhead {
        top: 11px;
    }

    /* We remove the border-separator assigned to .l-box-lrg */
    .l-box-lrg {
        border: none;
    }

    .content-head{
        font-size: 160%;
    }

    .calcul{
        display: block;
    }

    .calcul2{
        display: none;
    }
}

/*
 * -- DESKTOP (AND UP) MEDIA QUERIES --
 * On desktops and other large devices, we want to over-ride some
 * of the mobile and tablet styles.
 */
@media (min-width: 78em) {
    /* We increase the header font size even more */
    .splash {
        width: 50%;
    }

    .splash-head {
        font-size: 300%;
    }

    .splash-subhead {
        top: 20px;
    }

    .popup
    {
        width: 80%;
    }

}
