@charset "UTF-8";

:root {
  --network-background-color: #1b1b1b;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: normal;
  color: black;
  font-size: 14px;
  line-height: 160%;
}

@font-face {
  font-family: 'Open Sans Condensed';
  src: url("./font/OpenSansCondensed-Light.woff2") format("woff2"), url("./font/OpenSansCondensed-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url("./font/OpenSans-SemiBold.woff2") format("woff2"), url("./font/OpenSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url("./font/OpenSans-Italic.woff2") format("woff2"), url("./font/OpenSans-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url("./font/OpenSans-Regular.woff2") format("woff2"), url("./font/OpenSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inconsolata';
  src: url("./font/Inconsolata-Regular.woff2") format("woff2"), url("./font/Inconsolata-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inconsolata';
  src: url("./font/Inconsolata-Bold.woff2") format("woff2"), url("./font/Inconsolata-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

.mono {
  font-family: 'Inconsolata', monospace;
  font-weight: normal;
  font-style: normal;
}

@keyframes valid {
  0% { background-color: black; }
  10% { background-color: #148114; }
  50% { background-color: #36c536; }
  90% { background-color: #148114; }
  100% { background-color: black; }
}

@keyframes mmfadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1 {
  font-size: 28px;
}

h2 {
  margin: unset;
  font-size: 24px;
}

h3 {
  margin: unset;
  font-size: 18px;
}

h2, h3 {
  font-family: 'Inconsolata', monospace;
  font-weight: normal;
  font-style: normal;
}

hr {
  border: 1px solid lightgray;
}

.lateral, .entete {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

body {
  cursor: default;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

main {
  position: relative;
  width: 100%;
}

.lateral {
  box-sizing: border-box;
  position: absolute;
  width: 320px;
  top: 0px;
  background-color: #fffcfb;
  height: calc(100vh - 90px);
  z-index: 100;
  transition: transform .2s;
  transition-timing-function: cubic-bezier(0.96, 0, 0.19, 1.12);
}

.lateral--left {
  left: 0px;
  transform: translate(-100%);
}

.lateral--right {
  right: 0px;
  transform: translate(100%);
}

.lateral--active {
  transform: translate(0%);
}

.lateral--fixed {
  position: fixed;
  top: 90px;
}

.lateral>button {
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  border: unset;
  font-size: 15px;
  padding: 2px 0;
  height: 25px;
  background-color: black;
  color: white;
}

button:focus {
  outline: none;
}

.btn-group {
  cursor: pointer;
  position: relative;
  display: block;
  padding: 6px 30px 6px 12px;
  margin: 0 4px;
  border: unset;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  width: 100%;
  font-size: 14px;
  color: white;
  white-space: nowrap;
  font-family: 'Inconsolata', monospace;
}

#filter-volet .btn-group {
  margin: unset;
  height: 40px;
  border-radius: unset;
}

.btn-group::after {
  position: absolute;
  content: '✓';
  color: black;
  width: 15px;
  height: 15px;
  background-color: white;
  border-radius: 2px;
  right: 10px;
}

.btn-group.active::after {
  content: '';
}

.about {
  margin-top: 90px;
  overflow-y: auto;
  padding: 10px;
}

.about h1 {
  margin: 0;
}

.about__img {
  height: 50%;
  min-width: 150px;
  max-width: 300px;
  margin-bottom: 10px;
}

.entete {
  display: flex;
  position: fixed;
  z-index: 100;
  top: 0px;
  left: 0px;
  user-select: none;
  padding: 10px 20px;
  width: 100%;
  height: 90px;
  background-color: white;
}

.entete div.entete-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.entete div.entete-col+div.entete-col {
  margin-left: 20px;
}

.entete div.entete-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.entete .identite {
  cursor: pointer;
}

.title-site {
  margin: unset;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title-site span {
  font-weight: bold;
}

.lang-box {
  display: flex;
  font-family: 'Inconsolata', monospace;
}

.lang-box .lang-flag {
  cursor: pointer;
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.lang-box .lang-flag[data-active="true"] {
  text-decoration: underline;
  font-weight: bold;
}

.lang-box span {
  position: relative;
  left: -6px;
  font-size: 18px;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: 20px;
}

.navigation ul {
  display: flex;
  align-items: baseline;
}

.navigation li, #about-btn {
  cursor: pointer;
  margin: 0 5px;
  white-space: nowrap;
  font-size: 18px;
  text-decoration: underline;
  background-color: transparent;
  font-family: serif;
  font-family: 'Inconsolata', monospace;
  border: unset;
}

.navigation li.active {
  font-weight: bold;
}

.filter-bar div {
  margin: 0 10px 0 0;
}

.fiche--active {
  transform: unset;
}

#fiche-content {
  overflow: auto;
  height: 100%;
  box-sizing: border-box;
  padding: 10px;
  visibility: hidden;
}

#fiche-content.visible {
  visibility: visible;
}

#fiche-toggle-btn {
  position: absolute;
  top: calc(50% - 40px);
  right: 100%;
  background-color: #f0f0f0;
  border: unset;
  color: #222222;
  height: 45px;
  width: 30px;
  font-size: 14px;
  border-bottom-left-radius: 10%;
  border-top-left-radius: 10%;
}

#fiche-toggle-btn.active span {
  display: inline-block;
  transform: rotate(180deg);
}

#fiche-head {
  margin-bottom: 10px;
  display: flex;
}

#fiche-title {
  cursor: pointer;
}

#fiche-meta-img {
  cursor: pointer;
  border-radius: 2px;
  width: 150px;
  height: 210px;
  margin-right: 12px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.fiche header .label {
  font-family: 'Open Sans Condensed', sans-serif;
  display: inline-block;
  line-height: 115%;
  font-size: 25px;
  margin-bottom: 5px;
}

.fiche-dates {
  border-bottom: 1px solid #d5d5d5;
  padding-bottom: 7px;
  margin-bottom: 10px;
}

.fiche-btns-box {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

#fiche-wiki-link {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background-color: #e7e7e7;
  background-image: url("./icons/wikipedia.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

#fiche-permalien {
  cursor: pointer;
  background-color: black;
  color: white;
  border: 0;
  padding: 5px 0;
  width: 90px;
}

#fiche-permalien.active {
  animation-name: valid;
  animation-duration: 1s;
  animation-timing-function: linear;
}

.fiche-row {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 15px;
}

.fiche-row span:first-of-type {
  font-family: 'Inconsolata', monospace;
  margin-right: 7px;
  margin: 0 7px 0 0;
}

.fiche-description {
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid #d5d5d5;
  border-bottom: 1px solid #d5d5d5;
  min-height: 75px;
}

.fiche-description::first-letter {
  float: left;
  font-size: 50px;
  top: 50px;
  padding-top: 8px;
  padding-right: 4px;
}

.connexions .libelle {
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
}

.connexions li {
  display: flex;
  align-items: center;
  padding: 6px 2px;
  cursor: pointer;
}

.connexions span {
  display: block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  transition: transform .1s;
}

.connexions li:hover span {
  transform: scale(1.4);
}

.search-box {
  position: relative;
}

.search-box label {
  cursor: pointer;
  position: absolute;
  font-size: 0px;
  width: 24px;
  height: 27px;
  background-size: 15px;
  background-color: white;
  background-image: url("./icons/search.svg");
  display: block;
  left: 0px;
  z-index: 1;
  top: 0px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 3px 0 0 3px;
}

.search-box input {
  position: relative;
  box-sizing: border-box;
  font-size: 18px;
  border-radius: 5px;
  border: unset;
  text-indent: 30px;
  width: 100%;
  height: 27px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  font-family: 'Inconsolata', monospace;
}

.no-list-style {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-list {
  position: absolute;
  z-index: 100;
  font-size: 18px;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.search-list li {
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  background: #fffcfb;
  border-top: 1px solid black;
  font-family: 'Open Sans Condensed', sans-serif;
}

.search-list li:hover {
  background-color: #ebebeb;
}

.network-wrapper {
  position: relative;
  width: 100vw;
  height: calc(100vh - 90px);
  margin-top: 90px;
  background-color: var(--network-background-color);
}

.network-wrapper>button {
  z-index: 1;
  cursor: pointer;
  position: absolute;
  top: 15px;
  border: unset;
  width: 50px;
  height: 50px;
}

.network-wrapper .filter-volet-btn {
  left: 15px;
  background: url("./icons/filter.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.network {
  height: 100%;
}

#network {
  display: none;
}

.command-board {
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding: 0 0 10px 10px;
}

.command-board>.zoom-box {
  display: flex;
  justify-content: center;
}

.command-board button {
  cursor: pointer;
  background: black;
  border: 2px solid black;
  border-radius: 3px;
  font-size: 15px;
  padding: 5px;
  color: white;
  min-width: 30px;
  height: 30px;
  margin: 7px 0;
}

.zoom-box button.dezoom {
  background: url("./icons/dezoom.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
  border-radius: 10% 0 0 10%;
  background-color: #f0f0f0;
}

.zoom-box button.zoom {
  border-left: unset;
  background: url("./icons/zoom.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
  border-radius: 0 10% 10% 0;
  background-color: #f0f0f0;
}

.board {
  position: relative;
  background-color: white;
}

.board-wrapper {
  overflow: auto;
  box-sizing: border-box;
  height: calc(100vh - 95px);
  padding-left: 36px;
  width: calc(100% - 320px);
}

.board .section {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0;
}

.board .section .title {
  display: inline-block;
  font-size: 28px;
  border-bottom: 1px solid black;
  width: 100%;
  margin-top: 50px;
  line-height: 190%;
  text-indent: 20px;
}

.sort-alphabetic-list {
  position: absolute;
  left: 0px;
  list-style: none;
  margin: 5px 0;
  padding: 15px 7px;
  height: 100%;
  box-sizing: border-box;
  z-index: 400;
  border-right: 1px solid black;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.sort-alphabetic-list li {
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  margin: 5px;
  font-family: monospace;
  font-size: 18px;
}

.sort-alphabetic-list__caracter:hover {
  text-decoration: underline;
}

.card {
  background-color: #fdfdfd;
  position: relative;
  cursor: pointer;
  margin: 20px;
  width: 210px;
  height: auto;
  border-radius: 3px;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.card header {
  display: flex;
  margin-bottom: 20px;
}

.card img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 3px 0 0 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.card-identite {
  width: 120px;
  padding: 5px 0 0 10px;
}

.card-identite h3 {
  font-family: 'Open Sans Condensed', sans-serif;
  margin: 0 0 5px 0;
  overflow-wrap: break-word;
  font-size: 20px;
}

.card h4 {
  margin: 10px;
}

.modal-overlay {
  position: fixed;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  width: 100%
}

.modal-container {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 30px;
  height: calc(100vh - 50px);
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-header {
  position: fixed;
  top: 60px;
  right: 35px;
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  cursor: pointer;
  font-size: 1.5rem;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  color: black;
  box-sizing: border-box;
}

.modal-close {
  background: transparent;
  border: 0;
}

.modal-header .modal-close:before {
  content: "\2715";
}

.modal-content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.8);
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal-overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

#graph {
  width: 100%;
  height: 100%;
}

line { stroke: gray; }

g.translucent circle { stroke-opacity: 0.2; fill: transparent; }
g.translucent image { opacity: 0.2; }
line.translucent { stroke-opacity: 0.2; }
line.highlight { stroke-width: 3; }
text {
  fill: white;
  font-family: 'Open Sans';
}

[title] {
  position: relative;
}

.fiche [title]:hover::before {
  position: absolute;
  content: attr(title);
  border-radius: 3px;
  background-color: white;
  box-sizing: border-box;
  padding: 5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  bottom: 100%;
}