/*
 * Licensed to Jasig under one or more contributor license
 * agreements. See the NOTICE file distributed with this work
 * for additional information regarding copyright ownership.
 * Jasig licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file
 * except in compliance with the License.  You may obtain a
 * copy of the License at the following location:
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, 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%; vertical-align: baseline; background: transparent; }
body { line-height: 1; }
nav ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
a { margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
ins { background-color: #ff9; color: #000; text-decoration: none; }
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
table { border-collapse: collapse; border-spacing: 0; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #cccccc; margin: 1em 0; padding: 0; }
input, select { vertical-align: middle; }
body { font: 400 62.5%/1 Arial,sans-serif; line-height: 1.4em; background: #FFF; }

#container { width: 95%; margin: 0 auto; }
header, #content { background: #fff;}
#content { -webkit-border-bottom-right-radius: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -moz-border-radius-bottomleft: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; }

header { padding: 0px;}
header #logo { display: block; width: 300px; height: 82px; text-indent: -999em; background: url(../images/logo.png) no-repeat; margin: 0 auto; }
header #logo:hover { background: url(../images/loggo.png) no-repeat; }
header h1 { color: #333; padding: .4em .4em; font-size: 2em; font-weight: normal; text-align: center; }

#content { padding: 10px; overflow: hidden; }

#msg { padding: 20px; margin-bottom: 10px; text-align: center;}
#msg h2 { font-size: 1.4em; margin-bottom: 1em; }
#msg.errors { border: 1px dotted #BB0000; color: #BB0000; padding-left: 100px; background: url(../images/error.gif) no-repeat 20px center; }
#msg.success { border: 1px dotted #390; color: #390; padding-left: 100px; background: url(../images/confirm.gif) no-repeat 20px center; }
#msg.info { border: 1px dotted #008; color: #008; padding-left: 100px; background: url(../images/info.gif) no-repeat 20px center; }
#msg.question { border: 1px dotted #390; color: #390; padding-left: 100px; background: url(../images/question.png) no-repeat 20px center; }
#msg.warn { border: 1px dotted #960; color: #960; padding-left: 100px; background: #ffbc8f url(../images/info.gif) no-repeat 20px center; }
#msg.warn .message { color: black; margin: 1em; font-size: 1.4em }

#login { width: 28em; margin: 1.5em auto; -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1); }
#fm1 { padding: 20px; background: #F6F6F6; border: none;}
#fm1 h2 { font-size: 1.5em; font-weight: normal; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #E0E0E0; }
#fm1 .row { margin-bottom: 10px; }
#fm1 .row label { display: block; color: #555555; }
#fm1 .row input[type=text],
#fm1 .row input[type=password] { padding: 6px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; border: 1px inset #FFF; background: #FFFFF3; }
#fm1 .row input[type=password] { background: #FFF8F8; }
#fm1 .row.check { padding-bottom: 10px; margin-bottom: 10px; color: #777; font-size: 11px; border-bottom: 1px solid #E0E0E0; }
#fm1 .row.check label { display: inline; }
#fm1 .row .btn-submit { border: 1px outset #AAA; padding: 3px; margin-right: 4px; }
#fm1 .row .btn-reset { border: 0; background: none; color: #555; text-transform: lowercase; border-left: 1px solid #E0E0E0; }
#fm1 .row .btn-submit:hover,
#fm1 .row .btn-reset:hover { cursor: pointer; }

#sidebar { width: auto; margin-top: 1em;}
#sidebar .sidebar-content { padding-left: 20px; }
#sidebar .sidebar-content p { margin-bottom: 1.4em; text-align: center;}

div#list-languages { position: relative; }
#list-languages h3 { text-align: center; }
#list-languages ul { list-style: none; }
#list-languages ul li { display: inline-block; padding: 0px 10px; border-right: 1px solid #e2e2e2; }
#list-languages ul li:last-child { border: 0; line-height: 1.4em; }
#list-languages ul li a { text-decoration: none; color: #333; }

footer { color: #999; margin: 20px 0; }

/* si l'ecran est assez haut, coller les langues tout en bas */
@media only screen and (min-height: 550px) and (min-width: 650px) {
  div#list-languages { position: fixed; bottom: 15px; width: 95%;}
}

/* faux centrage vertical du contenu principal */
@media only screen and (min-height: 500px) and (min-width: 650px) {
  #container header h1 { margin-top: 20px; }
}
@media only screen and (min-height: 550px) and (min-width: 650px) {
  #container header h1 { margin-top: 40px; }
}
@media only screen and (min-height: 630px) and (min-width: 650px) {
  section.row:nth-child(2) > label, section.row:nth-child(3) > label { font-size: 12px;}
  #container header { margin-top: 10px; }
  #container header h1 { margin-top: 60px; }
}
@media only screen and (min-height: 780px) and (min-width: 650px) {
  section.row:nth-child(2) > label, section.row:nth-child(3) > label { font-size: 13px;}
  #container header { margin-top: 20px; }
  #container header h1 { margin-top: 130px; }
}
@media only screen and (min-height: 950px) and (min-width: 650px) {
  #container header h1 { margin-top: 200px; }
}

/* mode 'pas grand/plein ecran' */
@media only screen and (max-width: 960px) { 
  #container { width: 100%; }
  #content { -webkit-border-bottom-right-radius: 0px; -webkit-border-bottom-left-radius: 0px; -moz-border-radius-bottomright: 0px; -moz-border-radius-bottomleft: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; }
}
#fm1 .row .btn-submit { outline: none; -webkit-appearance: none; -webkit-border-radius: 0; border: 0; background: #333; color: white; font-weight: bold; padding: 5px 10px; -webkit-border-radius: .3em; -moz-border-radius: .3em; border-radius: .3em; }
/* mode 'mobile' */
@media only screen and (max-width: 650px) { 
  #login { width: 100%; }
  #fm1 .row input[type=text], 
  #fm1 .row input[type=password] { width: 100%; padding: 10px; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; }
  #fm1 .row .btn-submit { outline: none; -webkit-appearance: none; -webkit-border-radius: 0; border: 0; background: #333; color: white; font-weight: bold; width: 100%; padding: 10px 20px; -webkit-border-radius: .5em; -moz-border-radius: .5em; border-radius: .5em; }
  #fm1 .row .btn-reset { display: none; }
  #sidebar { margin-top: 20px; }
  #sidebar .sidebar-content { padding: 0; }
}

@media only screen and (max-width: 500px) {
  header h1 { font-size: 15px; }
}

a.button {
    font-weight:bold;
    height:1.7em;
    padding:1.2em 1em .6em 1em;
    text-align:center;
    text-decoration:none;
    color:white;
    background-color:#79946c;
    border-top:1px solid #82b36c;
    border-left:1px solid #82b36c;
    border-right:1px solid #304228;
    border-bottom:1px solid #304228;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#big-buttons a.button {
    display:block;
    position:relative;
    font-size: 1.6em;
    margin:20px auto;
    width:200px;
    overflow: hidden;
    -moz-border-radius: 7px;
    border-radius: 7px;
    border-top:2px solid #82b36c;
    border-left:2px solid #82b36c;
    border-right:2px solid #304228;
    border-bottom:2px solid #304228;
}

a.button:hover {
    color:#ffff94;
    background-color:#819e73;
}

.button-down {
    border-top:1px solid #304228;
    border-left:1px solid #304228;
    border-right:1px solid #82b36c;
    border-bottom:1px solid #82b36c;
}

#big-buttons .button-down {
    border-top:2px solid #304228;
    border-left:2px solid #304228;
    border-right:2px solid #82b36c;
    border-bottom:2px solid #82b36c;
}
