@import 'css/libs/vars';
@import 'css/vars_spip';
@import 'css/libs/functions';
@import 'css/libs/mixins';
@import 'css/libs/skel';

/* surcharge pour antanak */
/* Ce fichier CSS permet d'écraser le thème parent (HTML5UP Solid State) et d'ajouter du style supplémentaire */

/* Règle CSS de tout le corps du site */
* {
    background-image: none;
    border-radius: 0;
    /* box-sizing: border-box; */
}
*,*::after, *::before {
    box-sizing: border-box;
}

.flex {
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Chrome */
    display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */
    justify-content: space-between;
}

@media (min-width:480px) {
    .blocs {
        display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
        display: -ms-flexbox; /* TWEENER - IE 10 */
        display: -webkit-flex; /* NEW - Chrome */
        display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 2rem;
        > div {
            &:hover {
/*                 text-decoration: underline; */
            }
        }
        .intertitre {
            margin: 0;
        }
    }
    .flex2 > *, .flex4 > * {
        width: 100%;
        @media (min-width:540px) {
            max-width: calc(50% - 1rem);
        }
    }
    .flex2 {
        > .w2 {
            @media (min-width:540px) {
                max-width: calc(65% - 1rem);
            }
        }
        > .w1 {
            @media (min-width:540px) {
                max-width: calc(35% - 1rem);
            }
        }
    }
    .flex3 > * {
        width: 100%;
        @media (min-width:640px) {
            max-width: calc(33.33% - 1rem);
        }
    }
    .flex4 > * {
        @media (min-width:640px) {
            max-width: calc(25% - 1rem);
        }
    }
}

/*
 * Faire un lien sur un bloc entier
 */
.block-link-parent {
    position: relative;
    height: 100%;
    .block-link {
        transition: all ease-in-out 0.3s;
        &:before {
            content:  "";
            position: absolute;
            bottom:   0;
            left:     0;
            right:    0;
            top:      0;
        }
    }
    &:hover {
        box-shadow: 10px 10px 10px rgba(0,0,0,0.3);
        transition: all ease-in-out 0.3s;
        .aside & {
            box-shadow: none;
            color: white;
        }
    }
    .aside .support-item& h3 a {
        transition: all ease-in-out 0.3s;
        &:hover {
            color: white;
            transition: all ease-in-out 0.3s;
        }
    }
}
.block-link.nonvisible {
    text-indent: -999rem;
    float: left;
    margin: 0 0 -2rem;
}


/*  */
body {
    color: black;
    background: #2f8151;
    :not(.page_sommaire) & { padding-top: 55px; }
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: black;
}
h1, .h1 {
    font-size: 2.2rem;
}
h2, .h2 {
    font-size: 1.8rem;
}
h3, .h3 {
    font-size: 1.5rem;
}
.menu {

    h2, .h2 {
        font-size: 1.2rem;
        margin: 0;
    }
    h3, .h3 {
        font-size: 1rem;
        margin: 0;
    }
}
#page-wrapper {
    background: white;
}
img { max-width: 100%; height: auto; }
input[type="submit"], input[type="reset"], input[type="button"], button, .button {
    color: black !important;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
    border-color: rgba(0, 0, 0, 0.25);
    background: white;
}

/* ancre remontee pour prendre en compte la hauteur du bandeau fixe */
a.pagination_ancre {
    top: -3rem;
    position: absolute;
}

/* TITRES */
.h2 {
    color: black;
    font-size: 30px;
}
li a {
    font-weight: 700;
}

/* HEADER */
#header.alt {
    background: #2f8151;
    .accueil .spip_logo, .accueil .adapt-img-wrapper {
        border: 0;
        border-radius: 0;
    }
}

#menu .close {
    background-image: url(images/close.svg);
}

#banner {
	background: #2f8151;
    padding: 0;
}
#header.alt-pages {
    background-color: #2f8151;
}

#menu .inner {
    background-color: #266841;
}

#menu .links li a:hover {
    background-color: #458b62;
}

h3 a {
    color: black;
}
h3 a:hover {
    color: rgb(209, 209, 209);
}


#menu .links li a {
    color: white;
    font-weight: 700;
}


/* Bannière de présentation page sommaire */

