/*
 * galette.css
 * ~~~~~~~~~~~
 *
 * :copyright: Copyright 2011 Johan Cwiklinski
 * :license: GPLv3, see LICENSE for details.
 *
 */

@import url("basic.css");

@font-face {
    font-family: 'PtSans';
    src: url('fonts/ptsans-regular-webfont.woff2') format('woff2'),
         url('fonts/ptsans-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PtSans';
    src: url('fonts/ptsans-bold-webfont.woff2') format('woff2'),
         url('fonts/ptsans-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'PtSans';
    src: url('fonts/ptsans-bolditalic-webfont.woff2') format('woff2'),
         url('fonts/ptsans-bolditalic-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'PtSans';
    src: url('fonts/ptsans-italic-webfont.woff2') format('woff2'),
         url('fonts/ptsans-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

html {
    line-height: 1.15;
}

body {
    background: #636B70 url(images/bg.png) top left no-repeat;
    padding: 0;
    margin: 0;
    font: 400 14px/1.4em PtSans, Arial, sans-serif;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    color: #606060;
    text-align: justify;
}

img, a img {
    border:none;
}

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

/** Menu related */
.related {
    margin: 0 auto;
    clear:both;
}
.document + div.related {
    font-size: 1em;
}

div.related ul {
    list-style: none;
    display:inline;
    margin: 0;
    padding: 0;
    line-height: 125%;
}

.related ul li {
    display:inline;
    margin: 0;
    margin-right: 0.5em;
}

.related .li{
    display:inline;
}
#page div.related a,
#page div.related a:visited {
    border-bottom: none;
    padding: 0 0.4em 0 0;
    color:#606060;
    text-decoration: none;
}

.related li {
    margin: 0;
    padding: 0;
    position: relative;
}
/** /Menu related */

div.sphinxsidebar {
    float:right;
    margin:3rem 0 0 0;
    padding:0 3rem 0 1rem;
    width: 210px;
    font-size: unset;
}

div.sphinxsidebar p.topless,
div.sphinxsidebar ul {
    margin: 0;
}

div.sphinxsidebar ul li.current > a {
    border-bottom: 1px solid #ffb619;
}

.document{
    margin:0 277px 0 0;
}

div.sphinxsidebarwrapper {
    padding: 0;
    margin: 0;
    position: relative;
}

.sphinxsidebarwrapper * {
    padding: 0;
}

.sphinxsidebarwrapper form * {
    margin:0;
}

.sphinxsidebarwrapper h3 {
    margin:1em 0 .5em;
    color:#606060;
    border-width:0;
}
.sphinxsidebarwrapper h3 a{
    color:#606060!important;
}

.sphinxsidebarwrapper h4 {
    font-weight: bold;
    border-width:0;
}

.sphinxsidebarwrapper p.topless {
    padding-left: 20px;
    background: url(images/next.png) 0 50% no-repeat;
}
.sphinxsidebarwrapper p.topless.previous {
    background-image: url(images/previous.png);
}

.sphinxsidebarwrapper a {
    color: #606060!important;
    text-decoration:none!important;
    display: block;
    padding: .2em .3em;
    text-align: left;
}

.sphinxsidebarwrapper a:hover {
    color: #007baa !important;
    background: rgba(0, 0, 0, 0.1);
}

#searchbox {
    display: block;
    padding-bottom: 12em;
}

div.sphinxsidebar #searchbox input[type="text"],
div.sphinxsidebar #searchbox input[type="submit"] {
    padding: 0.5em;
}

.searchformwrapper::after,
.searchformwrapper form::after {
    display: block;
    content: '';
    clear: both;
}

div.admonition {
    padding:1em;
    margin:.5em auto;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
    color: #000;
}

div.admonition::after,
blockquote::after {
    display: unset;
    content: unset;
}

div.admonition p{
    margin:0;
    text-align: center;
}

p.admonition-title {
    font-size:1.3em;
}

div.admonition-a-faire {
    background-color: rgba(255,255,0,0.5);
}

div.note {
    background-color: rgba(248, 195, 99, 0.5);
}

div.warning {
    background-color: rgba(255,0,0,0.5);
}

.warning .admonition-title,
.note .admonition-title,
.admonition-a-faire .admonition-title {
    background-position: left top, right top;
    background-repeat: no-repeat;
    padding:.1em 0;
}

.warning .admonition-title {
    background-image:url(images/warning.png), url(images/warning.png);
}

.note .admonition-title {
    background-image:url(images/info.png), url(images/info.png);
}

.admonition-a-faire .admonition-title {
    background-image:url(images/todo.png), url(images/todo.png);
}

.literal {
    font-size: 12.25px;
    background-color:#e5e5e5;
    padding:.1em .2em;
}

img.align-right,
.figure.align-right,
object.align-right {
    clear: none;
    float: right;
    margin-left: 1em;
}

img.align-center,
.figure.align-center,
object.align-center {
    clear: none;
}

/**
 * Additional layout for the Simple template
 *
 * @author:     Johan Cwiklinski <johan AT x-tnd DOT be>
 * @homepage:   http://blog.ulysses.fr
 */

/*** HTML TAGS */



/* general headline setup */
h1,
h2,
h3,
h4,
h5 {
    border: none;
    font-weight: bold;
    color: #606060;
    background-color: inherit;
    font-size: 100%;
    line-height: 115%;
    margin: 1.25em 0 .3em;
    clear: left;
    border-bottom: 1px dotted #007baa;
    display: inline-block;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
a.nolink {
    color: #606060 !important;
    text-decoration: none !important;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
a.nolink:hover {
    color: #000;
}

/* special headlines */
h1 {
    font-size: 2em;
    border-bottom: 1px solid #ffb619;
}
h2 {
    font-size: 1.5em;
}
h3 {
    font-size: 1.25em;
}
h4 {
    font-size: 1em;
}

.slogan > h1 {
    border-bottom: none;
    display: block;
    font-size: 2.5rem;
    color: #005677;
    text-align: center;
    line-height: .9;
    margin: 2rem auto 2rem auto;
    max-width: 460px;
}

/* --------------- Links ------------------ */

a:link,
a:visited {
    color: #007baa;
    text-decoration: underline;
}
a:visited {
    color: #007baa;
}
a:hover,
a:active {
    color: #005677;
}

/* external link */
a.urlextern {
    background: transparent url(images/urlextern.png) 0px 1px no-repeat;
    padding: 1px 0px 1px 18px;
}

/* windows share */
a.windows {
    background: transparent url(images/windows.gif) 0px 1px no-repeat;
    padding: 1px 0px 1px 18px;
}

/* email link */
a.mail {
    background: transparent url(images/mail_icon.gif) 0px 1px no-repeat;
    padding: 1px 0px 1px 18px;
}

/* existing wikipage */
a.wikilink1 {
    color: #70afab !important;
}

/* not existing wikipage */
a.wikilink2 {
    color: #fd6868 !important;
    text-decoration: none !important;
    border-bottom: dashed 1px #fd6868 !important;
}

.highlight {
    background-color: #fdffc3;
}

.highlight .c,
.highlight .c1 {
    color: #407380;
}

.highlight .nv {
    color: #984aae;
}

.highlight .sx {
    color: #b1540a;
}

pre {
    padding: 1em;
    font: 1.05em courier new,courier,monospace;
    border: 1px dashed #636b70;
    color: #242424;
    overflow: auto;
    text-align: left;
}

pre,
div[class*="highlight-"] {
    clear: unset;
}

blockquote {
    border-left: 2px solid #c4c4c4;
    padding-left: 3px;
    text-align: left;
}

/** Form elements */
input.edit,
select.edit {
    font-size: 100%;
    border: 1px solid #c4c4c4;
    color: #666;
    background-color: #fff;
    vertical-align: middle;
    margin: 1px;
    padding: 0.20em 0.3em;
    display: inline;
}

/* nice alphatransparency background except for IE <7 */
html>body input.edit,
html>body select.edit {
    background:  #fff url(images/inputshadow.png) repeat-x top;
}

select.edit {
    padding: 0.1em 0;
}

/* Search form */
#dw__search {
    position:absolute;
    right:0;
    top:0;
    margin-top: 0.2em;
    margin-right: 0.4em;
}
/* /Search form */

/* Buttons */

input.button,
button.button {
    border: 1px solid #c4c4c4;
    color: #666;
    background-color: #fff;
    vertical-align: middle;
    text-decoration: none;
    font-size: 100%;
    cursor: pointer;
    margin: 1px;
    padding: 0.125em 0.4em;
    float: right;
    display: inline;
}

html>body input.button,
html>body button.button {/* alphatransparency background except for IE <7 */
    background:  #fff url(images/buttonshadow.png) repeat-x bottom;
}

* html input.button,
* html button.button {
    height: 1.8em;
}

#dw__search .button{
    float:none; /*required due to a bug at least in FF 3.0.x */
}

form {
    border: none;
    display: inline;
}

label.block {
    display: block;
    text-align: right;
    font-weight: bold;
}

label.simple {
    display: block;
    text-align: left;
    font-weight: normal;
}

label.block input.edit {
    width: 50%;
}

fieldset {
    width: 300px;
    text-align: center;
    border: 1px solid #c4c4c4;
    padding: 0.5em;
    margin: auto;
}

textarea.edit {
    font-family: monospace;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border: 1px solid #c4c4c4;
    padding: 0.3em 0 0 0.3em;
    width: 100%;
}

/* nice alphatransparency background except for IE <7 */
html>body textarea.edit {
    background:  #fff url(images/inputshadow.png) repeat-x top;
}

input.missing {
    font-size: 100%;
    border: 1px solid #c4c4c4;
    color: #666;
    background-color: #ffcccc;
    vertical-align: middle;
    margin: 1px;
    padding: 0.20em 0.3em;
    display: inline;
}

/* disabled style - not understood by IE */
textarea.edit[disabled],
textarea.edit[readonly],
input.edit[disabled],
input.edit[readonly],
select.edit[disabled] {
    background-color: #f5f5f5!important;
    color: #666!important;
}

/* /Buttons */

input#edit__summary {
    width: 70%;
}

/** /Form elements */

/*** /HTML TAGS */

/* Overrides doku defaults */
div#footer img {
    float: none;
}
/** /Overrides doku defaults */

