/*
 * Villejuif - La fabrique de Donuts
 *
 * Copyright (C) 2024 Loïc Dayot <L-DAYOT AT villejuif DOT fr> Villejuif
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

body {
    background-color: var(--fonddepage);
    color: var(--texte);
    margin: 0;
}

p {
    color: var(--texte);
}

h1 {
    font-size: 28px;
    text-shadow: -1px -1px #0e0, 1px 1px #060, 2px 0 3px #000;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--titretexte); /* #3c3; */
    background-color: var(--titrefond);
    padding: 5px;
    font-weight: lighter;
    -moz-box-shadow: 2px 2px 6px #888;
    -webkit-box-shadow: 2px 2px 6px #888;
    box-shadow: 2px 2px 6px #888;
    text-align: center;
    display: block;
    margin: 16px;
}

h2 {
    font-size: 24px;
    text-shadow: -1px -1px #0c0, 1px 1px #060, 1px 0 2px #000;
    font-family:Arial, Helvetica, sans-serif;
    color: #292;
    padding:16px;
    font-weight:lighter;
    display:block;
}

a {
    color: #7cf;
}
a:visited {
    color: #77f;
}
a:hover {
    color: #aaf;
}

footer .copy {
    position: absolute;
    width: 100%;
    top:0;
}

/* forms */

label.inline {
    display: inline;
    margin-right: 0.5em;
    margin-left: 1em;
}

#select_form {
    margin-right: 0.5em;
    margin-left: 3em;
    padding-top: 0.7em;
}

/* catalogue */

ul#catalogue {
    list-style-type: none;
    padding: 0 0 0 10px;
}
ul#catalogue li a {
    background-color: grey;
    padding: 5px;
    margin-top: 2em;
    color:  var(--cataloguetitre);
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}
ul#catalogue li.odd a {
    background-color: var(--catalogueoddfond);
}
ul#catalogue li.even a {
    background-color: var(--catalogueevenfond);
}
ul#catalogue li a.button {
}
details {
    margin-bottom: 1em;
    padding-top: 0.1em;
    margin-right: 1em;
    border-radius: 0 10px 0 0;
}
.odd details {
    background-color: var(--catalogueoddfond);
}
.even details {
    background-color: var(--catalogueevenfond);
}
details summary {
    /*color: green;*/
}
dl {
    /*border: 3px double #ccc;*/
    padding: 0.5em;
}
dt {
    float: left;
    clear: left;
    width: 100px;
    text-align: right;
    /*font-weight: bold;*/
    color: var(--ecrituresurfond);
}
dt::after {
    content: ":";
}
dd {
    margin: 0 0 0 110px;
    padding: 0 0 0.5em 0;
}

/*
 * couleurs du donut
 */
:root {
    --espacesur:        #82c230; /* vert clair */
    --plancher:         #16a21f; /* vert foncé */
    --fondbleu:         #95dbff; /* bleu clair */
    --inconnu:          #969696; /* gris */
    --favorable:        #2da264; /* vert */
    --zonefavorable:    #096a09; /* vert foncé */
    --defavorable:      #f5d370; /* orange */
    --tresdefavorable:  #de4337; /* rouge */
}

/* on mouse over titile */
#title {
    display:none;
    position:absolute;
    border:0.5px solid black;
    margin: 1px;
    font-size: 0.8em;
    color: var(--texte);
    background-color: var(--commentfond);
    width: 150px;
}

/* donut svg */

#svgdonut {
}

.tendance, .action {
    fill-opacity: 70%;
}
.tendance {
    stroke-width: 0.5;
}
.link {
    cursor: pointer;
}

.textelimite, .textelimite2, .textezonesure, .textezonesurebas, 
.texteplanchersocial, .texteplafondenvironnemental, .texteplancher {
    text-anchor: middle;
    sideNo: left;
    font-family: sans-serif;
    font-weight: normal;
    widthNo : 1;
}

.textelimite, .textelimite2, .texteplancher {
    fill: var(--ecrituresurfond);
}
.textezonesure, .textezonesurebas {
    fill: white;
    font-weight: bold;
}
.texteplanchersocial, .texteplafondenvironnemental {
    fill: white;
}

article {
    overflow: auto;
}