#banner {
    color: white;
    .inner {
        padding: 0 2rem 2rem;
        width: auto;
    }
    .logo {
        width: 240px;
        margin: 0;
        a {
            border: 0;
        }
    }
    h1 {
        font-size: 2.7rem;
        margin: 0;
        border-bottom: 0;
        padding: 0;
        letter-spacing: 10px;
        color: white;
    }
    p {
        text-transform: none;
        font-size: 1rem;
        line-height: 1.4;
        margin: 0;
    }
    .title-header {
        padding: 0 2rem;
    }
    .title-header p {
        text-align: center;
        color: white;
        font-weight: 700;
    }
    .description-header p {
        margin: 0 0 1rem;
        text-align: left;
        /*     font-weight: bold; */
        opacity: 0.85;
        color: white;
    }

}


.header-sommaire, .title-logo-header {
    display: flex;
    align-items: center;
    text-align: center;
}
.title-logo-header {

}



.content-sommaire {
    display: flex;
    padding: 2rem;
}
.content-sommaire .main {
    width: 70%;
}
.content-sommaire .aside {
    width: calc( 30% - 2rem );
    margin-left: 2rem;
    padding: 10px;

}

.inner .presentation {
    position: relative;
    bottom: 100px;
    right: 20%;
}

/* Side bar Info bulle */

.sidebar-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    /*         height: 60px; */
    display: flex;
    justify-content: center;
    background-color: #484747;
    z-index: 9999;

    .sidebar-nav-list {
        list-style: none;
        color: #fff;
        padding-left: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;


        li {
            width: 30%;
            text-decoration: none;
            text-align: center;
            position: relative;
            text-align: center;
            .info-text {
                display: flex;
                justify-content: center;
/*                 flex-direction: column; */
                /*         align-items: center; */
            }
            a {
                text-decoration: none;
                color: white;
                border: 0;
                display: block;
                padding: 0.5rem;
                strong { color: white; }
                .label {
                    position: absolute;
                    /*     right: 4rem; */
                    background: #484747;
                    padding: 0.5rem 0.75rem;
                    /*                 white-space: nowrap; */
                    transform: scale(0);
                    /*     transform: translateX(10px); */
                    transition: all 0.25s ease;
                    pointer-events: none;
                    bottom: 2.2rem;
                    left: 0;
                    right: 0;
                }
                &:hover .label, & .label:hover {
                    transform: scale(1);
                }
            }
            .icon-sidebar svg {
                width: 20px;
                height: 20px;
                vertical-align: baseline;
                margin-right: 0.5rem;
            }
        }
    }


}


/* Sidebar Actualités */
.aside {
    background: #2f8151;
/*     color: rgb(230, 93, 14); */
    padding: 2rem;
    text-align: left;
    article {
        margin: 0.5rem 0;
    }
}
.support-desc p {
    color: white;
    font-weight: 600;
    margin: 0;
}

/* Main contenu page d'accueil */
.list-cards {
	display: flex;
    flex-wrap: wrap;
/*     align-items: strech; */
    justify-content: space-between;
    padding-bottom: 2rem;
    > * {
        width: 31%;
        margin-bottom: 2rem;
    }
}
.card {
	background: white;
    color: black;
	padding: 10px;
	border: 1px solid #1f8a3b;
	border-radius: 5px;
	box-shadow: 8px 8px 8px rgba(32, 32, 32, 0.1);
	text-align: center;
    #banner & * { color: black; }
    h3 {
        color: black;
    }
    .card-image {
        margin: -10px -10px 1rem;
        border-radius: 5px;
        overflow: hidden;
    }
}

#wrapper {
    > .inner {
        max-width: 70em;
        margin: 0 auto;
        padding: 0 2rem;
        .flex2 {
            @media (max-width: 768px) {
                flex-direction: column;
                > * { max-width: 100%; }
            }
        }
    }
}
.wrapper {
    background: transparent;
}

#wrapper .inner .spotlight {
    background-color: #ffffff;
}

.wrapper {
    position: none;
    margin: 0;
}
.wrapper::before, .wrapper::after {
    content: none;
}
.wrapper .inner {
    width: auto;
    @media screen and (max-width: 736px) {
        padding: 2em 0;
    }
}

.valeurs {
	background: #e6e7e5;
	padding: 1rem;
	text-align: left;
/* 	height: 220px; */
/* 	word-spacing: 6px; */
}


.valeurs p {
	color: rgb(20, 80, 5) ;
	font-weight: 600;
    text-align: left;
    margin: 0;
    strong {
        text-decoration: underline;
        color: rgb(212, 84, 9);
    }
}

/* Main contenu Page rubriques et sous rubriques */
.rubriques {
}

.rubriques p {
    margin: 0;
}

