@import "main.css";

/*
###############################################
##   O N G L E T S   E T   S E C T I O N S   ##
###############################################
*/

.fond1 {
  background-color: hsl(0, 100%, 97%);
}
.fond2 {
  background-color: hsl(120, 100%, 97%);
}
.fond3 {
  background-color: hsl(240, 100%, 97%);
}
.fond4 {
  background-color: hsl(60, 100%, 97%);
}
.fond5 {
  background-color: hsl(180, 100%, 97%);
}
.fond6 {
  background-color: hsl(300, 100%, 97%);
}
.fond7 {
  background-image: linear-gradient(to top right, hsl(60, 100%, 95%), 80%, hsl(0, 100%, 60%));
  /*background-color: hsl(0, 100%, 92%);*/
}
.fond7 div {
  background-color: transparent;
}

/* ==> TOUT EN MONOCHROME
.fond1,.fond2,.fond3,.fond4,.fond5,.fond6, fond7 {
  background-color: hsl(212, 80%, 96%);
}
*/

#onglets {
  padding: 5px 5px 0 5px;
  border-top: 1px solid var(--colorBg2);
}

.item {
  text-decoration: none;
  font-size: 0.9em;
  white-space: pre;
  font-weight: bold;
  padding: 3px 8px 2px 8px;
  margin: 3px 0 0 0;
  border: 2px solid var(--colorBG);
  display: inline-block;
  border-radius: 8px 8px 0 0;
}
.item:hover {
  border-color: var(--colorFg2);
}
.item:active {
  border-color: var(--colorBg2);
}
.item.active {
  border-color: var(--colorFg2);
}

.section {
  padding: 5px 0 5px 0;
  background-color: var(--colorBG);
}
/* pour colorier la section active:  .section.active>div, .section>div:hover {background-color: yellow;} */

.titre {
  font-size: 2em;
  font-weight: bold;
  padding: 5px 10px;
  border-bottom: 1px solid var(--colorBg1);
}
span.mark {
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 10px;
  text-shadow: 2px 2px 3px #aaa;
}
.contenu {
  padding: 20px 10px 20px 10px;
  height: 100%;
}

/*
################################
##   ELEMENTS PARTICULIERS   ###
################################
*/


#situation {
  margin-left: 10px;
  padding-left: 8px;
}

#situation>input {
  margin-right:5px;
}

#moyen_detection {
  margin-top: 5px;
}

#moyen_detection .morefield>input[type="text"] {
  margin: 0 10px 0 5px;
  width: 3em;
}

#restriction_circulation {
  margin-top: 5px;
}

#restriction_circulation .morefield>input[type="text"] {
  margin: 0 10px 0 5px;
  width: 9em;
}

#restriction_circulation .morefield>input[type="radio"] {
  margin-right: 5px;
  vertical-align: -2px;
}

#vehicule_implique {
  max-width: 45em;
}

#vehicule_implique tr:first-child th {
  text-align: center;
}

#vehicule_implique td:last-child {
  text-align: center;
}

#vehicule_implique th {
  white-space: nowrap;
  font-weight: bold;
  font-size: 0.9em;
}

#vehicule_implique input {
  width: 100%;
  text-align: center;
}


/*
###########################################
##   C H E C K B O X   A N D   S O R T   ##
###########################################
*/
.checkboxsort {
  height: 1.4em;
}

.checkboxsort.checked {
  height: 2em;
}

.checkboxsort>input[type="checkbox"] {
  margin-right: 5px;
  display: block;
  float: left;
}

.checkboxsort>label {
  display: block;
  padding-top: 0.2em;
  float: left;
  margin-right: 20px;
}

.checkboxsort .morefield {
  font-size: 0.9em;
  float: right;
  display: none;
}

.checkboxsort.checked .morefield {
  display: block;
}


/*
===== FLECHES =====
*/

.checkboxsort .direction {
  display: none;
  float: left;
}

.checkboxsort.checked .direction {
  display: block;
  margin-top: -2px;
  margin-right: 5px;
}

.checkboxsort .arrow {
  width: 0;
  height: 0;
  --size: 12px;
  --colorArrow: var(--colorFg2);
  border-left: var(--size) solid transparent;
  border-right: var(--size) solid transparent;
}

.checkboxsort .arrow:hover {
  --colorArrow: var(--colorFg1);
}

.checkboxsort .arrow:active {
  --colorArrow: var(--colorFg3);
}

.checkboxsort .arrow-up {
  border-bottom: var(--size) solid var(--colorArrow);
  margin-bottom: 2px;
}

.checkboxsort .arrow-down {
  border-top: var(--size) solid var(--colorArrow);
}