/* ****************** */
/*      BOOTSTRAP     */
/* ****************** */
@import url("/css/bootstrap.default.min.css");
@import url("/css/bootstrap-responsive.min.css");

/* Bootstrap-responsive Fix in Facebook Frame */
@media(width:810px){
    .container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:780px}
    .span12{width:780px}
}

/* ****************** */
/*        BODY        */
/* ****************** */
body {
    margin: 0;
}

body.responsive {
    max-width: 810px;
    margin-left: auto;
    margin-right: auto;
}

body.wysihtml5-editor {
    padding: 0;
}

body.no-margin {

}

body.no-margin .container {
    width: 100%;
}

body.fixed {
    width: 810px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

body.max-820 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

body.max-820 .container {
    max-width: 820px;
}

body.fixed .container {
    width: 810px;
}

body.mobile {
    width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

body.mobile .container {
    width: 480px;
}

body.freestyle {
    padding: 0;
}

/* ****************** */
/*       GENERAL      */
/* ****************** */
.center {
    text-align: center;
}

.right {
    float: right;
}

.full-width {
    width: 100%;
}

ul.horizontal li {
    display: inline-block;
}

.wysiwyg-text-align-left{
    text-align: left;
}

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

.wysiwyg-text-align-right {
    text-align: right;
}

/* ****************** */
/*     PAGE HEADER    */
/* ****************** */
#page_header {
    position: relative;
    width: 100%;
    max-width: 810px;
    min-height: 40px;
    margin: 10px auto 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #EEE;
    vertical-align: middle;
    word-wrap: break-word;
}

#page_header .picture {
    position: absolute;
    left: 0;
    width: 30px;
}

#page_header .picture img {
    max-width: 30px;
    max-height: 30px;
}

#page_header .like {
    position: absolute;
    right: 0;
    top: 5px;
    width: 100px;
}

#page_header h1 {
    font-size: 20px;
    line-height: 25px;
    margin: 0 110px 0 40px;
}

/* ****************** */
/*      APP HEADER    */
/* ****************** */
#app_header {
    max-width: 810px;
    text-align: center;
    margin: 0 auto;
}

/* ****************** */
/*     APP WRAPPER    */
/* ****************** */
#app_wrapper {
    position: relative;
    padding-bottom: 20px;
    max-width: 810px;
}

#app_wrapper > .row-fluid {
    margin-top: 20px;
}

body.fixed #app_wrapper,
body.mobile #app_wrapper,
body.freestyle #app_wrapper {
    padding-bottom: 0;
}

body.fixed #app_wrapper > .row-fluid:first-child,
body.mobile #app_wrapper > .row-fluid:first-child,
body.freestyle #app_wrapper > .row-fluid:first-child {
    margin-top: 0;
}

#app_wrapper > .row-fluid.not-spaced {
    margin-top: 0 !important;
}

#app_wrapper > .row-fluid.spaced {
    margin-top: 20px !important;
}

/* ****************** */
/*      APP FOOTER    */
/* ****************** */
#app_footer {
    position: relative;
    border-top: 1px #FFFFFF solid;
    width: 100%;
    margin: 0 auto;
    max-width: 810px;
    font-style: italic;
    font-size: 75%;
    line-height: 13px;
    margin-top: 10px;

    /* Overrides custom themes */
    /*background-color: #FFFFFF !important;*/
    /*color: #404040 !important;*/
}

#app_footer .wrapper {
    border-top: 1px #BFBFBF solid;
    padding: 5px;
    /*margin-top: 10px;*/
}

#app_footer a {
    /*color: #0088cc !important;*/
}


#app_footer a:hover, #app_footer a:active {
    /*color: #005580 !important;*/
}

#app_footer .disclaimer {

}

#app_footer .logo {
    float: right;
    padding: 5px;
}

/* ****************** */
/*      AUTH FORM     */
/* ****************** */
#auth-form {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.controls .radio_list, .controls .checkbox_list {
    list-style: none;
}

.controls .radio_list input, .controls .checkbox_list input {
    margin-top: 0;
}

.controls .radio_list label, .controls .checkbox_list label {
    display: inline-block;
}

select.date {
    width: auto;
}

/* ******************* */
/* MERCIALYS AUTH FORM */
/* ******************* */
.mercialys-connect {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    overflow-y: scroll;

    z-index: 9999;
}

.mercialys-connect.mercialys-connect--open {
    display: block;
}

.mercialys-connect__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-color: #2c2c2c;

    /* IE 8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    /* IE 5-7 */
    filter: alpha(opacity=50);
    /* Netscape */
    -moz-opacity: 0.5;
    /* Safari 1.x */
    -khtml-opacity: 0.5;
    /* Good browsers */
    opacity: 0.5;
}

.mercialys-connect__popup {
    position: absolute;

    top: 70px;
    left: 10%;
    width: 80%;

    margin-bottom: 50px;
    padding: 24px 0;

    background-color: #ffffff;
    border: 1px solid #2c2c2c;
}

