@font-face {
    font-family : 'yara';
    src : url('fonts/reg/mxrglf__.eot') format('embedded-opentype'),
    url('fonts/reg/mxrglf__.woff') format('woff'),
    url('fonts/reg/mxrglf__.ttf') format('truetype'),
    url('fonts/reg/mxrglf__.svg') format('svg');
}

@font-face {
    font-family : 'yarabold';
    src : url('fonts/bold/mxbdlf__.eot') format('embedded-opentype'),
    url('fonts/bold/mxbdlf__.woff') format('woff'),
    url('fonts/bold/mxbdlf__.ttf') format('truetype'),
    url('fonts/bold/mxbdlf__.svg') format('svg');
}


legend
{
    font-family : 'yarabold';
    font-size: 110%;
}

legend > legend
{
    font-family : 'yarabold';
    font-size: 105%;
}



html
{
    background-color: lightslategrey;
    min-height: 100%;
    height: 100%;
}
body
{
    font-family : 'yara';
    padding: 0 0;
    background-image: url('../imgs/bg_app.jpg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    top: 0;
    position: relative;
    max-width: 800px;/*background image size */
    min-height: 100%;
    margin: 0 auto;
    background-position: top center;
}

/*Permet de centrer l'imaage de fond à partir du moment ou les marges du body apparaissent (+ de 573px) ex: pc ou gd écran mobile*/
/*@media screen and (min-device-width: 1025px)
{
    body
    {
        background-position: top center;
    }
}*/

#content
{
    position: relative;
    width: 100%;
    min-width: 100%;
    padding-top: 145px;
}
#wait_gif
{
    position: relative;
    display: inline-block;
    visibility: hidden;
    float: right;
    width: 30px;
    height: 30px;

    bottom: 35px;
    right: 10px;
}

#bt_geoloc
{
    width: 30px;
    font-size: 90%;
    position: relative;
}

.state_wait
{
    position: relative;
}

.state_wait:after
{
    position: absolute;
    content: url('../imgs/loading_transparent.gif');
    top: 5px;
    right: 20px;
}

.state_wait_global
{
    position: relative;
}

.state_wait_global:after
{
    position: absolute;
    content: url('../imgs/loading_transparent.gif');
    top: 3px;
    right: 5px;
}


#fond_noir
{
    display: none;
    background-color: rgba(119,136,153, 0.8);
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right: 0;
}



#popup_full_screen, .popup_full_screen
{
    z-index: 10001;
    background-image: -webkit-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    background-image: -moz-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    background-image: -ms-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    background-image: -o-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);


    background-image: linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#d6d6d6', GradientType=1);

    /*background-color: #17723b;*/
    position: absolute;

    /*
    position: relative;
    top:0;//a supprimer
    min-height: 80%;//a supprimer
    margin: 50px auto;
    */

    top: 1px;
    width: 100%;
    max-width: 800px;

    -moz-border-radius:15px;
    -webkit-border-radius:15px;
    border-radius:15px;
    color: #262626;
    font-size: 1em;
    display: none;
}

    #popup_full_screen > h1
    {
        font-family : 'yarabold';
        margin: 0 auto;
        width: 100%;
        font-size: 1.2em;
    }

    #popup_full_screen > p
    {
        margin: 0 auto;
        width: 100%;
    }

#popup_synchronisation
{
    background-image: -webkit-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    background-image: -moz-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    background-image: -ms-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    background-image: -o-linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);


    background-image: linear-gradient(bottom, #ffffff 0%,#d6d6d6 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#d6d6d6', GradientType=1);

    position: absolute;

    left: 10%;
    right: 10%;

    top: 25%;
    width: 70%;
    max-width: 800px;

    text-align: center;

    padding: 5%;

    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border-radius:5px;
    color: black;
    font-size: 2em;
    display: none;
}
#popup_synchronisation > *
{
    display: inline-block;
}

label
{
    display: block;
    width: 90%;
}

fieldset + fieldset
{
    margin-bottom: 10px;
    margin-top: 10px;
}

.icone_close
{
    background-image: url('../imgs/close.png');
    background-size: contain;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    cursor: pointer;
}

