/** --------- DOCUMENT --------- **/

@import url(skeleton.css);
@import url(eres_common.css);

body {
    font-family: 'Roobert Light', Arial, sans-serif;
    font-size: 14px;
    color: #003830;
    background: #BEE3CA;
    margin: 0;
}

* {
    box-sizing: border-box;
}

main {
    display: block;
}

a {
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

pre, blockquote, dl, figure, table, p, ul, ol, form {
    margin-bottom:  15px;
}

th:first-child, td:first-child {
    padding-left: 15px;
}

.eres-table {
    margin-bottom: 25px !important;
}

/** --------- HTTP ERROR --------- **/

section.http-error h1 {
    font-size: 115px;
    font-weight: 100;
    border-bottom: 2px solid #e4e4e4;
    padding: 0 0 10px;
    box-shadow: 0 -35px 45px rgba(0, 0, 0, 0.06) inset;
}

section.http-error h1 small {
    font-size: 35px;
    vertical-align: middle;
    color: #009879;
    border-left: 2px solid #e4e4e4;
    padding: 11px;
    display: inline-block;
    text-transform: uppercase;
}

section.http-error  p.http-infos {
    font-size: 24px;
    padding: 15px;
    font-weight: 100;
}

/** --------- UTILS --------- **/

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-small {
    font-size: 0.8em;
}

.text-bold {
    font-weight: bold;
}

.notice {
    color: red;
}

.hide {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

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

tr.invisible {
    display: none;
}

.required:after {
    content: ' *';
    color: red;
}

.left {
    float: left;
}

.right {
    float: right;
}

.btn-block {
    display: block;
    width:  100%;
}

table.eres-table td {
	padding: 3px;
}

table.eres-table > tbody > tr:last-child > td {
	border: 0;
}

/** --------- SKELETON --------- **/

div.row {
    margin-bottom: 10px;
}

/** --------- TOOLTIP --------- **/

.tooltip {
    position: absolute;
    width: 220px;
    font-size: 12px;
    background: #009879;
    border: 1px solid #d8d8d8;
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.19);
    padding: 5px;
    color: #ffffff;
    text-align: center;
    animation: tooltipShow 0.5s;
}

.tooltip:before {
    right: 100%;
    top: 50%;
    border: solid rgba(255, 255, 255, 0);
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    border-color: rgba(194, 225, 245, 0);
    border-right-color: #009879;
    border-width: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/** --------- EURO/PERCENT INPUT --------- **/

div.euro > input,
div.percent > input {
    width: 240px;
    margin: 0;
    text-align: center;
    background: transparent;
    border-color: transparent;
    border-bottom: 1px dotted #a5a5a5;
}

/** --------- SUBTITLE --------- **/

.subtitle {
    font-weight: 300;
    font-size: 18px;
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 7px;
    margin: 0 0 25px;
}

/** --------- HELP ICON --------- **/

.help {
    padding: 3px 7px;
    border: 1px solid grey;
    border-radius: 100%;
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

.help > span {
    display: none;
}

.help-text {
    color: grey;
    font-size: 12px;
    margin-left: 5px;
}

/** --------- HEADER --------- **/

body > header {
    background: #fff;
}

body > header .logo {
    padding: 15px;
    font-size: 22px;
    color: #003830;
    position: relative;
}

body > header .logo a {
    text-decoration: none;
}

body > header .logo a.logout {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #d83a3a;
}

body > header .logo a img {
    display: inline-block;
    vertical-align: middle;
}

body > header h1 {
    color: #FFF;
    font-family: 'Roobert Light', Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
    text-transform: uppercase;
    padding: 10px 20px;
    background: #009879;
    margin: 0;
}

.offline {
    background: #b4371a !important;
}

/** --------- MAIN --------- **/

main.container {
    padding-top: 15px;
    background: linear-gradient(#d0d0d0 0%, #fff 15px);
}

/** --------- FOOTER --------- **/

body > footer ul {
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

body > footer ul li::marker {
    content: none;
}

body > footer a, body > footer a:hover {
    color: #003830;
}

/** --------- SECTION --------- **/

main section {
    padding: 0 10px;
}

main section:not(:last-child) {
    margin-bottom: 10px;
}

main section .title {
    font-size: 22px;
    font-weight: 400;
}


/** --------- FORMS --------- **/

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"] {
	font-family: 'Roobert Light', Arial, sans-serif;
    color: #555;
    width: 100%;
    border: solid 1px #a5a5a5;
    margin: 0 10px 0 0;
    background: #fff;
    height: 25px;
    border-radius: 0;
    padding: 10px;
    height: auto;
    transition: all 250ms;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus  {
	border: 1px solid #009879 !important;
    box-shadow: 0 0 3px #3091d4;
    color: #009879;
}

input.error {
    border: 1px solid red !important;
}

span.error, b.error {
    color: red;
    font-weight: bold;
}

#errors {
    color: #cc0000;
    margin: 10px 0;
    display: none;
}

#errors ul {
    margin: 10px 0;
}

#errors li {
    margin-bottom: 5px;
}

button.submit:hover,
.button.submit:hover,
button.cancel:hover,
.button.cancel:hover {
    border-color: #009879;
    color: #009879;
}

.button.submit[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

button.selected, button.selected:hover {
    background: #5e839d;
    color: #fff;
    border-color: #142f41;
}

ul.field-error {
    background: #b4371a;
    color: #fff;
    list-style: none;
    margin: 0;
}

ul.field-error li {
    padding: 5px;
    margin: 0;
}

input.single {
    width: 35px;
}

input.double {
    width: 40px;
}

/** --------- LOGIN SECTION --------- **/

.well {
    border: 1px solid #e4e4e4;
    padding: 20px;
    margin-bottom: 20px;
}

section.login h3 {
    margin-top: 0;
}

section.login form {
    margin: 0;
}

section.login input {
    width: 260px;
    margin-right: 0;
    display: inline-block;
    vertical-align: middle;
}

section.login input.insee {
    padding-left: 5px;
    padding-right: 5px;
    letter-spacing: 5px;
    text-indent: 5.5px;
}

section.login .row:not(:last-child) {
    margin-bottom: 10px;
}

section.login label {
    line-height: 37px;
    margin-bottom: 0;
}

section.login .last-input {
    margin-bottom: 15px;
}

section.login footer.row {
    margin: 20px 0 0 0;
}

/** --------- PASSWORD SECTION --------- **/

section.reset-password h3 {
    padding-left: 15px;
}

section.reset-password #change_password_form_plainPassword_second {
    margin-bottom: 30px;
}

/** --------- SUBSCRIPTION SECTION --------- **/

section.subscription-choice ul {
    list-style: none;
}

section.subscription-choice input[type="checkbox"] {
    display: none;
}

section.subscription-choice input[type="checkbox"] + label {
    display: block;
    position: relative;
    padding-left: 35px;
    background: #009879;
    border-color: #009879;
    color: #fff;
    font-weight: 300;
}

section.subscription-choice input[type="checkbox"] + label:before {
    content: '\f096';
    position: absolute;
    top: 50%;
    left: 7px;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 25px;
    transform: translateY(-50%);
    opacity: .5;
    transition: all 150ms ease;
}

section.subscription-choice input[type="checkbox"]:checked + label:before {
    content: '\f046';
    opacity: 1;
}

section.subscription-choice input[type="checkbox"]:checked + label {
    font-weight: 600;
}

section.mandatory-document {
    margin-top: 50px;
}

section.mandatory-document div.upload label {
    width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

section.mandatory-document .upload > label {
    position: relative;
    cursor: pointer;
}

section.mandatory-document .upload > label > input {
    cursor: pointer;
    opacity: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    margin: 0;
}

section.mandatory-document .upload input + label:before {
    content: '\f1c1';
    font: normal normal normal 14px/1 FontAwesome;
    margin-right: 5px;
    font-size: 13px;
}

/** --------- PERSONNAL PAYMENT SECTION --------- **/

section.personnal-payment label, .button {
	margin-bottom: 0;
}

section.personnal-payment .three.columns {
    padding-top: 7px;
}

section.personnal-payment .subtitle {
    margin-top: 25px;
    font-size: 20px;
}

section.personnal-payment a.cancel {
    padding: 0 15px;
    vertical-align: top;
}

section.personnal-payment a:not(.cancel),
section.personnal-payment div.upload label {
    width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

section.personnal-payment .upload > label {
    position: relative;
    cursor: pointer;
}

section.personnal-payment .upload > label > input {
    cursor: pointer;
    opacity: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    margin: 0;
}

section.personnal-payment .upload input + label:before {
    content: '\f1c1';
    font: normal normal normal 14px/1 FontAwesome;
    margin-right: 5px;
    font-size: 13px;
}

section.payment-rib {
    padding: 0 0;
}


/** --------- REPLY SECTION --------- **/

section.reply-form {
    overflow: auto;
    width: auto;
}

section.reply-form a {
    color: #003830;
    text-decoration: none;
}

section.reply-form a:hover {
    text-decoration: underline;
}

/** --------- PARTICIPATION SECTION --------- **/

section.interessement-participation-form {
    overflow: auto;
    width: auto;
}

section.interessement-participation-form a {
    color: #003830;
    text-decoration: none;
}

section.interessement-participation-form a:hover {
    text-decoration: underline;
}

section.interessement-participation-form .eres-table {
    margin-bottom: 0 !important;
}

section.interessement-participation-form .total-error-text {
    margin-top: 15px;
    color: red;
    font-weight: bold;
}

section.interessement-participation-form .totalversement-min-text {
    margin-top: 15px;
    color: red;
    font-weight: bold;
}

section.interessement-participation-form .totalversement-max-text {
    margin-top: 15px;
    color: red;
    font-weight: bold;
}

section.interessement-participation-form .totalversement-plafond-text {
    margin-top: 15px;
    color: red;
    font-weight: bold;
}

section.interessement-participation-form .totalinterressement-error-text {
    margin-top: 15px;
    color: red;
    font-weight: bold;
}

section.interessement-participation-form .totalparticipation-error-text {
    margin-top: 15px;
    color: red;
    font-weight: bold;
}

section.interessement-participation-form .hide {
    display: none !important;
}

/** --------- CHOIX ACTION SECTION --------- **/

section.support-choice .eres-table td p {
    vertical-align: middle;
    display: inline;
    padding-left: 10px;    
}

/** --------- CONFIRM SECTION --------- **/

section.confirmation table {
	margin-bottom: 20px !important;
    margin-top: 20px;
}

section.confirmation table td {
	padding: 10px;
}


section.confirmation table td p {
    vertical-align: middle;
    display: inline;
    margin-bottom: 0; 
}

section.confirmation table > tbody > tr > td:first-child {
	font-size: 17px;
    font-weight: 100;
}

section.confirmation label {
	vertical-align: middle;
    cursor: pointer;
}

section.confirmation label p:first-of-type { 
    display: inline-block;
} 

section.confirmation hr {
    margin: 10px 0 20px;
}


/** --------- LOGIN --------- **/

label[for="remember_me"] {
    display: inline;
}

/** --------- FORM VALIDATION --------- **/

section.form-validation button,
section.form-validation a {
    margin-bottom:  0;
    vertical-align: middle;
    line-height: 36px;
}

section.form-validation button.submit, section.form-validation button.submit:hover {
    background: #009879;
    color: #fff;
    border-color: #009879;
}


/** --------- DOCUMENTATION --------- **/

ul.documentation {
    margin: 0;
    padding: 5px 0;
    list-style: none;
}

ul.documentation a.button {
    display: block;
    text-align: left;
}

/** --------- ALERT --------- **/

.alert {
    margin: 0 auto 15px;
    color: #fff;
    padding: 15px;
    border-top: 3px solid;
    border-bottom: 3px solid;
    font-size:  14px;
}

.alert.success {
    background: #009879;
    border-color: #009879;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 0 #74a919;
}

.alert.success:before {
    content: '\f05d';
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 45px;
    color: #fff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    vertical-align: middle;
    margin-right: 15px;
}

.alert.error {
    background: #b4371a;
    border-color: #b4371a;
}

.alert.info {
    background: #5e839d;
    border-color: #5e839d;
    text-shadow: 0 1px 0 rgba(43, 85, 114, 0.60);
}

.alert.error h4 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 17px;
    padding-bottom: 9px;
    border-bottom: 1px solid #b4371a;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.23);
    margin-bottom: 10px;
}

.alert.error ul {
    margin-bottom: 0;
}

/** --------- ANIMATIONS --------- **/

@keyframes tooltipShow {
    0% {
        opacity: 0;
        transform: translateX(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/** --------- RESPONSIVE --------- **/

@media (max-width: 1024px) {
    img {
        max-width: 100%;
        height: auto;
    }
    .container {
        padding: 0;
    }
    .container, button, a.button:not(.trash) {
        width: 100%;
    }
    body > header > .logo,
    body > header > h1 {
        text-align: center
    }
    body > header > .logo > span {
        display: block;
    }
    body > header > .logo > span:before {
        display: none;
    }

    button, a.button {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
    section.reply-form {
        padding: 0;
    }
    body > footer ul li {
        text-align: center;
        margin: 0;
    }
    section.subscription-choice input[type="checkbox"] + label {
        height: auto;
        white-space: normal;
    }
}

@media (max-width: 700px) {
    .modal .inner {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .campaign-logo {
        text-align: center;
        margin-bottom: 25px;
    }
    section.login div.ref-bulletin,
    section.login div.insee {
        width: 100%;
    }
    section.personnal-payment a,
    section.personnal-payment div.upload label,
    div.euro,
    div.euro > input,
    div.percent > input {
        width: 100% !important;
    }
    div.euro > input,
    div.percent > input {
        width: 95% !important;
    }
    .help {
        border: 0;
        border-radius: initial;
        font-family: inherit;
        display: block;
        text-align: left;
        padding: 10px 0;
        color: grey;
    }

    .help:before {
        content: '';
    }

    .help > span {
        display: block;
    }
}

@media (max-width: 445px) {
    body > header > .logo > span {
        font-size: 15px;
        line-height: 20px;
        margin-top: 10px;
    }
}