.articles-support{
    margin: 2rem 0;
    padding: 0;
}
.support-item {
    padding: 1rem 0.5rem;
    border-top: 1px solid #ccc;
    list-style: none;
    h3 {
        font-size: 1.1rem;
        margin: 0;
        a {
            display: block;
            border: 0;
            &:hover {
                color: grey;
            }
            &.on {
                color: grey;
            }
        }
    }
    p {
        margin: 0;
    }
}

.main-h1 {
    color: black;
    text-align: center;
}
.support-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}


/* Main contenu page article */

.content-title {
    text-align: center;
    font-size: 30px;
    color: #000;
    padding-top: 5rem;
}

.article-logo {
    display: block;
    margin: auto;
    width: 100%;
}
 .inner .title-article h1 {
    color: #000;
}

/* Main contenu page associé à un mot clé */

.intro-keyword {
    padding: 1rem;
    text-align: center;
}
.intro-keyword h1 {
    font-size: 35px;
    color: black;
}
 .h3 {
    font-size: 25px;
    color: black;
}
a.special {
    color: black;
}
a.special:hover {
    color: grey;
}
/* Main contenu page plan */
.plan li a {
    color: black;
}
.plan li a:hover,
.h2 a:hover {
    color: gray;
}
/* Flèche retour haut de page */

.back-to-top {
    position: fixed;
    bottom: 2.6rem;
    right: 0;
    background: #115926;
    color: rgb(214, 130, 34);
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    height: auto;
    padding: 0 0.5rem;
    z-index: 9999;
}
.back-to-top.show {
    display: block;
}





.wrapper.style3, .wapper.style3::before, .wrapper.style3::after {
    background-image: none;
    background-color: transparent;
}
.features article {
    background-color: transparent;
    border: 1px solid #ddd;
}

ul.pagination li > .page {
    color: #bbb;
}




/* Footer */
#footer {
	display: flex;
/* 	text-align: center; */
    background: #e6e7e5;
    margin: 0;
    padding: 2rem 0 5rem;
    color: black;
    .inner {
/*         padding: 0; */
    }
    h2, label, .inner .pied_description, .copyright {
        color: black;
    }
    .inner .pied_description, .copyright {
        margin-top: 0;
        text-align: center;
    }
}
#footer .inner .contact {
    margin-top: 4.2rem;
}
ul.contact li .fa-icon {
    border: 0;
    height: 3rem;
    width: 3rem;
    line-height: 3rem;
}
ul.contact li a {
    line-height: 3rem;
}

/*.citation {
    margin: 1rem 0;
    padding: 2rem 0;
    border-top: solid 2px rgba(255, 255, 255, 0.125);
    blockquote {
        max-width: 100%;
    }
}*/

.copyright a {
	color: black;
}

.copyright a:hover {
	color: rgb(92, 92, 92);
}



#spip-admin.spip-admin-bloc, #spip-admin.spip-admin-float {
    z-index: 10001;
    right: 10px;
    top: auto;
    bottom: 0;
}
#spip-admin.spip-admin-bloc .spip-admin-boutons, #spip-admin.spip-admin-float .spip-admin-boutons {
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: inherit;
}




 /* Media Queries  */
@media screen and (max-width: 1426px) {
     .sidebar-nav {
/*         right: 10px; */
    } 
}
@media screen and (max-width: 1280px) {
    #banner { margin: 0; }
    #footer { background-image: none; }
}

@media screen and (max-width: 1024px) {

    .title-logo-header {
        justify-content: center;
    }
    .header-sommaire {
        display: block;
    }
    .list-cards {
        > * { width: 48%; }
    }
    .card {
        display: flex;
/*         flex-wrap: wrap; */
        flex-direction: column;
    }
    .card-image img {
	width: 100%;
    }
    .rubriques {
/*        display: flex;
        align-items: center;*/
    }

    .content-title,
    .intro-keyword h1 {
        font-size: 25px;
    }


}

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

    body {
        padding-bottom: 60px;
    }   

    .content-sommaire {
        flex-direction: column;
        .main, .aside { width: 100%; }
        .aside {
            margin-left: 0;
            margin-top: 2rem;
        }
    }

    .main-h1 {
        padding-top: 10px;
    }
    #footer .inner .copyright {
        padding-bottom: 1em;
    }


}

@media (max-width: 640px) {

    .list-cards {
        > * { width: 100%; }
    }

    .header-blocks {
        flex-direction: column;
    }
    .header-block {
        width: auto;
        margin-bottom: 1rem;
    }

}
@media (max-width: 540px) {

    .header-sommaire {
        flex-wrap: wrap;
    }

    .title-logo-header {
        flex-direction: column;
    }
    .title-header {
        margin-bottom: 1rem;
    }

}
