:root {
  --dark: #323232;
  --less-dark: #515151;
  --light: #f4f4f4;
  --yellow: #ffed66;
  --cyan: #00cecb;
  --magenta: #ff5e5b;
  --success: #2fb06b;
}

@media (prefers-color-scheme: light) {
  :root {
    --dark: #323232;
    --less-dark: #515151;
    --light: #f4f4f4;
    --yellow: #ffed66;
    --cyan: #00cecb;
    --magenta: #ff5e5b;
  }
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Jost";
  src: url("/static/fonts/jost-400-book-webfont.woff2") format("woff2"),
    url("/static/fonts/jost-400-book-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/static/fonts/jost-400-bookitalic-webfont.woff2") format("woff2"),
    url("/static/fonts/jost-400-bookitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/static/fonts/jost-700-bold-webfont.woff2") format("woff2"),
    url("/static/fonts/jost-700-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/static/fonts/jost-700-bolditalic-webfont.woff2") format("woff2"),
    url("/static/fonts/jost-700-bolditalic-webfont.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

html {
  padding: 0px;
  margin: 0px;
  width: 100%;
  height: calc(100% - 40px);
}

body {
  padding: 0px;
  margin: 0px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--light);
  /* background */
  background-image: url("/static/img/blob.webp");
  background-size: cover;
  background-position: center;
}

/* fonts */

body {
  font-family: "Jost", sans-serif !important;
  font-weight: normal;
  font-size: 17px;
  color: var(--dark);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: "Jost", sans-serif;
}

button,
input,
label {
  font-family: "Jost", sans-serif !important;
}

p {
  line-height: 1.5em;
}

h1 {
  font-size: 2.6em;
}

h3 {
  display: inline-block;
}

.legal h3 {
  margin-bottom: 0px;
}

header h3 {
  margin-top: 0px;
}

h4 {
  margin-top: 10px;
  margin-bottom: 15px;
}

blockquote.code {
  padding: 1em;
  font-family: "Courier New", Courier, monospace;
  background-color: rgba(0, 0, 0, 0.1);
}

.legal h3 {
  display: block;
  margin: 1.5em 0em 0.5em 0em;
}

a {
  color: var(--less-dark);
  font-weight: bold;
  font-size: 18px;
  display: inline-block;
  position: relative;
  text-decoration: dashed underline var(--less-dark) 2px;
}

.feather {
  stroke: var(--magenta);
  translate: 0px 4px;
}

.footnote,
.footnote a {
  font-size: 13px;
}

.small,
.small a {
  font-size: 15px;
}

.emoji {
  font-size: 2em;
  line-height: 2em;
}

/* LIENS / BTNS */

.badge {
  padding: 2px 4px;
  border-radius: 5px;
  color: var(--light);
  font-size: 0.9em;
}

.badge.active {
  background-color: var(--success);
}

.badge.pending {
  background-color: var(--yellow);
  color: var(--less-dark);
}

.line {
  display: inline-block;
  position: relative;
  font-style: normal;
  z-index: 1;
  color: var(--dark);
}

.delete-link {
  color: var(--magenta);
}

a:hover,
a:focus {
  text-decoration: underline 2px;
}

a.line,
a.line:hover,
a.line:focus {
  color: var(--less-dark);
}

.line::after {
  width: 100%;
  height: 0.7em;
  content: " ";
  background-color: var(--yellow);
  position: absolute;
  left: 10px;
  bottom: 0px;
  z-index: -2;
}

a.line::before {
  width: 0%;
  height: 0.7em;
  content: " ";
  background-color: var(--magenta);
  position: absolute;
  left: 10px;
  bottom: 0px;
  z-index: -1;
  transition: 0.2s all;
  opacity: 0.3;
}

a.line:hover::before,
a.line:focus::before {
  width: 100%;
  transition: 0.2s all;
}

a.btn,
button.btn,
.btn {
  box-sizing: border-box;
  padding: 12px 40px 12px 40px;
  background-color: var(--magenta);
  text-transform: uppercase;
  color: var(--light);
  border-radius: 5px;
  transition: 0.3s all;
  white-space: nowrap;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  outline: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 15px;
}

.btn-disabled {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--less-dark);
}

a.btn.secondary,
button.btn.secondary,
.btn.secondary {
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--cyan);
  border: 2px solid var(--cyan);
}

a.btn:hover,
a.btn:focus,
button.btn:focus,
button.btn:hover {
  background-color: var(--cyan);
  text-decoration: underline 2px var(--light);
}

a.btn.secondary:hover,
button.btn.secondary:hover,
.btn.secondary:hover,
a.btn.secondary:focus,
button.btn.secondary:focus,
.btn.secondary:focus {
  background-color: inherit;
  color: var(--magenta);
  border: 2px solid var(--magenta);
  transition: 0.2s all;
}

.btn-big {
  font-size: 18px;
  font-weight: bold;
  border-radius: 40px;
  text-align: center;
  padding: 25px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-big:hover,
.btn-big:focus {
  transform: translatey(-8px);
  transition: all 0.2s;
}

.btn-big .feather {
  stroke: var(--light);
  width: 90px;
  height: 90px;
  stroke-width: 2;
  display: block;
  margin: auto;
  margin-bottom: 20px;
}

.btn-big.ybg .feather {
  stroke: var(--dark);
}

.cbg {
  background-color: var(--cyan);
  color: var(--light);
}

.mbg {
  background-color: var(--magenta);
  color: var(--light);
}

.ybg {
  background-color: var(--yellow);
  color: var(--dark);
}

/* table */
.card.table {
  overflow-x: auto;
}

table {
  min-width: 550px;
  padding: 0px 20px;
}

table tr td:first-child {
  text-align: left;
}

/* lago iframe */

#invoices-frame {
  border: 2px solid var(--cyan);
  border-radius: 5px;
}