/** Page bones */

#logo {
    position: absolute;
    top: 29px;
    width: 100%;
}

#header{
    position:relative;
    height: 100px;
    z-index: 100;
}

#login__bar{
    position:absolute;
    top:0;
    left:0;
}

#logo a {
    float: none !important;
    font-size: 2em;
    text-decoration: none;
    color: #ededed !important;
    background: url(images/galette.png) 0 0 no-repeat;
    display:block;
    height:100px;
    width:208px;
    text-indent: -5000px;
    margin:0 auto;
}

#page {
    position: relative;
    padding: 0;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 6px;
    max-width: 1024px;
}

.documentwrapper {
    padding: 4rem 2rem 6rem 2rem;
}

#tests-unitaires {
  clear: both;
}

#tests-unitaires::after {
    display: block;
    content: '';
    clear: both;
}

#doku__footer{
    background-color: #f8c363;
    padding:0 1em;
    font-size: 70%;
    text-align:right;
}

#doku__footer span.logged_infos {
    float:left;
}

#page_footer{
    margin-top:.5em;
}

#footer{
    text-align: center;
    margin-bottom: .5em;
}

#footer, #footer a{
    color:#fff;
}
#footer a {
    text-decoration: none;
}
#footer a:hover {
    color:#fff;
    text-decoration: underline;
}
#footer a svg {
    vertical-align: middle;
    margin: .2rem .5495rem .1rem .5495rem;
    fill: #e5e5e5;
}
#footer a svg:hover {
    fill: #fff;
}