.mercialys-connect__signup, .mercialys-connect__signin {
    width: 40%;
    padding: 0 5%;
    display: inline-block;

    vertical-align: top;
}

.mercialys-connect__signin {
}

.mercialys-connect__signup {
}

.mercialys-connect__close {
    display: block;
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

@media(max-width: 600px) {

    .mercialys-connect__signup, .mercialys-connect__signin {
        width: 90%;
        padding: 0 5%;
        display: block;
    }

    .mercialys-connect__signup {
        margin-top: 40px;
        border-left: none;
    }

    .mercialys-connect__popup .full-width {
        width: 90% !important;
    }

}


/* ****************** */
/*      NO SCRIPT     */
/* ****************** */
#noscript-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    opacity: 0.8;
    z-index: 9999;
}

#noscript-box {
    position: fixed;
    top: 30%;
    left: 50%;
    background-color: rgb(255, 191, 191);
    border: 1px solid rgb(210, 93, 88);
    width: 300px;
    margin-left: -150px;
    padding: 11px 15px;
    line-height: 1.3;
    color: #FF0000;
    text-shadow: 0 1px 0 rgb(255, 255, 255);
    font-size: 12px;
    text-align: center;
    border-radius: 4px;
    z-index: 9999;
}

/* ****************** */
/*       BUTTONS      */
/* ****************** */
.btn-fb {
    display: inline-block;
    padding-left: 40px;
    height: 42px;
    background: transparent url("/images/fb-btn-l.png") no-repeat;
    vertical-align: top;
    color: #fff;
    font-weight: bold;
    margin-top: 10px;
}

.btn-fb:hover {
    color: #fff;
}

.btn-fb > span:first-child {
    display: block;
    float: left;
    height: 18px;
    background: transparent url("/images/fb-btn-bg.png") repeat-x;
    padding: 12px 10px;
}

.btn-fb:hover > span:first-child {
    text-decoration: underline;
}

.btn-fb > span:last-child {
    display: block;
    float: left;
    height: 42px;
    width: 10px;
    background: transparent url("/images/fb-btn-r.png") no-repeat;
}

.fb-like {
    min-height: 20px;
}

/* ****************** */
/*       VIDEO        */
/* ****************** */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ****************** */
/*       PODIUM       */
/* ****************** */
.podium {
    margin-bottom: 20px;
}

.podium .table {
}

.podium .table .line {
    min-height: 50px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 10px;
}

.podium .table .line > div {
    height: 100%;
}

.podium .important {
    font-size: 20px;
    line-height: 25px;
    font-weight: bold;
}

.podium img {
    max-width: 50px;
    max-height: 50px;
}

/* ****************** */
/*        PAGER       */
/* ****************** */
.dataTables_wrapper .paginate_button,
.dataTables_wrapper .paginate_active,
.dataTables_wrapper .dataTables_info {
    float: left;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    margin: 14px 10px;
    text-shadow: 0 1px 0 #FFFFFF;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    margin: 13px 10px 13px 0;
}

.dataTables_wrapper .paginate_button, .dataTables_wrapper .paginate_active {
    background-color: #FFFFFF;
    border: 1px solid rgba(119, 156, 162, 0.37);
    border-radius: 4px 4px 4px 4px;
    box-shadow: 0 1px 3px 0 rgba(115, 163, 194, 0.11);
    cursor: pointer;
    display: block;
    font: 600 11px / 14px "Arial", "Helvetica Neue", Helvetica, sans-serif;
    height: 12px;
    margin: 0 0 0 8px;
    padding: 5px 10px;
    text-align: center;
    text-transform: uppercase;
}

.dataTables_wrapper .paginate_active,
.dataTables_wrapper .paginate_button:hover {
    color: rgba(38, 116, 205, 0.8);
    background-color: rgba(38, 116, 205, 0.2);
    border: 1px solid rgba(38, 116, 205, 0.6);
}

.dataTables_wrapper .paginate_button_disabled,
.dataTables_wrapper .paginate_button_disabled:hover {
    background-color: #FFF;
    text-shadow: 0 1px 0 #FFF;
    border: 1px solid rgba(119, 156, 162, 0.10);
    box-shadow: 0 1px 3px 0 rgba(115, 163, 194, 0);
    color: #DDD !important;
    cursor: pointer;
}

/* ****************** */
/*   LAYOUT SPECIFIC  */
/* ****************** */

/* ****************** */
/*        CUSTOM      */
/* ****************** */

    body {
        color: #404040;

            }

    
    .btn [class^="icon-"], [class*=" icon-"] {
        background-image: url("/img/glyphicons-halflings-white.png");
    }

    .btn {
        color: #FFFFFF;
        text-shadow: none;

        /* Background color reset */
        background-color: #4879ba;
        background-image: none;
        filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);

        border-color: #325582;
    }

    .btn.active, .btn:active {
        background-color: #7fa1cf;
        color: #FFFFFF;
    }

    .btn-group.open .btn.dropdown-toggle {
        background-color: #325582;
    }

    .btn:hover {
        color: #FFFFFF;
        background-color: #325582;

        -webkit-transition: none;
        -moz-transition: none;
        -ms-transition: none;
        -o-transition: none;
        transition: none;
    }


