/* ============================================ *
 * ========== DISPOSITIONS GENERALES ========== *
 * ============================================ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    font: inherit;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =================================== *
 * ========== STYLE GENERAL ========== *
 * =================================== */

body {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    color: #1c1c1c;
    line-height: 1.3em;
}

header{
    background-color: #FFFFFF;
    background: none;
    height: 70px;
}


.wrapper {
    padding: 10px;
}
 
p, ul {
    margin: 0 0 1.2em;
}
 
ul {
    list-style: disc;
    padding: 0 0 0 20px;
}
 
a {
    color: #1D745A;
}

input {
    font-size: 16px;
}

input[type="submit"] {
    font-size: medium;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
 
h1 {
 
}
 
h2 {
    font-size: 32px;
    line-height: 1.4em;
    margin: 0 0 .4em;
    font-weight: bold;
}
 
/*layout*/
 
.wrapper {
    
}

 
/*header*/
 
header {
    background: #1c1c1c;
    padding: 15px 20px;
}
 
/*shorter clearfix http://nicolasgallagher.com/micro-clearfix-hack/*/
header:before, header:after {
    content:"";
    display:table;
}

header:after {
    clear:both;
}
 

h1, h2, .subtitle, .title{
    font-weight: normal;
    padding-bottom:10px;
    text-align: left;
    color: firebrick;
    margin: 20px 0 15px;
}

h1, .title{
    font-size: 27px;
}

h2, .subtitle{
    font-size: 23px;
    padding-bottom:8px;
}

a img{
    border: none;
}

.col-half {
    /* Ici uniquement le style pour mobile -> pas de taille (défini dans la zone relative aux écrans de PC)*/
    position:relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.small{
    font-size: 0.8em;
}


.strong {
    font-weight: bold;
}

footer{
    clear:both;
    background: url("img/bg_foot.jpg") repeat-x black;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-size: 0.8em;
    color: lightgray;
    bottom: 0;
}


a {
    text-decoration : none;    
    color:blue;
}

a:hover {
    text-decoration: none;
}

.formError{
    color: red;
    background-image: url(img/error.png);
    background-repeat: no-repeat;
    background-position: 0px;
}

.formValid{
    color: green;
    background-image: url(img/valid.png);
    background-repeat: no-repeat;
    background-position: 0px;
}

.form-control {
    display: block;
    width: 200px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;    
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;    
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
}

.form-group select{
    width: 225px;
}

.form-group {
    margin-bottom: 15px;
    min-width: 300px;
}

.form-group p{
    margin:0;
}

.flexible-container iframe, .flexible-container object, .flexible-container embed {
    min-height: 400px;
    width: 100%;
    height: 100%;
}

.content_toggle {
    cursor:pointer;
    font-weight:normal;
}

.content_toggle:hover{
    font-weight:bold;
}

.error{
    font-weight: bold;
    color: #cc3333;
}

.info{
    font-weight: bold;
    color: #00ad00;
}

.redButton,
.redButton:link,
.redButton:visited,
.ui-button.currentButton, 
.ui-button.currentButton:link, 
.ui-button.currentButton:visited,
input[type="submit"].ui-button{
    border: 1px solid #cccccc;
    background-color: firebrick;
    font-weight: bold !important;
    color: white !important;
}
 
.ui-button.currentButton:hover,
.redButton:hover,
.redButton:active,
input[type="submit"].ui-button:hover{
    background-color: darkred;
}

.ui-button.currentButton:disabled,
.redButton:disabled,
input[type="submit"].ui-button:disabled{
    background-color: lightgray;
    color: #5C5C5C;
    border: 1px solid darkgray;
}

.ui-button.currentButton:disabled:hover,
.redButton:disabled:hover,
input[type="submit"].ui-button:disabled:hover{
    border: 1px solid darkgray;
    background-color: lightgray;
    cursor: auto;
}

.long{
    width: 280px;
}

.long input[type="text"], .long input[type="password"]{
    width: 98%;
}

.login{
    background-color: #cc3333;    
    padding: 10px;
    color: white;
    margin: auto;
}

.login input[type=submit] {
    width: auto;
}

.login ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.login a{
    color: white;
}

.login a:hover{
   color: lightgrey;
   text-decoration: none;
}

.login .label{
    padding: 5px 0;
}

.login .input{
    padding: 5px 0;
}

.login ul input[type=text], .login ul input[type=password]{
    width: 190px;
    height: 20px;
}

.login #userLoginFormPasswordLost, .login #userLoginFormPasswordLost a{
    color: white;
    text-align: right;
}

.login #userLoginFormPasswordLost a:hover{
    color: lightgray;
    text-decoration: none;
}

.login #userLoginFormSubmit{
    text-align: right;
}

.login .button{
    background-color: white;
    color: #cc3333;
}

.login #userLoginFormSubmit .button:hover{
    background-color: lightgrey;
    color: #cc3333;
}

.login #userLoginSignup{
    display: none;
}

.login .error{
    color: white;
}

.footerLink{
    color: #D3D3D3;
}

.footerLink:hover{
    color: #cccccc;
    text-decoration: none;
}

.widthAuto {
    width: auto;
    padding-left: 15px;
    padding-right: 15px;    
}