.licbutton {
    vertical-align: text-bottom;
}

/** Header related */
#login__bar a,
#header a{
    color:#FFFFFF;
}
.bchead{
    font-weight:bold;
}
#login__bar a{
    margin-right: .8em;
}
/** /Header related */


/** TOC */
div.toc {
    margin-left: 1em;
    margin-top: 1.1em;
    float: right;
    width: 200px;
    font-size: 80%;
    clear: both;
}

div.tocheader {
    border: 1px solid #c4c4c4;
    background-color: #F8C363;
    color: #636b70;
    text-align: center;
    padding: .2em;
    line-height: 100%;
}

div.tocheader img {
    margin-top: 0.1em;
}

#toc__inside {
    background-color: #fff;
    border: 1px solid #c4c4c4;
    border-top:none;
    text-align: left;
    padding: 0.5em 0 0.7em 0;
}

#toc__inside ul {
    margin: 0em;
    padding-left: 0.8em;
}

span.toc_open,
span.toc_close {
    border: 0.4em solid #F8C363;
    float: right;
    display: block;
    margin: 0.4em 3px 0 0;
}

span.toc_open span,
span.toc_close span {
    display: none;
}

span.toc_open {
    margin-top: 0.4em;
    border-top: 0.4em solid #666;
}

span.toc_close {
    margin-top: 0;
    border-bottom: 0.4em solid #666;
}