/* forms */
input,
textarea {
  color: var(--dark);
  border-radius: 5px;
  outline: none;
  border: 2px solid var(--magenta);
  transition: 0.2s all;
  display: block;
  margin-bottom: 15px;
  margin-top: 8px;
}

input {
  height: 40px;
  padding: 0px 15px;
}

input:focus,
textarea:focus {
  border: 2px solid var(--cyan);
  transition: 0.2s all;
}

input::placeholder,
textarea::placeholder {
  opacity: 0.6;
}

textarea {
  width: 100%;
  padding: 15px;
  opacity: 0.8;
  margin-bottom: 15px;
}

label {
  font-weight: bold;
}

.btn .feather {
  stroke: var(--light);
  margin-left: 15px;
}

.btn.secondary .feather {
  stroke: var(--cyan);
}

fieldset {
  border: none;
  padding: 0px;
  margin: 0px;
}

.form-group label {
  display: block;
}

.newsletter .form-group {
  display: inline-block;
  text-align: left;
}

/* NOTIFICATIONS */

.notif {
  position: absolute;
  animation: 2s ease-in 7s 1 both hideNotif;
  opacity: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 5px;
  color: var(--light);
  font-weight: bold;
  border: 2px solid var(--light);
  cursor: default;
}

.notif-success {
  background-color: var(--cyan);
}

.notif-error {
  background-color: var(--magenta);
}

@keyframes hideNotif {
  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    height: 0;
  }
}

/* NAVIGATION */

nav {
  grid-column: 5;
  grid-row: 1;
  padding-top: 2em;
  position: fixed;
  right: 100px;
}

nav a.line,
nav a.line {
  text-decoration: none;
}

#mobile {
  display: none;
  position: absolute;
  top: 40px;
  right: 30px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  z-index: 99;
}

#mobile:hover,
#mobile:focus {
  text-decoration: underline;
}

#close {
  display: none;
  font-size: 60px;
  color: var(--magenta);
  cursor: pointer;
  position: absolute;
  z-index: 101;
  top: 10px;
  right: 30px;
  font-weight: bold;
}

#close:hover,
#close:focus {
  text-decoration: underline;
  color: var(--dark);
}

nav a {
  display: block;
  margin-bottom: 15px;
}

/* LAYOUT */
.cadre {
  width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  margin: 20px;
  border: 10px solid var(--dark);
  padding: 20px;
  padding-bottom: 40px;
}

.layout {
  display: grid;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
}

header {
  grid-row: 1;
  grid-column: 2/4;
}

.legal {
  grid-column: 2/5;
}

section {
  grid-column: 2/5;
}

p.info {
  font-style: italic;
  padding: 1em;
  background-color: rgba(0, 206, 203, 0.05);
  border-radius: 5px;
}

.cards-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
}

.flex {
  display: flex;
}

.flex .card {
  margin: 10px;
}

.border .card {
  padding: 15px;
  border: 2px solid var(--cyan);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.4);
  transition: 0.2s all;
}

.border .card .btn {
  margin-top: 15px;
}

.border .card:hover {
  border: 2px solid var(--magenta);
  transition: 0.2s all;
}

.border .card.here,
.border .card.here:hover {
  border: 4px solid var(--magenta);
}

.card {
  text-align: center;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: space-between;
}

.card.card-solo {
  min-width: 320px;
}

.card img {
  display: block;
  margin: auto;
  max-height: 110px;
  max-width: 100%;
  margin-bottom: 10px;
}

.card .separator-line {
  width: 100%;
  height: 1px;
  background-color: var(--cyan);
  margin: 1rem auto;
}

a.card {
  font-weight: normal;
  cursor: pointer;
  text-decoration: none;
}

col:target {
  background-color: var(--yellow);
}

.center {
  grid-column: 2/5;
  text-align: center;
}

.right {
  grid-column: 2/5;
  text-align: right;
}

.left {
  grid-column: 2/5;
  text-align: left;
}

.not-found {
  height: 400px;
  max-width: 80%;
  background-image: url("/static/img/404.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.error-img {
  height: 400px;
  max-width: 80%;
  background-image: url("/static/img/error-img.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.maintenance-img {
  height: 400px;
  max-width: 80%;
  background-image: url("/static/img/projet.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.checklist {
  text-align: left;
  padding-left: 30px;
  margin-bottom: 30px;
}

.checklist h4 {
  margin-bottom: 0px;
}

.center img {
  max-width: 80%;
  margin: auto;
}

.centered {
  text-align: center;
}

.separator {
  font-size: 3em;
  padding: 2rem;
  text-align: center;
  grid-column: 2/5;
}

.newsletter input {
  height: 52px;
  display: inline-block;
  margin-right: 10px;
}

.newsletter .btn .feather {
  margin: 0px;
}

.newsletter .btn {
  height: 52px;
  top: 1px;
  position: relative;
}

/* about */

.about {
  grid-column: 2/5;
  display: grid;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.about-left {
  grid-column: 1;
}

.about-left img {
  max-width: 100%;
  border-radius: 10px;
}

.about-right {
  grid-column: 2/4;
  padding-top: 30px;
}

.about-right a {
  font-size: 17px;
}

footer {
  grid-column: 2/5;
  position: absolute;
  bottom: 32px;
}
