/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #e5a1b1;
    text-shadow: none;
}

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

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

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}
input[type=text],
input[type=tel],
input[type=email],
input[type=password],
textarea {
    border:1px solid #c9c9c9;
    background:#e8e8e8;
    padding:5px;
}

img {
    max-width: 100%;
    height:auto;
}
/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 16px/26px Helvetica, Helvetica Neue, Arial;
    /*min-width: 680px;*/
}

.wrapper {
    width: 90%;
    margin: 0 5%;
    /*min-width: 680px;*/
}

/* ===================
    ALL: Orange Theme
   =================== */

.header-container {
    background: url('/templates/aghea/img/bg_header.png') repeat-x 0 0;
    height:211px;
    padding:20px 0 0 0;
}


.footer-container {
    background: #90394e;
}

.title {
    /*display:block;*/
    /*background:url('/templates/aghea/img/logo_aghea.png') no-repeat 0 0;*/
    /*width:186px;
    height:157px;*/
    margin:0;
    padding:0;
}
@media (max-width:480px){
    .title img {
        width:40%;
        height:auto;        
    }
}
.title span {
    display:none;
}


.header-top {
    height:175px;
    position:relative;
}


.main-container {
    
    background:none;
}


.espace-adherent {
    position:absolute;
    top:0;
    right:0;
    text-align:center;
    background:#93de73;
    padding:5px 20px;
}
.espace-adherent a {
    color:#444444;
    text-decoration:none;
    font-size:12px;
    text-transform:uppercase;
    font-weight:600;
}
.espace-adherent a:hover {
    color:#fff;
    
}
.profil-adherent {
    position:absolute;
    top:40px;
    right:0;
    text-align:right;
    padding:0;
}
.profil-adherent a {
    color:#444444;
    text-decoration:none;
    font-size:12px;
    font-weight:600;
}
.profil-adherent a:hover {
    color:#444444;
    text-decoration:underline;
    
}
.hotline {
    background:url('/templates/aghea/img/aghea_telephone.png') no-repeat 0 0;
    position:absolute;
    bottom:20px;
    right:0;
    padding:15px 0 3px 43px;
    border-bottom:1px solid #90394e;
    color:#90394e;
    font-size:20px;
}
.hotline span {
    border-top:1px solid #90394e;
    padding:5px 5px 5px 0;
}

/* ==============
    MOBILE: Menu
   ============== */
nav {
    width:100%;
    min-height:36px;
    margin:0;
    padding:0;
    background:#ff931e; 
}


nav ul {
    margin: 0;
    padding:0;
}
nav ul li {
    margin: 0;
    padding: 5px 2%;
    white-space:nowrap;
    position:relative;
    float:left;
    text-align: center;
    border-left:1px solid #7afc43;
}

nav ul li:first-of-type {
    border-left:none;
}

nav ul li a {
    display:block;
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-weight: 300;
    text-transform:uppercase;
    color: white;
    font-size:13px;
}

nav a:hover,
nav a:visited {
    color: white;
}

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

nav a.actif {
    font-weight:600;
}


nav ul li ul {
    display:none;   
    margin: 0;
    padding:8px 0 0 0;
    position:absolute;
    z-index:999;
    top:36px;
    left:0;
    background:url('/templates/aghea/img/arrow_submenu.png') no-repeat 20px 0; 
}

nav ul li ul li {
    margin: 0;
    padding:0;
    float:none;
    border-left:none;
    display:block;
    min-width:150px;
    padding: 5px 20px 5px 10px;
    text-align: left;
    background:#ff931e; 
    border-bottom:1px solid #d17b20;
    
}

nav ul li ul li:last-of-type {
    border-bottom:none;
}
nav ul li ul li a {
    display:block;
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-weight: 300;
    text-transform:none;
    font-style:italic;
    color: white;
    font-size:13px;
}


nav ul li:hover > ul {
    display:block;   
}
/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0 30px 20px;
    background:#fff;
}

.main article h1 {
    font-size: 20px;
    font-weight:300;
    color:#90394e;
}
.main article h2 {
    font-size: 16px;
    font-weight:300;
    color:#90394e;
    margin-top:30px;
}
.main article p {
    font-size: 13px;
    line-height: 18px;
    font-weight:300;
    color:#2d2d2d;
}
.main article a {
    font-size: 13px;
    color:#ff931e;
    text-decoration:underline;
}
.main article a:hover {
    font-size: 13px;
    color:#2d2d2d;
    text-decoration:underline;
}

.main article table,
.main article ul li {
    font-size: 13px;
}

.main aside {
    padding:0;
    margin:0;
}

.footer-container footer {
    color: white;
    padding: 20px 0 20px 20px;
}
.main aside .aside-actualites {
    margin:0;
    padding:0;
}
.main aside .aside-actualites h3 {
    font-size: 20px;
    font-weight:300;
    color:#90394e;
    margin:13px 0 10px 0;
}
.main aside .aside-actualites p {
    line-height:15px;
    text-align:left;
    margin:0;
    padding:5px 0;
}
.main aside .aside-actualites p span.date {
    font-size: 13px;
    font-weight:600;
    color:#2d2d2d;
    display:block;
    float:left;
    width:75px;
    height:30px;
    margin:0;
    padding:0px 0 0 0;
}
.main aside .aside-actualites p span.titre {
    display:block;
    margin:0;
    padding:0;
}
.main aside .aside-actualites p span.titre a {
    line-height:15px;
    font-size: 13px;
    font-weight:600;
    color:#ff931e;
    margin:0;
    padding:0;
    text-decoration:none;
    display:block;
}
.main aside .aside-actualites p span.titre a:hover {
    color:#2d2d2d;
    text-decoration:none;
}


