/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

::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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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

html, body {
    height:100%;
    width: 100%;
    line-height: 1.2;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    overflow: hidden;
}

h1 {
    font-family: "mv boli", sans-serif;
    margin: 0;

}

h2 {
    margin:0;
}

section {
    max-height: 100%;
    width: 100%;
    position:relative;
    height: 100%;
}

section section {
    height: 100%;
}

p {
    margin:0 0 1em 0;
}

#footer {
    color:#fff;
}

/*    footer.absolute {
        position:absolute;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,0.5);
        width: 96%;
        font-size: 0.8em;
        padding: 0 2%;
    }

    footer.absolute p {
        margin: 5px 0;
    }*/

.floatLeft {
    float:left;
}

.floatRight {
    float:right;
}

.no_marge {
    margin:0;
}

.moitie {
    width: 36%;
    padding:2%;
}

.texte {
    background : rgba(255,255,255,0.4);
    text-shadow:1px 1px #bbb;
    color:#000;
}

.red {
    color:#a00;
}

.masque {
    /*overflow:hidden;*/
    height: 100%;
}

.trait_union {
    list-style: none;
}

.fleche {
   display:inline-block;
   height: 60px; 
   width: 60px;
   border-radius: 50px;
   background :rgba(133,173,204,0.62);
   border: 1px solid rgba(0, 0, 0, 0.2);
   transition:box-shadow 0.5s linear;
}

.fleche:hover {
    background: rgba(133,173,204,0.8);
    border: 1px solid rgba(0, 0, 0, 0.8);
    box-shadow: 3px 4px 10px #004 inset;
}

        .fleche span {
            background: url("../img/fleche.png")no-repeat;
            display: inline-block;
        }

    .fleche.bas {
        position: absolute;
        bottom:30px;
        left:43%;
    }

        .fleche.bas span{
            background-position:0 -77px;
            width: 100%;
            height: 51px;
            margin-top:15px;
            background-size: 100%;
        }
/*
    .fleche.haut {
        position: absolute;
        top:15px;
        right:15%;
    }*/

       /* .fleche.haut span{
            background-position:0 -50px;
            width: 100%;
            height: 26px;
            margin-top:15px;
            background-size: 100%;
        }*/

main > header {
    background: url("../img/head.png")no-repeat 0 0;
    background-size: 100% 100%;
    position:fixed;
    height: 180px;
    color: #ffffff;
    text-shadow:-2px 0 #000055;
    z-index: 5;
    box-shadow: 1px 3px 3px #555555 inset;
    width: 100%;
}

    main > header h2 {
        width: 17%;
        text-align: center;
    }

        main > header h2 a {
            background:url("../img/wosm.png")no-repeat 0 0;
            background-size: cover;
            display: inline-block;
            width: 100%;
            height: 95px;
            margin-top: 5px;
            transition:box-shadow 1s linear;
        }

        main > header h2 a:hover {
            box-shadow: 0px 0px 42px #005;
        }

#home article {
    background: url('../img/pratique.jpg')no-repeat 0 0;
    background-size:auto 100%;
}    

    article > div {
        width: 46%;
        padding:0 2% 2%;
        background: rgba(255,255,255,0.65);
        text-shadow : 1px 1px #fff;
        max-height: 84%;
        overflow-y :auto;
        height: auto;
    }

        article h1 {
            margin-bottom: 4%;
        }

        .liste_assoc   {
            margin-left: 10%;
        }