/* ****************** */
/*     APP SPECIFIC   */
/* ****************** */
        
            /*body {
    position: relative;
}*/

.layoutOpenNav {
    position: absolute;
    z-index: 9999;
    display: none;
    background-color: black;
    //height: 100vh;
    //width: 100vw;
    opacity: 0.7;
    color: white;
    top: 0;
    height: 100%;
    width: 100%;
}
.textOpenNav {
    font-size: 30px;
    font-weight: 800;
    padding-top: 30px;
}


#app_wrapper {
}

.btn {
    padding: 3px 15px;
    text-transform: uppercase;
    color: #4879ba;
    background-color: transparent;
    font-weight: bold;
    border-width: 2px;
}

ul {
    list-style: none;
    margin: 0 auto;
}

ul li {
    display: inline-block;
    vertical-align: middle;
}

h2 {
    font-size: 24px;
    line-height: 24px;
}

a:not(.btn) {
    color: inherit;
    text-transform: inherit;
    text-decoration: underline;
}

#app_wrapper {
    padding-bottom: 100px;
}

.question_container {
    position: relative;
    padding: 30px;
}

.question_tip {
/*    float: right;*/
/*    margin-top: 10px;*/

    text-align: right;
}

.question_tip .btn {
    padding: 3px 6px;
    //background-color: #4879ba;
}

.question_container h2 {
    margin-bottom: 20px;
}

.question_container input[type="radio"] {
    display: none;
}

.question_container input[type="radio"].hide_input {
    display: none;
}

.question_container label {
    padding: 10px 20px 10px 20px;
}

.question_container.question_enabled label, .question_container.question_disabled label {
    border-color: #4879ba;
    font-size: 18px;
    line-height: 25px;
    border-radius: 0;
    border-width: 0 0 1px 0;
    border-style: solid;
}

.question_container.question_enabled label:hover,
.question_container.question_enabled label:hover {
    background-color: rgba(72, 121, 186, 0.1);
}

.question_container.question_disabled label {
    cursor: auto;
}

.question_container ul li {
    margin: 10px 20px;
}

@media screen and (max-width: 767px) {

    .question_container ul li {
        margin: 10px -10px;
    }
}

.answer_img {
    position: relative;
    width: 250px;
    //height: 250px;
    display: block;
    //background-size: cover;
    //background-size: 100%;
    border-radius: 10px;
    margin: 0 auto;
}

.answer_img img.answer_picture {
    -moz-transform: scale(1.0);
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    transition: all 0.5s ease-in-out;
}

.answer_img:hover img.answer_picture {
    -moz-transform: scale(1.3);
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
}

.check_player {
    position: absolute;
    z-index: 999;
    top: 5px;
    left: 5px;
    border-radius: 100%;
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
}
.answer_text .check_player {
    position: relative;
    float: left;
    margin: -10px 5px;
    left: -10px;
}

.answer_img:hover .check_player,
.answer_text:hover .check_player {
    background: #4879ba;
}


.right_box {
    background-color: #51c291;
    padding: 10px;
    border-radius: 10px;
    letter-spacing: .05em;
    color: white;
}

.wrong_box {
    background-color: #df534e;
    padding: 10px;
    border-radius: 10px;
    letter-spacing: .05em;
    color: white;
}

.answer_picto {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.answer_img .icon_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 10px;
}

.answer_img .icon_container.right {
    background-color: #51c291;
}

.answer_img .icon_container.wrong {
    background-color: #df534e;
}

.answer_picto.correct {
    background: url('/images/ok.png') no-repeat;
}

.answer_picto.wrong {
    background: url('/images/cross.png') no-repeat;
}

#ranking_table {
    margin: 0 auto;
}

#ranking_table th {
    padding: 0 5px;
}

#partners_box li {
    margin: 5px;
}

#app_footer {
/*    position: absolute;*/
    bottom: 0;
    left: 0;
}

span.copyright {
    display: block;
    color: #ccc;
    font-size: .6em;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.audiojs { display:block; float:left; width:100%; background:none; box-shadow:none; text-align:center; }
.audiojs .play-pause{ display: inline-block; float:none!important; margin:3px 0; border:none; cursor:pointer; text-indent:-9000px; width: 127px;height: 30px;background: url('https://sb-filer.s3.amazonaws.com/custom_hachette_shadowhouse/jplayer-btn-extrait.jpg') no-repeat top left;position: static;float: left; padding: 0;}
.audiojs.playing .play-pause{ background-position: 0 -30px; }
.audiojs .scrubber{ display:none; }
.audiojs .time{ display:none; }
.audiojs .error-message{ display:none; }

.audiojs .play, .audiojs .pause {
    background: none;
}    
        