ul.toc {
    list-style-type: none;
    list-style-image: none;
    line-height: 1.2em;
    padding-left: 1em;
    margin: 0;
}

ul.toc li {
    background: transparent url(images/tocdot2.gif) 0 0.6em no-repeat;
    padding-left: 0.4em;
}

ul.toc li.clear {
    background-image: none;
    padding-left: 0.4em;
}

/** /TOC */

/** Action links */
a.action{
    padding: 1px 0px 1px 18px;
}
a.login {
    background: transparent url(images/tool-login.png) 0px 1px no-repeat;
}

a.logout {
    background: transparent url(images/tool-logout.png) 0px 1px no-repeat;
}

a.index {
    background: transparent url(images/tool-index.png) 1px 1px no-repeat;
}

a.recent {
    background: transparent url(images/tool-recent.png) 0px 1px no-repeat;
}

a.create,
a.edit,
a.npd {
    background: transparent url(images/tool-edit.png) 0px 1px no-repeat;
}

#header a.edit,
#header a.show,
#header a.source {
    position:absolute;
    bottom:0;
    left:0;
}

a.source,
a.show {
    background: transparent url(images/tool-source.png) 0px 1px no-repeat;
}

a.admin {
    background: transparent url(images/tool-admin.png) 0px 1px no-repeat;
}

a.revisions {
    background: transparent url(images/tool-revisions.png) 0px 1px no-repeat;
}

a.subscribe,
a.unsubscribe {
    background: transparent url(images/tool-subscribe.png) 0px 1px no-repeat;
}

a.backlink {
    background: transparent url(images/tool-backlink.png) 0px 1px no-repeat;
}

a.profile {
    background: transparent url(images/tool-profile.png) 0px 1px no-repeat;
}

a.top {
    background: transparent url(images/tool-top.png) right 2px no-repeat;
    padding: 0px 20px 0px 0px;
    float: right;
}

/** /Action links */

/* indent different sections */
div.level1 {margin-left: 3px;}
div.level2 {margin-left: 13px;}
div.level3 {margin-left: 23px;}
div.level4 {margin-left: 38px;}
div.level5 {margin-left: 53px;}

/** Code blocks */

/* code blocks by indention */
pre.pre {
    background-color: #f7f9fa;
}

/* code blocks by code tag */
pre.code {
    background-color: #f7f9fa;
}

/* code blocks by file tag */
pre.file {
    background-color: #F8C363;
}

/** /Code blocks */

/** Diff rendering */

table.diff {
    background-color: #fff;
    width: 100%;
}