#baniere_top
{
    position: fixed;
    z-index: 9999;
    background-image: url('../imgs/baniere.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 50px;
    max-width: 800px;/*background image size */
    top: 0;
    margin: 0 auto;
}

#baniere_top > h1
{
    width: 100%;
    color: white;
    font-size: 1.5em;
    line-height: 50px;
    font-family : 'yarabold';
    text-align: center;
    margin: 0;
}

#baniere_top > h1:before
{
    content: url('../imgs/logo_yara_petit.png');
    position: absolute;
    width: 40px;
    height: 40px;
    left: 3px;
    top: 5px;
}

#categorie
{
    z-index: 9998;
    position: fixed;
    top: 50px;
    width: 100%;
    max-width: 800px;
    height: 20px;
    background-color: #46c119;
}

#categorie > h1
{
    width: 100%;
    color: white;
    font-size: 18px;
    line-height: 20px;
    font-family : 'yarabold';
    text-align: center;
    margin: 0;
}
#categorie > #icone_ajout
{
    background-image: url('../imgs/add.png');
    background-size: cover;
    position: absolute;
    cursor: pointer;
    width: 60px;
    height: 55px;
    top: 0px;
    right: 4px;
}

#categorie > #icone_retour
{
    background-image: url('../imgs/back.png');
    background-size: cover;
    position: absolute;
    cursor: pointer;
    width: 65px;
    height: 55px;
    top: 0px;
    left: 4px;
}



#fond_recherche
{
    position: fixed;

    background-color: rgba(119,136,153, 0.8);
    width: 100%;
    height: 30px;
    max-width: 800px;/*background image size */
    top: 70px;
}

#fond_recherche > input
{
    width: 78%;
    max-width: 800px;/*background image size */
    height: 19px;

    margin-top: 4px;
    margin-bottom: 3px;
    margin-left: 1%;
    padding: 0;

    padding-left: 2%;

    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
}

.celulle_info
{
    position: relative;/*Necessaire pour mettre l'icone en relative*/

    width: 93%;
    margin: 1px auto;

    padding: 4px 8px;

    background-image: -webkit-linear-gradient(bottom, #ffffff 0%,#ededed 100%);
    background-image: -moz-linear-gradient(bottom, #ffffff 0%,#ededed 100%);
    background-image: -ms-linear-gradient(bottom, #ffffff 0%,#ededed 100%);
    background-image: -o-linear-gradient(bottom, #ffffff 0%,#ededed 100%);
    background-image: linear-gradient(bottom, #ffffff 0%,#ededed 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#ededed', GradientType=1);

    -moz-border-radius:8px;
    -webkit-border-radius:8px;
    border-radius:8px;

    border: 1px solid #A19E9E;
    cursor: pointer;
}

.celulle_info > p
{
    font-family : 'yarabold';
    width: 68%;
    margin: 0 0 1% 0;
    font-size: 1.3em;
}
.celulle_info > p + p
{
    margin: 0 0;
    font-size: 0.9em;
}

.celulle_info_demi_colonne_icone_droite
{
    left: 82%;

    position: absolute;
    right: 5%;
    top: 0;
    bottom: 0;
    background-image: url("../imgs/fleche-verte-a-droite.png");
    background-position: center;
    background-repeat: no-repeat;
}

.celulle_info_demi_colonne_icone_localisation
{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    background-image: url("../imgs/localisation.png");
    background-position: center;
    background-repeat: no-repeat;
}


.celulle_info_demi_colonne
{
    position: relative;
    display: inline-block;
    vertical-align: text-top;
    padding-right: 2%;
    padding-left: 2%;
    width: 45%;
    float: none;
}


.celulle_info_demi_colonne + .celulle_info_demi_colonne
{
    width: 45%;
    padding-right: 0%;
}

.celulle_info_demi_colonne > p
{
    margin: 0 0 1% 0;
    overflow: hidden;
    -o-text-overflow: ellipsis; /* pour Opera 9 */
    text-overflow: ellipsis; /* pour le reste du monde */
}

.celulle_info_demi_colonne > p + p
{
    margin: 0 0;
    font-size: 0.9em;
}

h1
{
    display: inline-block;
    text-align: center;
    vertical-align: top;
    line-height: 1.6em;
    font-size: 1.2em;
    width: 75%;
    margin: 3px 0 0 0;
    color: black;
    text-wrap: avoid;
}

h2
{
    display: inline-block;
    text-align: center;
    vertical-align: top;
    line-height: 1.6em;
    font-size: 1.2em;
    width: 70%;
    margin: 3px 0 0 0;
    color: #ffffff;
    text-wrap: avoid;
}
input
{
    width: 100%;
}

textarea
{
    width: 100%;
}

input[type="button"]
{
    width: 100%;
    height: 40px;
    font-size: 100%;
    font-family : 'yarabold';
    color: white;
    background-color: #567E21;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
}

input[type="submit"]
{
    height: 40px;
    font-size: 100%;
    font-family : 'yarabold';
    color: white;
    background-color: #567E21;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
}

form
{
    padding-left: 7%;
    padding-right: 8%;
    padding-top: 3.5%;
    padding-bottom: 3%;
}

.icone_edit
{
    position: absolute;
    display: block;
    right: 0;
    top: 3px;
    right: 3px;
    background-image: url("../imgs/edit.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
}


.icone_synchroniser
{
    position: absolute;
    display: block;
    right: 38px;
    top: 3px;
    background-image: url("../imgs/synchroniser-icone.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
}


#user
{
    position: fixed;

    background-color: #86ab39;
    font-family : 'yarabold';
    bottom: 0;

    margin-left: 1.5%;
    padding-top: 8px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;

    font-size: 0.8em;

    color: white;

    cursor: pointer;
/*
    -webkit-border-radius: 20px 20px 0 0;
    -moz-border-radius: 20px 20px 0 0;
    border-radius: 20px 20px 0 0;*/
}

#carto_globale
{
    position: fixed;
    font-family : 'yarabold';
    background-color: #86ab39;

    bottom: 0;

    margin-left: 120px;
    padding-top: 8px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;

    font-size: 0.8em;

    color: white;

    cursor: pointer;

/*   -webkit-border-radius: 20px 20px 0 0;
    -moz-border-radius: 20px 20px 0 0;
    border-radius: 20px 20px 0 0;*/
}

#carto_globale > p
{
    margin: 0;
}

#user > p
{
    margin: 0;
}

#ecran_noir
{
    display: none;
    position: fixed;
    top: 0px;
    bottom: 0px;
    left:0px;
    right: 0px;
    z-index: 999999;
    background-color: #000000;
}