#main {
    height:100%;
}

    #main > header {
        position:absolute;
        z-index:5;
        width:160px;
        box-shadow: -3px 0 24px #334455 inset;
        background:#295a80;
        top: 0 ;
        height: 100%;
    }

        #btn-menu {
            width: 30px;
            height: 30px;
            padding: 5px;
            border:solid 1px #699AC0;
            background: #295A80;
            position: absolute;
            top:180px;
            right:-42px;
            display: none;
        }

        #btn-menu hr {
            color:#fff;
            margin:7px;
        }

        nav {
            margin-top:160px;
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            nav li {
                border-bottom: 1px solid #ebffff;
                border-top: 1px solid #ebffff;
            }

                nav a {
                    display:block;
                    text-align:center; 
                    color: #85adcc;
                    padding: 15px;
                    text-decoration: none;
                    transition:box-shadow,color 0.5s linear;
                }

                nav a:hover {
                    /*background:#fff;*/
                    box-shadow: 1px 1px 5px  #000 inset;
                    color:#fff;
                }

                nav a.active {
                    color:#c00;
                    background:#fff;
                    box-shadow: 6px 0px 7px #000 inset;
                }

    #main > header #footer {
        position: absolute;
        bottom: 0;
        text-align: center;
        padding: 5px;
        width: 150px;
    }

    #main main {
        height:100%;
    }

    #main section {
        float: left;
    }

        main article {
            height: 92%;
            margin-left: 158px;
            padding:2% 8%;
            position: relative;
            margin-top:115px;
        }

        /* Section disparue
        #marin article {
            background: url("../img/marin.jpg")no-repeat 0 0;
            background-size: cover
        }

        #marin .bottom.texte {
            position:absolute;
            padding:5px;
            bottom:50px;   
        }
        /*



        /*Les couts marin en chiffre*/
        #chiffre article {
            background: url("../img/chiffre.jpg")no-repeat 50px -50px;
            background-size: auto;
        }

        #chiffre article div {
            width: 80%;
            margin: auto;
        }

        #chiffre .texte {
            background:none;
        }


        #comission  article {
            background: url("../img/structure.jpg") no-repeat scroll 90% 0 rgba(0, 0, 0, 0);
            background-size:auto 100%;
        }



        #technique  article {
            background: url("../img/technique.jpg") no-repeat scroll 90px 0 rgba(0, 0, 0, 0);
            background-size:auto 85%;
        }

            #technique article > div {
                width:60%;
            }



       /* #pratique article {
            background: url("../img/pratique.jpg") no-repeat scroll 50% 0 rgba(0, 0, 0, 0);
            background-size:auto 100%;
        }*/



/*
    #footer {
        background: #e5e5e5;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPHJhZGlhbEdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzUlIj4KICAgIDxzdG9wIG9mZnNldD0iMjglIiBzdG9wLWNvbG9yPSIjZTVlNWU1IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iODklIiBzdG9wLWNvbG9yPSIjMjk1YTgwIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L3JhZGlhbEdyYWRpZW50PgogIDxyZWN0IHg9Ii01MCIgeT0iLTUwIiB3aWR0aD0iMTAxIiBoZWlnaHQ9IjEwMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-radial-gradient(center, ellipse cover, #e5e5e5 28%, #295a80 89%); 
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(28%,#e5e5e5), color-stop(89%,#295a80));
background: -webkit-radial-gradient(center, ellipse cover, #e5e5e5 28%,#295a80 89%);
background: -o-radial-gradient(center, ellipse cover, #e5e5e5 28%,#295a80 89%); 
background: -ms-radial-gradient(center, ellipse cover, #e5e5e5 28%,#295a80 89%); 
background: radial-gradient(ellipse at center, #e5e5e5 28%,#295a80 89%); 
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#295a80',GradientType=1 ); 
    }

    #footer header{
        margin-left:0;
    }

    #footer article a {
        display: inline-block;
    }*/
        
        main > header h2:first-child {
            margin-left: 160px;
        }

        #agse {
           background: url("../img/logo-agse2.png")no-repeat 50% 50%;
            background-size: contain;
        }
        #sgdf {
            background:url("../img/sgdf.png")no-repeat 50% 50%;
            background-size: contain;
        }
        #smf {
            background:url("../img/smf.png")no-repeat 50% 50%;
            background-size: contain;
        }
        #suf {
            background:url("../img/suf2.png")no-repeat 50% 50%;
            background-size: contain;
            height: 80px;
            margin-top: 10px;
        }
        #eeudf {
            background:url("../img/eeudf.png")no-repeat 50% 50%;
            background-size: contain;
        }

 /*   #footer #agse{
        margin-top: 15px;
    }
    #footer #smf{
        margin-top: 160px;
    }
    #footer #suf{
        margin-top: 160px;
    }*/

.center {
    text-align: center;
}

.inline {
    display: inline-block;
    vertical-align: top;
}

.clear {
    clear:both;
}

.copyright {
    font-size: 0.7em;
}




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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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 all and (max-width: 1025px) {
    .template header h2 {
        width: auto;
    }

    main > header h2:first-child {
        margin-left: 50px;
    }

    article > div {
        width:60%;
    }


}

@media all and (max-height: 765px) {
    #main header footer {
        position:static;
    }
}

@media all and (max-width: 765px) {
    #main > header {
        left:-160px;
    }   

    #btn-menu {
        display: block;
    }

    main article {
        margin-left:0;
    }

        article > div {
            width:90%;
        }

        #technique article > div {
            width: 90%;
        }

        #technique article > div {
            width: 90%;
        }
}

@media all and (max-width: 450px) {
    main > header h2:first-child {
        margin-left: 0px;
    }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@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;
    }

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

    @page {
        margin: 0.5cm;
    }

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

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