aside {
    left: 70%;
    position: absolute;
    top: 7em;
}
#content {
    overflow: hidden;
}
#comment {
    /*position: absolute;
    float: right;*/
    display: block;
    /*width: 30%;*/
    top:11em;
    right:10px;
}
a.edit {
    display: none;
    position: absolute;
    right: 1em;
}
h3:hover a.edit, li:hover a.edit, h1:hover a.edit {
    display: inline-block;
}
.joli {
    background-color: var(--commentfond);
    border: 1px solid;
    box-shadow: 10px 10px 0px black;
    -webkit-box-shadow: 6px 6px 0px grey;
    -moz-box-shadow: 6px 6px 0px grey;
    padding: 0.5em;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    /*max-width: ;*/
}
.joli {
    color: var(--commenttexte2);
}
.joli p {
    color: var(--commenttexte);
}
.joli h3 {
    margin-top: 0px;
    margin-bottom: 2px;
    color: var(--commenttitre);
}
.joli h4 {
    color: var(--commenttexte2);
}
.joli a {
    color: var(--commentlien);
}
.joli a.plierdeplier {
    color:white;
}
.joli ul, .joli ol {
    padding-left: 1.1em;
}
.joli ul li {
    padding:0;
    margin:0;
}
.joli ul li ul li
{
    margin-left: 1em;
}
li.action {
}
.ref {
    font-size: 70%;
    color: var(--commentlien);
}
.ref::before {
    content: "[";
}
.ref::after {
    content: "]";
}
.ref {
    color: var(--ref);
}
.comment {
    font-size: 90%;
    font-style: italic;
    color: #EBFFC4;
}
progress[value] {
    width: 3em;
}
.force {
    font-size: 90%;
}
/*.force.favorable {
    color: #0f6;
}
.force.defavorable {
    color: red;
}*/

p.copy {
    font-size: 60%;
    text-align: right;
}

p.error {
    color: red;
    font-weight: bold;
    border: 2px solid red;
}

p.warning {
    color: orange;
    font-weight: bold;
    border: 1px solid orange;
}

p.info {
    color: green;
}

/* legend */

@font-face {
    font-family: 'Symbols';
    src: url('/vendor/villejuif/donut_factory/fonts/opens___.ttf') format('truetype');
}
.symbol {
    font-weight: bolder;
    font-family: 'Symbols', sans-serif;
    padding-right: 0.3em;
}
#legend {
    color: var(--legendetexte);
    /*margin: 1em;
    border: #ddd solid 1px;*/
}

.favorable {
    color: var(--zonefavorable); 
    background-color: var(--zonefavorablefond);
}
.defavorable {
    color: var(--defavorable); 
    background-color: var(--zonedefavorablefond);
}
.tresdefavorable {
    color: var(--tresdefavorable);
    background-color: var(--zonetresdefavorablefond);
}
.inconnu {
    color: var(--inconnu);
    background-color: var(--zoneinconnufond);
}
/* Menus */

menu {
    display: block;
}

.sidepanel  {
    width: 0;
    position: fixed;
    z-index: 1;
    /*height: 250px;*/
    top: 0;
    left: 0;
    background-color: var(--menufond);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 1.5em;
    padding-bottom: 1em;
    display: inline-block;
    font-family: sans;
}
.sidepanel a {
    padding: 4px 8px 4px 32px;
    text-decoration: none;
    color: var(--menua);
    display: block;
    transition: 0.8s;
}
.sidepanel a:hover {
    color: var(--menuahover);
    text-decoration: green underline;
}
.sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 2em;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: var(--menuboutonfond);
    color: var(--menubouton);
    padding: 10px 15px;
    border: none;
    position: absolute;
}
.openbtn:hover {
    background-color: var(--menufond);
}

.button, ul#catalogue li a.button, ul#catalogue li a.button:visited {
    font-family: sans;
    background-color: grey;
    color: inherit;
    padding: 5px 18px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid;
    margin-left: 10px;
}
#select_form a.button {
    padding: 0px 18px;
}
.button, .button:visited {
    color: white;
}
a.button:hover {
    color: white;
    background-color: #333;
}
/* about */
#about, #contact {
    margin: 1em;
}
.aboutlist {
    list-style-type: initial;
    color: #85daa7;
}

.abouttab, .abouttab th, .abouttab td {
    border: 1px solid;
    border-collapse: collapse;
    color: #85daa7;
} 