/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    height: 99%; /* important */
    box-sizing: border-box; /* important */
}

*, /* important */
*:before, /* important */
*:after { /* important */
    box-sizing: inherit; /* important */
} /* important */

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    position:relative; /* important */
    margin:0; /* important */
    padding-bottom:6rem; /* important */
    min-height:100%; /* important */
}

header {
    width:90%;
    margin:8px auto 8px auto;
}

    header .logo {
        max-width:400px;
        width:50%;
    }

nav.top {
    position: absolute;
    top:100px;
    background-color: #eee;
    width:100%;
}

article {
    width:90%;
    margin:80px auto 0 auto;
    padding: 10px;
}
.even { background-color: white; }
.odd { background-color: #F5F5F5; }
.red { background-color: #FFDFDF; }

#idPageMain { padding: 2px 8px 2px 2px; width:1300px; margin-left:auto; margin-right: auto; }
.divENTETE {
    text-align: right;
    font-weight: bold;
    background-color: #EEEEEE;
    border: 1px solid silver;
    margin: 5px 4px 0px 4px;
    padding: 2px 2px 2px 2px;
}
.divCORP {
    background-color: #fffef2;
    border: 1px solid #EFEFEF;
    border-right: 3px solid silver; border-bottom: 2px solid gray;
    margin: 3px 4px 0px 4px;
    padding: 2px 2px 2px 2px;
}
.boutonClass { 
    /*background-position: center top;
    background-repeat: repeat-x;
    background-image: url(btnBg.gif);*/
    background-color: red;
    border: 1px solid #ABC3D7;
    color: white;
    font: 400 10pt Georgia,serif; 
    font-weight: normal;
    vertical-align: middle;
    height:21px;
}
.boutonClass:hover {
    color: #FFFFFF;
    background-image: none;
    background-color: white;
    border: 1px solid #0076BD;
    cursor: pointer;
    color: red;
}
.boutonDisabledClass {
    background-position: center top;
    background-repeat: repeat-x;
    background-image: url(btnBg.gif);
    background-color: #ECF1F4;
    border: 1px solid #ABC3D7;
    color: gray;
    font-size: 8pt;
    font-weight: normal;
    vertical-align: middle;
    /*filter: alpha(opacity=50); opacity: 0.5; -moz-opacity: 0.5;*/
}
.boutonClassIndex { 
    /*background-position: center top;
    background-repeat: repeat-x;
    background-image: url(btnBg.gif);*/
    background-color: #EAE9B4;
    border: 1px solid #ABC3D7;
    color: #000000;
    font-size: 8pt;
    font-weight: normal;
    vertical-align: top;
    height:16px;
}
.boutonClassIndex:hover {
    color: yellow;
    background-image: none;
    background-color: #0095EE;
    border: 1px solid #0095EE;
    cursor: pointer;
}
.boutonDisabledClassIndex {
    background-position: center top;
    background-repeat: repeat-x;
    background-image: url(btnBg.gif);
    background-color: #ECF1F4;
    border: 1px solid #ABC3D7;
    color: gray;
    font-size: 8pt;
    font-weight: normal;
    vertical-align: middle;
    /*filter: alpha(opacity=50); opacity: 0.5; -moz-opacity: 0.5;*/
}
/* ------------------------------------- TABLES - formulaires */

table.noborder { border-spacing: 1; border-collapse: separate; }
table.noborder th { border: 0; text-align: left; vertical-align: top; padding: 1px 2px 0 2px; }
table.noborder td { vertical-align: top; }
table.noborder input[type="text"] { text-transform: none; }
table.noborder img { vertical-align: top; }

/* ------------------------------------- TABLES - listes */
.listTABLE { border: 0px; border-spacing: 0px; border-collapse: collapse; }
.listTABLE tbody tr { height: 1em; }
.listTABLE tbody td { }
.listTABLE th { background-color: #ADABAB; text-align:left; }
.listTH {
    /*background-image: url(listViewBg.gif);*/
    background-image: -webkit-linear-gradient(top, red 0%, #EEEEEE 100%);
    background-image:    -moz-linear-gradient(top, red 0%, #EEEEEE 100%);
    background-image:     -ms-linear-gradient(top, red 0%, #EEEEEE 100%);
    background-image:      -o-linear-gradient(top, red 0%, #EEEEEE 100%);
    background-image:         linear-gradient(top, red 0%, #EEEEEE 100%);
    border: 0px;
    border-bottom: 1px solid #3A618D;
    color: black;
    font-weight: bold;
    height: 20px;
    padding-top: 3px;
    padding-left: 5px;
    padding-right: 5px;
    text-align: left;
}
.listTH a { color : #FCFAB8;}
.listLABEL {
    background-image: url(listViewBg.gif);
    border: 0px;
    border-bottom: 1px solid #3A618D;
    color: #E7F2FF;
    font-weight: bold;
    height: 20px;
    padding-left: 5px;
    padding-right: 5px;
    text-align: left;
    display:block;
    float:left;
}

footer {
    position: absolute; /* important */
    bottom:0; /* important */
    right:0; /* important */
    left:0; /* important */
    padding:.5rem; /* important */
    background-color:red;
}
    footer a {
        font-size:90%;
        font-weight: 800;
        color:white;
        text-decoration: none;
        cursor: pointer;
        margin-right:30px;
    }

    footer a:hover {
        text-decoration: underline;
    }

p.construction {
    width:100%;
    text-align:center;
    font: 400 18pt arial;
    color: gray;
}

nav ul {
    position:relative;
    width:90%;
    margin:0 auto;
    padding:0;
    list-style-type:none;
    z-index:1000;
}

    nav.top ul li {
        background: #eee;
        border-right: 1px solid #d1d1d1;
        float: left;
    }

    nav.top ul li a {
        display: block;
        padding: 9px 30px 8px;
        font-family: TheSansGLS-Bold, Helvetica, Arial, Verdana, sans-serif;
        font-size: 14px;
        line-height: 16px;
        color: #172053;
    }

    nav.top ul li a.home {
        background: url('../img/icons.png') -48px -575px no-repeat;
        padding: 0;
        width: 51px;
        height: 33px;
        display:block;
        text-decoration: none;
    }



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
