/* ------------------------------------------------------------------ titres */

/* fil d'ariane */

#content > h2 {
  padding: 0 1em 0.5em 1em;
  margin: 0 -1em 1em -1em;
  background: var(--breadcrumb-background);
  border-bottom: 1px solid var(--breadcrumb-border);
}

/* page courante dans le fil d'ariane */

.page-title {
  color: var(--breadcrumb-current);

  img {
    padding-left: 0.5em;
    vertical-align: middle;
  }
}

/* autres titres */

#main-menu h3 {
  font-weight: bold;
}

.fieldset h3,
.fieldset h4,
.pretty-title {
  color: var(--fieldset-pretty-title-color);
  font-size: 1em;
  font-weight: bold;
}

.fieldset h3 {
  font-size: 1.17em;
}

.fieldset h3.smart-title,
.fieldset h4.smart-title,
.smart-title {
  font-size: 1em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--fieldset-smart-title-color);
}

#entry-sidebar h5 {
  font-weight: normal;
  color: var(--entry-sidebar-title-color);
}

.entry-status img.img_select_option {
  padding-left: 4px;
  vertical-align: -1px;
}

h4 label,
h5 label {
  color: var(--title-label-color);
}

h2,
h3,
h4,
h5,
ul,
p {
  &:first-child {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------- tableaux */

/*  Pour autoriser le scroll sur les petites largeurs
  envelopper les tableaux dans une div.table-outer */

.table-outer {
  width: 100%;
  overflow: auto;
}

table {
  font-size: 1em;
  border-collapse: collapse;
  margin: 0 0 1em 0;
  width: 100%;
}

caption {
  color: var(--table-caption-color);
  font-weight: bold;
  text-align: left;
  margin-bottom: 0.5em;
}

th:not(.module-name) {
  border-width: 1px 0 1px 0;
  border-style: solid;
  border-color: var(--head-border);
  background: var(--head-background);
  padding: 0.4em 1em 0.4em 0.5em;
  vertical-align: top;
  text-align: left;
}

td,
th.module-name {
  font-weight: normal;
  border-width: 0 0 1px 0;
  border-style: solid;
  border-color: var(--cell-border);
  padding: 0.4em 1em 0.4em 0.5em;
  vertical-align: top;
}

/* ---------------------------------------------------------- autres balises */

p {
  margin: 0 0 1em 0;
}

hr {
  height: 1px;
  border-width: 1px 0 0;
  border-color: var(--hr-color);
  background: var(--hr-color);
  border-style: solid;

  &.clearer {
    clear: both;
  }
}

pre,
code,
#debug {
  font: 100% $monospace;
}

code {
  color: var(--code-color);
  background: var(--code-background);
}

pre {
  white-space: pre;
  white-space: -moz-pre-wrap;
  white-space: pre-wrap;
  white-space: pre-line;
  word-wrap: break-word;
}

abbr {
  cursor: help;
}

input,
textarea,
select,
option,
optgroup,
legend,
label {
  font-size: 1em;
}

/* ------------------------------------------------------------------ liens */

a,
a:link,
a:visited {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--link-border);
  background-color: inherit;
  outline: 0;

  img {
    border: none;
    background: initial;
  }
}

a:hover,
a:active {
  border-bottom-style: solid;
}

h1 a:link,
h1 a:visited {
  border: none;
}

.discrete a {
  color: var(--discrete-link-color);
}

a:link {
  transition: 0.5s;
}

a:focus,
a:focus img {
  outline: 2px solid var(--link-outline);
  border-bottom: none;
  text-decoration: none;
}

a.outgoing img,
.outgoing-js {
  width: 0.75em;
  filter: contrast(var(--outgoing-link-filter));

  #header & {
    width: 1.25em;
    padding: 0 0 0 0.5em;
    vertical-align: initial;
    filter: contrast(100%);
  }
}