.actualite-liste {
    background:#e8e8e8;
    padding:5px 10% 10px 10%;
    width:78%;
    margin-bottom:20px;
}


.footer-container footer ul {
    float:left;
    width:13%;
    list-style:none;
    margin:0;
    padding:0 20px;
    border-left:1px solid #6e2b3b;
    min-height:70px;
}
.footer-container footer ul:first-of-type {
    width:13%;
    margin:0;
    padding:0 20px 0 0;
    border-left:none;
}






.footer-container footer ul li {
    margin:0;
    padding:3px 0;
    font-size:13px;
    line-height:15px;
}
.footer-container footer ul li a {
    color:#d8d8d8;
    text-decoration:none;
    font-size:13px;
    line-height:13px;
    margin:0;
    padding:0;
}
.footer-container footer ul li a:hover {
    color:#fff;
    text-decoration:underline;
}



.footer-container footer address {
    float:left;
    width:25%;
    margin:0;
    padding:0;
    font-size:13px;
    line-height:18px;
    font-style:normal;
    color:#d8d8d8;
}

.footer-container footer address strong {
    color:#fff;
}


.footer-container footer address a {
    color:#d8d8d8;
    text-decoration:none;
}
.footer-container footer address a:hover {
    color:#fff;
    text-decoration:underline;
}

a[href^=tel]{
    color:inherit;
    text-decoration:none;
}



@media only screen and (max-width: 768px) {
    /*nav {display:none;}
    .footer-container {display:none;}*/
}



/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {
   /* nav a {
        float: left;
        width: 11%;
        margin: 0 0.6%;
        padding: 5px 2%;
        margin-bottom: 0;
        border-left:1px solid #7afc43;
    }

    nav li:first-child a {
        margin-left: 0;
        border-left:none;
    }

    nav li:last-child a {
        margin-right: 0;
    }*/

}

@media only screen and (min-width: 768px) {

    body {
        background: #90394e;
    }

    .main article {
        float: left;
        width: 57%;
    }
    .main.fullpage article {
        width: 100%;
    }

    .main aside {
        
        padding: 0px 5% 10px 5%;
        float: right;
        width: 28%;
        border-left:1px solid #d0d0d0;
    }

    .main-container {
        
        background:url('/templates/aghea/img/bg_degrade.jpg') repeat-y center top;
    }


}

@media only screen and (min-width: 1140px) {

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
}

/* ==========================================================================
   Custom Styles
   ========================================================================== */



.main article.login-block {
    width:50%;
    border:1px solid #c9c9c9;
    padding:20px;
    position:relative;
    margin:0 auto;
    float:none;
}
.locker {
    position:absolute;
    top:-24px;
    left:50%;
    margin-left:-24px;
}
.login-form label {
    display:block;
    width:40%;
    text-align:right;
    float:left;
    line-height:25px;
}
.login-form input[type=text],
.login-form input[type=password]{
    float:left;
    margin-left:20px;
}
.login-form input[type=radio]{
    margin-left:20px;
}
.login-form p {
    margin-top:10px;
}
.main article .login-form h2 {
    font-size: 20px;
    font-weight:300;
    color:#90394e;
    border-bottom:1px solid #c9c9c9;
}
button.submit {
    background:#90394e;
    color:#fff;
    border:none;
    padding:5px 20px;
    margin:0 5px;
}
button.cancel {
    background:#d8d8d8;
    color:#2d2d2d;
    border:none;
    padding:5px 20px;
    margin:0 5px;
}
.radiogrp {display:block;margin-top:4px;}
.main article.profil-block {
    width:50%;
    border:1px solid #c9c9c9;
    padding:20px;
    position:relative;
    margin:0 auto;
    float:none;
}


.main article.contact-block {
    width:100%;
    position:relative;
    margin:0 auto;
    float:none;
}
.contact-form {
    width:50%;
    float:left;
}
.contact-map {
    width:50%;
    float:left;
    
}
.contact-form input,
.contact-form textarea {
   width:80%;
}
.contact-form textarea {
   height:154px;
}
@media only screen and (max-width: 768px) {
    .contact-form {
        width:100%;
        float:none;
    }
    .contact-map {
        width:100%;
        float:none;
        
    }    
}

/*
@media only screen and (max-width: 768px) {
 

    .main article.login-block {
        width:70%;
    }   
}*/
/* ==========================================================================
   Helper classes
   ========================================================================== */
.error-msg,
.main article p.error-msg {
    color:red;
    font-weight:bold;
    text-align:center;
}
.success-msg,
.main article p.success-msg {
    color:green;
    font-weight:bold;
    text-align:center;
}


.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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


    @page {
        margin: 0.5cm;
    }

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

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