td.diff-blockheader {
    font-weight: bold;
}

table.diff th {
    border-bottom: 1px solid #c4c4c4;
    font-size: 110%;
    width: 50%;
    font-weight: normal;
    text-align: left;
}

table.diff th a {
    font-weight: bold;
}

table.diff th span.user {
    color: #666;
    font-size: 80%;
}

table.diff th span.sum {
    font-size: 80%;
    font-weight: bold;
}

table.diff th.minor {
    font-style: italic;
}
table.diff td {
    font-family: monospace;
    font-size: 100%;
}

td.diff-addedline {
    background-color: #ddffdd;
}

td.diff-deletedline {
    background-color: #ffffbb;
}

td.diff-context {
    background-color: #f5f5f5;
}

table.diff td.diff-addedline strong,
table.diff td.diff-deletedline strong {
    color: red;
}

/** /Diff rendering */

/** Breadcrumbs */

div.breadcrumbs {
    background: #636b70;
    color: #FFFFFF;
    position:absolute;
    bottom:0;
    right:0;
    font-size: 80%;
    padding: 0 0 0 .5em;
}

/** /Breadcrumbs */

.hidden{
    display:none;
}

/** Used ? */
.navi_clearer {
    clear: both;
    margin-bottom: 1.8em;
}

div.ajax_qsearch {
    top: 4em;
    right: 140px;
    z-index: 99;
}

div.error{
    position:absolute;
    top:12.3em;
    width:40%;
    margin-left:30%;
    text-align:center;
}

#plugin__manager .pm_menu{
    float:none;
    width:auto;
}

.docs {
    display: inline-block;
    text-align: center;
    width: 48%;
    margin-left:1%;
    position:relative;
}

.docs a {
    display:inline-block;
    height: 6em;
    min-width:15em;
    max-width:25em;
    width:100%;
    max-width: 45em;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
    -moz-box-shadow: 1px 1px 12px #555555;
    -webkit-box-shadow: 1px 1px 12px #555555;
    box-shadow: 1px 1px 12px #555555;
}

.docs a em,
.docs a span.doc {
    position:absolute;
    color: black;
    background-color:rgba(255, 255, 255, .9);
    display: inline-block;
    font-weight: bold;
    font-style: normal;
    font-size:1.2em;
    bottom:1em;
    right: 1em;
    padding: .5em;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
    -moz-box-shadow: 1px 1px 12px #ccc;
    -webkit-box-shadow: 1px 1px 12px #ccc;
    box-shadow: 1px 1px 12px #ccc;
}

.docs a em:hover,
.docs a span.doc:hover {
    -moz-box-shadow: 1px 1px 12px #555555;
    -webkit-box-shadow: 1px 1px 12px #555555;
    box-shadow: 1px 1px 12px #555555;
}

.devel-doc a{
    background: url(images/developpers.jpg) 50% 50% no-repeat;
}

.install-doc a{
    background: url(images/installation.jpg) 50% 100% no-repeat;
}

.user-doc a{
    background: url(images/usermanual.jpg) 50% 100% no-repeat;
}

.plugins-doc a{
    background: url(images/plugins.jpg) 50% 50% no-repeat;
}

.doc-main-page h1 {
    display: none;
}

.dl-formats {
    padding:0;
    text-align:center;
}

.dl-formats li {
    display:inline-block;
}

.dl-formats li a {
    color: black;
    text-decoration:none;
}
.dl-formats li a:hover {
    text-decoration: underline;
}

.dl-formats li:first-child {
    display:block;
}

/* version TEXTE */
.dl-formats li:nth-child(2) a{
    text-indent: -5000px;
    display: inline-block;
    background: url(images/txt.png) 50% 50% no-repeat;
    height: 64px;
    width: 64px;
}

/* version HTML */
.dl-formats li:nth-child(3) a{
    text-indent: -5000px;
    display: inline-block;
    background: url(images/html.png) 50% 50% no-repeat;
    height: 64px;
    width: 64px;
}

