:root {
  --vert: #25A62D;
  --bleu: #00A1E5;
}

* {
  margin: 0;
  padding: 0;
  color: black;
  font-family: 'DM Sans';
  box-sizing: border-box;
}

html {
  background-color: #DEF5FF;
}

nav {
  display: block;
  font-size: 1.5em;
  z-index: 9;
}

nav a {
  text-decoration: none;
  white-space: nowrap;
}

button, a {
  color: var(--vert);
  transition: all 2.4s;
}

a:hover {
  color: var(--bleu);
}

main {
  margin: 20px 8px 0 8px;
}

label {
  display: block;
}

form {
  margin: auto;
  max-width: 800px;
}

table {
  width: 100%;
}

button {
  color: var(--bleu);
  display: block;
  width: 100%;
}

.flash-message {
  margin: 8px 12px;
  max-width: 60em;
  font-size: 1.2em;
  border: 1px solid var(--vert);
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--vert);
  cursor: pointer;
}

.alert-danger {
  border: 1px solid red !important;
  color: red !important;
}

.annonce-content {
  width: 100%;
}

h1 {
  text-align: center;
  color: white;
  background-color: var(--vert);
  border-radius: 0 23px 23px 0;
}

h2, h3, h4, h5, h6 {
  color: var(--vert);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{
  color: white;
}

#page-content {
  max-width: 60em;
  margin: auto;
  padding: 4px 8px;
}

.admin-panel {
  margin: 11.11px 4.4px;
  border-top: 1px solid #ccc;
  padding: 4px;
}

.annonce {
  margin-bottom: 17.2222222px;
  padding: 4px 8px;
}

.annonce-date {
  color: var(--bleu);
}

.page-link {
  display: inline-block;
  text-decoration: underline;
}

.page-link + .page-link {
  padding-left: 0.2em;
}

.draft {
  font-style: italic;
  opacity: 0.8;
}

.required:before {
  content:"* ";
  color: red;
}

textarea {
  width: 100%;
  height: 6em;
}

img {
  max-width: 100%;
}

.user-links {
  max-width: 800px;
  margin: auto;
  margin-bottom: 1.5em;
}

.user-links a {
  display: inline-block;
  color: white;
  font-weight: bold;
  background-color: var(--bleu);
  text-decoration: none;
  padding: 0.4em 0.8em;
  border-radius: 1em;
  margin: 3px;
}

#nav-button {
  display: none;
}

#label-check {
  display: none;

  position: fixed;
  box-sizing: border-box;
  margin: 0;
  background-color: white;
  padding: 5px;
  left: calc(50vw - 1.5em);
  border: 1px solid var(--vert);
  bottom: 0;
  text-align: center;
  border-radius: 1em 1em 0 0;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.8s;

  width: 5em;
  height: 6em;

  border-bottom: 4px;
  padding-bottom: 4px;
}

#label-check img {
  width: 100%;
}

#menu-check {
  position: fixed;
  display: none;
}

nav {
  position: sticky;
  top: 0;
  background-color: #DEF5FF;
  box-shadow: 0 5px 5px var(--bleu);
}

hr {
  border-top: 1px solid var(--bleu);
  opacity: 0.6;
}

.cursive {
  font-family: cursive;
}

.signature {
  font-family: cursive;
  font-size: 1.6em;
  text-align: right;
}

.love-container {
  max-width: 80em;
  margin: auto;
}

.love-message {

}

.love-message p {
  margin: 2.2em;
}

.love-message + .love-message {
  border-top: 1px solid var(--bleu);
}

@media (max-width: 600px) {
  #nav-button {
    display: unset;
  }

  main {
    filter: blur(0px);
    transition: filter 1s;
    margin-bottom: 7em;
  }

  nav {
    position: fixed;
    top: 105vh;
    left: 5vw;
    width: 90vw;
    max-height: 90vh;
    background-color: white;
    z-index: 666;
    overflow-y: auto;
    transition: top 0.8s;
  }

  .page-link {
    text-align: right;
  }

  .page-link + .page-link {
    border-top: 1px solid #DEF5FF;
    padding-left: 0;
  }
  nav a {
    display: block !important;
    margin: 0 1em;
  }

  #label-check {
    display: block;
  }
  
  #menu-check:checked ~ nav {
    display: block;
    top: 5vh;
  }

  #menu-check:checked ~ main {
    filter: blur(3px);
  }
}

input[type="text"] {
  width: 20em;
}

input[type="number"] {
  width: 8em;
}