/* ===================================== *
 * ========== GESTION DU MENU ========== *
 * ===================================== */
/* Initial pour mobile, les spécifications propre aux écrans de PC
   viennent ensuite */
#primary_nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

#primary_nav ul {
    list-style: none;
    background: #1c1c1c;
    padding: 5px 0;    
}
 
#primary_nav li a {
    display: block;
    padding: 0 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    letter-spacing: 0.1em;
    line-height: 2em;
    height: 2em;
    border-bottom: 1px solid #383838;
}
 
#home #nav_home a,
#rdv #nav_rdv a,
#administration #nav_admin a,
#products #nav_admin a,
#users #nav_admin a,
#lateDelivery #nav_admin a,
#conflict #nav_conflict a,
#contact #nav_contact a{
    background-color: firebrick;
    color: white;
}

#primary_nav li > a:hover, #primary_nav li:hover > ul > li{
    color: firebrick;
}

#primary_nav li:hover > ul > li label{
    color: white;
}


/* Menus à masquer sur mobile (attention à les ré afficher en mode PC)*/
#nav_admin, #nav_home {
    display: none;
}

/* MENU Login survolé*/

#loginBox{
    padding-top: 5px;
    cursor: pointer;
}

/*#loginBox ul li{
    text-transform: uppercase;
}*/

#loginBox ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 20px;
    color: white;
    height: 33px;
}

#loginBox ul li ul{
    height: auto;
}


#loginBox .clickView{
    visibility: hidden;
    position: absolute;
}

#loginBox ul:hover ul, .clickView:hover{
    visibility: visible;
}

#loginBox ul li ul {
    background: #1c1c1c;
    padding: 5px 10px;
/*    height: 225px;*/
}

#loginBox input {
    margin-top: 5px;
    margin-bottom: 7px;
}

#loginBox a{
    color: white;
}

#loginBox a:hover{
    color: purple;
    text-decoration: none;
}


/* Gestion des colonnes à afficher / masquer dans les zones de recherches */

.colVarietyNb, .colClassNb, .colVarietyName, .colClassName, .colSuperclass, .colSuperclassNb, .colSuperclassName, colCheckbox{
    display: table-cell;
}

.colVarietyNb, .colClassNb, .colSuperclass {
    /* sur mobile, masquer ces colonnes */
    display:none;
}



/* ================================================= *
 * ========== GESTION SPECIFIQUE ECRAN PC ========== *
 * ================================================= */

@media only screen and (min-width: 768px) { 
    header{
        background-color: #FFFFFF;
        background: url("img/bg_top.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
        padding: 200px 0 0 0;
    }

    .wrapper {
        position: relative;
        margin: auto;
        padding: 0 50px 100px 50px;
    }
 
    #primary_nav {
        position: relative;
        width: 100%;
        background: none;
    }
    
    #primary_nav ul{
        height: 32px;
        padding-left: 20px;
        padding-right: 20px;
    }
 
    #primary_nav li {
        display: inline;
        padding-top: 4px;
    }
 
    #primary_nav li a {
        float: left;
        border: none;
        padding: 0 10px;
        -webkit-border-radius: 2px;
        border-radius: 2px;
    }

    #nav_admin, #nav_home {
        display: inline;
    }    
 
    #loginBox{
        float: right;
        padding-top: 0;
        padding-right: 40px;
    }
       
    #loginBox ul li ul {
        background: url("img/fond_transp.png");
    }
    
    #loginBox .clickView{   
        right:0;
        top:41px;
    }
    
    #loginBox .clickView li { 
        display: block;   
        height: 25px;
    }
    
    .col-half {
        /* Ici uniquement le style pour écran PC (taille), reste défini dans la zone relative aux mobiles */
        width: 45%;
        float: left;
    }    
    
    /* Gestion des colonnes à afficher / masquer dans les zones de recherches */
    .colVarietyNb, .colClassNb, .colSuperclass,
    .colSuperclassNb, .colSuperclassName{
        display: table-cell;
    }
    
    .login {
        margin-left: 35%;
        margin-right: 35%;
    }
    
    .button {
        font-size: medium;
    }
} 


/* Faire clignotter le menu conflit */
#nav_conflict a {
 -webkit-animation: blinkMenu 2s infinite; /* Safari 4+ */
 -moz-animation:    blinkMenu 2s infinite; /* Fx 5+ */
 -o-animation:      blinkMenu 2s infinite; /* Opera 12+ */
 animation:         blinkMenu 2s infinite; /* IE 10+, Fx 29+ */
}

@-webkit-keyframes blinkMenu {
    0%, 49% {
        background-color: darkred;
        color: white;
    }
    50%, 100% {
        background-color: white;
        color: darkred;
    }
}

@-moz-keyframes blinkMenu {
    0%, 49% {
        background-color: darkred;
        color: white;
    }
    50%, 100% {
        background-color: white;
        color: darkred;
    }
}

@-o-keyframes blinkMenu{
    0%, 49% {
        background-color: darkred;
        color: white;
    }
    50%, 100% {
        background-color: white;
        color: darkred;
    }
}

@keyframes blinkMenu{
    0%, 49% {
        background-color: darkred;
        color: white;
    }
    50%, 100% {
        background-color: white;
        color: darkred;
    }
}