/* version PDF */
.dl-formats li:nth-child(4) a{
    text-indent: -5000px;
    display: inline-block;
    background: url(images/pdf.png) 50% 50% no-repeat;
    height: 64px;
    width: 64px;
}

#page div.related:first-child {
    position: absolute;
    z-index: 200;
    top: 2rem;
    left: 2rem;
    background:none;
    width: auto;
}

#page div.related:first-child ul {
    display: block;
    background: #0000001a;
    border-radius: 6px;
    margin: 0 275px 0 0;
    padding: 5px 10px;
}

#page div.related:first-child .right {
    display: none;
}

#page div.related:last-child {
    position: absolute;
    bottom: 3em;
    left: 50%;
    transform: translateX(-50%);
    background:none;
    width: auto;
}

#page div.related:last-child ul {
    display: flex;
}

#page div.related:last-child .right {
    color: transparent;
    margin: 0;
    order: 2;
}

#page div.related:last-child .right a {
    text-transform: capitalize;
    border: 1px solid #636b70;
    padding: .5em 1em;
    background: #fff;
    color: #606060;
}

#page div.related:last-child .right a:hover {
    background: #e5e5e5;
    color: #242424;
    text-decoration: none;
}

#page div.related:last-child li.right:nth-child(2) {
    order: 1;
}

#page div.related:last-child .nav-item {
    display: none;
}

/** Mobile devices */
@media (max-width: 767px) {
    div.body {
        min-width: unset;
    }

    #wrapper {
        overflow: hidden;
    }

    /** Responsive menu */
    div.sphinxsidebar {
        float: none;
        position: absolute;
        min-height: 100vh;
    }

    div.sphinxsidebarwrapper {
        padding-top: 1.5em;
    }

    .document {
        margin: 0;
        background-color: white;
        transform: translateX(0) translateZ(0);
        transition: transform .2s;
        will-change: transform;
        border-radius: 6px;
    }

    .documentwrapper {
        border-right: 0;
    }

    /* Button deco */
    [class^="nav-button"] {
        display: block;
        width: 75px;
        height: 60px;
        z-index: 200;
        cursor: pointer;
        -webkit-tap-highlight-color:rgba(0,0,0,0);
        position: absolute;
        top: 1.5rem;
        font-size: 250%;
        color: #fff;
        text-decoration: none;
        text-align: center;
    }

    a.nav-button-close,
    a.nav-button-open {
        color: #fff;
        text-decoration: none;
    }

    /* here's goes the push left effect */
    div#galette:target .document {
        /* same as #content margin-left */
        transform: translateX(230px);
    }
    .nav-button-close,
    div#galette:target .nav-button-open {
        display: none;
    }
    .nav-button-open,
    div#galette:target .nav-button-close {
        display: block;
    }

    #page div.related:first-child ul {
        margin: 0 25px 0 0;
    }
    #footer {
        margin-top:.5em;
    }

    img.align-center {
        width: auto!important;
        height: auto!important;
    }

    ul {
        padding-left: 1.5em;
    }

    form.search {
        display: block;
    }
}

@media (min-width: 768px) {
    [class^="nav-button"] {
        display: none;
    }
    div.sphinxsidebar {
        width: 190px;
    }
    .document{
        margin:0 240px 0 0;
    }
    #page div.related:last-child {
        left: 40%;
    }
}

@media (max-width: 979px) {
    div.admonition,
    .docs {
      width: auto;
      display: block;
    }
}

@media (min-width: 992px) {
    div.sphinxsidebar {
        padding:0 3rem 0 1rem;
        width: 216px;
        margin-top: 2rem;
    }
    .documentwrapper {
        padding: 5rem 1rem 5rem 3rem;
    }
    .document{
        margin:0 286px 0 0;
    }
    #page div.related:first-child {
        top: 3rem;
        left: 3rem;
    }
}

@media (max-width: 1024px) {
    #page {
        border-radius: 0;
    }
}
