@charset "UTF-8";

@font-face {
  font-family: "Caviar Dreams Sans";
  src: url("../fonts/CaviarDreams/CaviarDreams.ttf") format("truetype"),
    url("../fonts/CaviarDreams/CaviarDreams.woff") format('woff');
}

@font-face {
  font-family: "Caviar Dreams Sans";
  src: url("../fonts/CaviarDreams/CaviarDreams_Bold.ttf") format("truetype"),
    url("../fonts/CaviarDreams/CaviarDreams_Bold.woff") format('woff');
  font-weight: bold;
}

@font-face {
  font-family: "Caviar Dreams Sans";
  src: url("../fonts/CaviarDreams/CaviarDreams_Italic.ttf") format("truetype"),
    url("../fonts/CaviarDreams/CaviarDreams_Italic.woff") format('woff');
  font-style: italic;
}

@font-face {
  font-family: "Caviar Dreams Sans";
  src: url("../fonts/CaviarDreams/CaviarDreams_BoldItalic.ttf") format("truetype"),
    url("../fonts/CaviarDreams/CaviarDreams_BoldItalic.woff") format('woff');
  font-weight: bold;
  font-style: italic;
}

/* --------------------------------------------------------------------------------*/

@font-face {
  font-family: "Liberation Serif";
  src: url("../fonts/Liberation/LiberationSerif-Regular.ttf") format("truetype"),
    url("../fonts/Liberation/LiberationSerif-Regular.woff") format('woff');
}

@font-face {
  font-family: "Liberation Serif";
  src: url("../fonts/Liberation/LiberationSerif-Bold.ttf") format("truetype"),
    url("../fonts/Liberation/LiberationSerif-Bold.woff") format('woff');
  font-weight: bold;
}

@font-face {
  font-family: "Liberation Serif";
  src: url("../fonts/Adega/CaviarDreams_Italic.ttf") format("truetype"),
    url("../fonts/Liberation/LiberationSerif-Italic.woff") format('woff');
  font-style: italic;
}

@font-face {
  font-family: "Liberation Serif";
  src: url("../fonts/Liberation/LiberationSerif-BoldItalic.ttf") format("truetype"),
    url("../fonts/Liberation/LiberationSerif-BoldItalic.woff") format('woff');
  font-weight: bold;
  font-style: italic;
}


/* -----------------------------------------------------------------------------------*/

@keyframes hideAnimation {
  to {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes inputFocus {
  from {
    border-bottom: 0.2em solid lightgrey;
  }

  to {
    border-bottom: 0.2em solid rgb(102 169 0);
  }
}

@keyframes textareaFocus {
  from {
    border: 0.1em solid lightgrey;
  }

  to {
    border: 0.1em solid rgb(102 169 0);
  }
}

@keyframes commentsFocus {
  from {
    border-right: 0.1em solid lightgrey;
		border-top: 0.1em solid lightgrey;
		border-left: 0.1em solid lightgrey;
  }

  to {
    border-right: 0.1em solid rgb(102 169 0);
		border-top: 0.1em solid rgb(102 169 0);
		border-left: 0.1em solid rgb(102 169 0);
  }
}

@keyframes submitSectionFocus {
  from {
    border-right: 0.08em solid lightgrey;
		border-bottom: 0.08em solid lightgrey;
		border-left: 0.08em solid lightgrey;
  }

  to {
    border-right: 0.08em solid rgb(102 169 0);
		border-bottom: 0.08em solid rgb(102 169 0);
		border-left: 0.08em solid rgb(102 169 0);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Caviar Dreams Sans";
  background-color: black;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  color: white;
}

.hidden {
  display: none !important;
}

.unvisible_element {
  visibility: hidden;
  width: 0;
  height: 0;
}

.ghost_element {
  opacity: 0;
}

a.nodecoration {
  text-decoration: none;
}

a,
a:visited {
  text-decoration: none;
  color: white;
}

a:hover,
a:focus {
  text-shadow: 0.04em 0.04em 0.06em black, 0 0 0.8em white, 0 0 0.4em white;
}

html input:focus,
html input:focus-within, body select:focus, body select:focus-within { /* removed margin, padding 0*/
  border: solid 0.1em grey;
  outline: none;
}

ul, ul ul, ul li ul, li, li ul, li li {
  list-style-type: none;
}

#container form section ul {
  padding: 0;
}

.bold {
  font-weight: bold;
}

form textarea {
  outline: none;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
}

form ul li {
  color: orangered;
}

form:not(.article) textarea {
  border-radius: 1em;
  border: 0.1em solid lightgray;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

#videofix_ios_lowpowermode {
  display: none;
}

#videobg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  right: 0;
  bottom: 0;
  object-fit: cover;
  min-height: 100%;
  min-width: 100%;
  z-index: -100;
  background-color: black;
  /*background-image: url("../images/video.mp4");*/ /*seems not needed*/
  background-position: center center;
  background-size: contain;
}

header {
  display: none;
}

#menu {
  position: fixed;
  top: 0;
  height: 3em;
  width: 100%;
  padding: 0.9em;
  background-color: rgba(32, 32, 32);
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#menu #logo {
  height: 3em;
  width: 3em;
  background-image: url(../images/logo.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 3em;
  background-color: rgba(32, 32, 32);
}

.menu {
  position: absolute;
  width: 100%;
  top: 3em;
  left: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

#menu-toggle~.menu>li {
  position: relative;
  visibility: hidden;
  width: 100%;
  top: 0;
  left: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle:checked~.menu li {
  visibility: visible;
  height: 2.5em;
  transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle:checked~.menu li:first-child {
  border-top: 0.1em solid #333;
}

#menu-toggle:checked~.menu li {
  border-bottom: 0.1em solid #333;
  color: white;
  background-color: #222;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.menu>li:not(:last-child) {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.menu>li:not(:last-child) {
  border-bottom: 0.1em solid #444;
}

#menu-toggle:checked~.menu li a {
  width: 100%;
  text-align: center;
  line-height: 2.5em;
}

.menu-button-container {
  display: flex;
  height: 100%;
  width: 1.8em;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 0.187em;
  width: 1.8em;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 0.2em;
}

.menu-button::before {
  content: '';
  margin-top: -0.5em;
}

.menu-button::after {
  content: '';
  margin-top: 0.5em;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
  margin-top: 0;
  transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
  margin-top: 0;
  transform: rotate(-405deg);
}

#menu-toggle:checked~.menu ul#connect {
  margin: 0;
  padding: 0;
  width: 100%;
}

#menu-toggle:checked~.menu ul#connect>li:first-child {
  border-top: none;
  height: unset;
  min-height: 2.5em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

#menu-toggle:checked~.menu ul#connect>li>a,
#menu-toggle:checked~.menu ul#connect>li>div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

#menu-toggle:checked~.menu ul#connect>li>a>img,
#menu-toggle:checked~.menu ul#connect>li>div>img a.visible-icons img,
.article .comment_infos img,
.article .author_section img {
  border-radius: 50%;
  height: 1.5em;
  margin-left: 1em;
}

#menu-toggle:checked~.menu ul#connect>li>a>span,
#menu-toggle:checked~.menu ul#connect>li>div>span {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0 1em;
}

#menu-toggle:checked~.menu ul#connect>li>a#login-icon~form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: baseline;
  width: 16.5em;
  visibility: hidden;
  height: 0;
}

#menu-toggle:checked~.menu ul#connect:focus-within>li>a#login-icon~form,
#menu-toggle:checked~.menu ul#connect:focus>li>a#login-icon~form,
#menu-toggle:checked~.menu ul#connect:hover>li>a#login-icon~form {
  visibility: visible;
  height: 100%;
}

#menu-toggle:checked~.menu ul#connect>li>form input {
  margin: 0;
  padding: 0;
  margin-top: 0.5em;
  height: 2.01em;
}

#menu-toggle:checked~.menu ul#connect>li>form input[type="submit"] {
  margin: 0;
  padding: 0;
  width: 2.5em;
  margin-left: -0.5em;
  margin-top: 0.5em;
  border: solid 0.1em grey;
  background-color: #f0f0f0;
  color: black;
  border-left: none;
  height: 2.01em;
}

#menu-toggle:checked~.menu ul#connect>li>form>input[type="email"] {
  width: 14.04em;
}

#menu-toggle:checked~.menu ul#connect>li>form .row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#menu-toggle:checked~.menu ul#connect>li>form input[type="password"] {
  width: 11.54em;
}

#menu-toggle:checked~.menu ul#connect>li>form>#rememberme {
  margin-top: 1em;
  margin-bottom: 1em;
  width: 60%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: flex-end;
}

#menu-toggle:checked~.menu ul#connect>li>form>#rememberme input {
  margin: 0;
  padding: 0;
  margin-top: 0.3em;
  background-color: white;
  margin-right: 0.5em;
  margin-left: 0.5em;
  width: 0.9em;
  height: 0.9em;
  border-radius: 0.1em;
}

#menu-toggle:checked~.menu ul#connect>li>form>#rememberme>label {
  height: 1.5em;
}

#menu-toggle:checked~.menu ul#connect>li>form>a {
  font-size: 0.7em;
  margin-top: 1em;
  margin-bottom: 1em;
  display: block;
  width: 40%;
  text-align: center;
}

h1 {
  visibility: hidden;
  margin: 0;
  padding: 0;
  width: 0;
  height: 0;
}

h2 {
  text-align: center;
}

h3 {
  font-size: 1.9em;
    margin: 0;
    padding: 0.8em 0;
}

.alert {
  width: 100%;
  height: 100%;
  line-height: 2em;
  font-size: 2em;
  position: fixed;
  left: 0;
  top: 0;
  background: rgb(255 255 255 / 50%);
  z-index: 1;
  visibility: visible;
  opacity: 1;
  display: block;

  animation: hideAnimation 1.2s 1;
  animation-fill-mode: forwards;
  animation-delay: 1.2s;

  -webkit-animation: hideAnimation 1.2s 1;
  -webkit-animation-delay: 1.2s;
  /* Safari and Chrome */
  -webkit-animation-fill-mode: forwards;

  -ms-animation: hideAnimation 1.2s 1;
  -ms-animation-fill-mode: forwards;
  -ms-animation-delay: 1.2s;

  -moz-animation: hideAnimation 1.2s 1;
  -moz-animation-fill-mode: forwards;
  -moz-animation-delay: 1.2s;

  -o-animation: hideAnimation 1.2s 1;
  -o-animation-fill-mode: forwards;
  -o-animation-delay: 1.2s;
}

.alert-success {
  color: darkgreen;
}

.alert-danger,
.alert-error {
  color: orangered;
}

#connect .alert-danger,
#connect .alert-error {
  color: orangered;
  padding: 0 0.5em;
}

.alert-firewall {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 1.4em;
  top: 4em;
  color: black;
  line-height: 1.4em;
  background: rgb(255 255 255 / 50%);
  left: 0;
}

.alert>span {
  width: 100%;
  text-align: center;
  position: absolute;
  top: calc(50% - 1em);
}

#connect .alert>span {
  width: calc(100% - 1em);
}

#container {
  margin-top: 3em;
  font-family: "Liberation Serif";
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: stretch;
}

#container form:not(.article):not(#visiblelogin):not(.comment_forms):not(#humanVerificationForm):not(#contactform) {
    margin-top: 3em;
    min-height: 26em;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: flex-end;
    background: white;
    background-image: url('../images/plantes_bg.png');
    background-size: cover;
    background-position: center;
    padding: 2em;
    border-radius: 0.4em;
    color: black;
    font-family: 'Caviar Dreams Sans';
    box-shadow: 0.313em 0.313em 0.313em rgb(0 0 0 / 51%);
}

#container form:not(.article):not(#visiblelogin) section > section:not(#description) {
  margin: 0.8em 1em;
}

#container form:not(.article):not(#visiblelogin):not(#contactform) section section:not(#description) div:first-child {
  margin-top: 1.5em;
}

#container form:not(.article):not(#visiblelogin) div:not(:first-child) {
  margin-top: 0.8em;
}

#container form:not(.article):not(#visiblelogin) label {
    font-weight: bold;
    color: rgb(0 0 0 / 50%);
}

#container form:not(.article):not(#visiblelogin):not(#humanVerificationForm):not(#contactform):not(#resetpwdform) input:not([type="file"]):not([type="checkbox"]) {
    width: calc(100% - 12.949em);
    max-width: 45em;
    height: 1.8em;
    border: none;
    border-bottom: 0.2em solid lightgray;
    padding: 0 1em;
}

#container form:not(.article):not(#visiblelogin) section div ul {
  margin: 0;
  width: 37.5em;
  padding: 0.8em 0 0;
  color: orangered;
  text-align: center;
}

#container form:not(.article):not(#visiblelogin) section div.captcha_error ul {
  width: initial;
  margin-left: initial;
}

#container form:not(.article):not(#visiblelogin):not(.comment_forms) input[type="submit"], #container form:not(.article):not(#visiblelogin):not(.comment_forms) button[type="submit"] {
  background-color: lightgray;
    margin: 0;
    padding: 0.7em 1em;
    border: 0.1em solid black;
    border-radius: 1em;
    cursor: pointer;
}

#container form:not(.article) .input_type_file_container {
  width: 15em;
  height: 15em;
  position: relative;
}

#container form:not(.article) img {
  width: 15em;
  height: 15em;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: lightgray;
}

#container form:not(.article) input[type="file"]::before {
  content: 'Change photo ?';
  width: 18em;
  height: 18em;
  position: absolute;
  top: 0;
  left: 0;
  outline: none;
  white-space: nowrap;
  display: inline-block;
  cursor: pointer;
  border-radius: 50%;
  visibility: visible;
  font-size: 1em;
  font-weight: bold;
  color: white;
  font-family: Caviar Dreams Sans;
  text-align: center;
  line-height: 29em;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 100%);
}

#container form:not(.article) input[type="file"] {
  position: absolute;
  visibility: hidden;
  padding: 0;
  cursor: pointer;
  top: 0;
  left: 0;
  width: 18em;
  height: 18em;
  border-radius: 50%;
  border: none;
}

#container form:not(.article) input[type="file"]:hover::before {
  content: 'Click me...';
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 35%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 100%);
}

#container form:not(.article):not(#visiblelogin) textarea:focus {
  border: 0.1em solid rgb(102 169 0);
  outline: none;
  animation: textareaFocus 1s ease-in-out;
  -webkit-animation: textareaFocus 1s ease-in-out;
  -moz-animation: textareaFocus 1s ease-in-out;
  -o-animation: textareaFocus 1s ease-in-out;
}

#container form:not(.article):not(#visiblelogin):not(#contactform):not(#resetpwdform) input:not([type="submit"]):focus, #container form:not(.article):not(#visiblelogin):not(#humanVerificationForm):not(#contactform):not(#resetpwdform) input:not([type="file"]):focus {
  animation: inputFocus 1s ease-in-out;
  -webkit-animation: inputFocus 1s ease-in-out;
  -moz-animation: inputFocus 1s ease-in-out;
  -o-animation: inputFocus 1s ease-in-out;
  border-bottom: 0.2em solid rgb(102 169 0);
}

#container form:not(.article):not(#visiblelogin):not(.comment_forms) label.for_input_type_file:hover,#container input[type="submit"]:hover, #container form:not(.article):not(#visiblelogin):not(.comment_forms) button[type="submit"]:hover {
  background-color: darkgray;
  color: black;
}

.presentation {
  min-height: 47.4em;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
}

.presentation #presentation_corps {
  display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: flex-end;
    margin: 0 2em;
}

.presentation #presentation_corps #section_presentation_image {
  margin: 0 2em;
}

.presentation #presentation_corps #section_presentation_article {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  align-items: flex-end;
  margin: 7em 2em 0 2em;
}

.presentation_image {
  width: 21em;
  height: calc((507/336) * 21em);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

/**Article sur la page de présentation**/
.presentation article {
  max-width: 50em;
  max-height: 20.6em;
  padding: 2em;
  text-indent: 4em;
  background: rgb(0 0 0 / 35%) !important;
  overflow-y: auto !important;
  margin-left: 0.65em;
}

/* width */
.presentation article::-webkit-scrollbar,
.article textarea::-webkit-scrollbar {
  width: 0.65em;
}

/* Track */
.presentation article::-webkit-scrollbar-track,
.article textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.presentation article::-webkit-scrollbar-thumb,
.article textarea::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
.presentation article::-webkit-scrollbar-thumb:hover,
.article textarea::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/**Liste des articles**/
.article {
  position: relative;
  display: flex;
  min-height: 18em;
  max-height: 100000em;
  background: rgb(0 0 0 / 35%);
  margin-top: 2em;
  border: solid 0.1em white;
  border-radius: 0.8em;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: stretch;
  justify-content: flex-start;
  align-items: stretch;
}

.article,
.article_link {
  width: calc(100% - 0.2em);
  margin-left: auto;
  margin-right: auto;
}

.article_edition {
  width: 100%;
}

.article>article {
  min-height: 13.6em;
}

.article .comment_infos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: flex-start;
  align-items: center;
  text-indent: 1em;
}

.article .author_section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: flex-end;
  align-items: center;
  text-indent: 0;
}

.article .author_section a {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.article .author_section>span {
  padding-right: 1em;
  padding-bottom: 0.5em;
}

.article .author_section a>* {
  margin-bottom: 0.5em;
}

.article .author_section a>span {
  padding-right: 2em;
  padding-left: 2em;
}

.article .author_section a {
  min-width: 8em;
  /*TODO Ajouter picture de l'auteur, le lien vers un controleur pour afficher le profile utilisateur */
  text-decoration: none;
}

.article_footer {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  text-indent: initial;
}

.article_footer > span {
  margin-left: 2em;
}

.article_footer > span > a {
  text-decoration: underline;
}

#container form.comment_forms textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

  #container form.comment_forms textarea::-webkit-scrollbar-track {
   border-radius: 0 0.7em 0.7em 0;
 }
 
 #container form.comment_forms textarea::-webkit-scrollbar-thumb {
   border-radius: 1em;
 }

.article .comments_section {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: stretch;
  justify-content: flex-end;
  align-items: stretch;
  border-top: solid white 0.1em;
  /* TODO ajouter formulaire pour ajouter commentaires */
}

.article .comments_section>label {
  height: 2em;
  background-image: url(/images/show_comments.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 7em 2em;
  cursor: pointer;
}

.article .comments_section>input[type="checkbox"]:checked+label {
  height: 2em;
  background-image: url(/images/hide_comments.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 7em 2em;
  cursor: pointer;
}

.article .comments_section>label span {
  visibility: hidden;
}

.article .comments_section .toggle_comments_section_visibility>label span,
.article .comments_section input[type="checkbox"] {
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
}

.article .comments_section .toggle_comments_section_visibility>label span {
  display: block;
  width: 100%;
  height: 2em;
}

/*Form for comments */

#container .article .comments_section input[type="checkbox"]:not(:checked)~.logintocomment {
  opacity: 0;
  text-align: center;
  display: block;
  text-indent: 0;
  max-height: 0;
  margin: 0;
  transition: all 1s ease-in, opacity .5s ease-in;
}

#container .article .comments_section input[type="checkbox"]:checked~.logintocomment {
  display: block;
    opacity: 1;
    height: 1.125em;
    max-height: 1.125em;
    margin: 1.5em 0;
    text-align: center;
    width: 100%;
    transition: all .5s ease-in, opacity 1s ease-in;
    text-indent: 0;
}

.logintocomment a {
  text-decoration: underline;
}

#container .article .comments_section form {
  overflow: hidden;
  margin-top: 0;
  padding-top:0;
}

#container .article .comments_section form.comment_forms label {
  font-size: 0;
}

#container .article .comments_section input[type="checkbox"]:not(:checked)~form {
  min-height: 0;
  max-height: 0;
  margin: 0 auto;
  margin-bottom: 0;
  padding: 0;
  opacity: 0;
  overflow-x: hidden;
  transition: opacity 1s ease-in, max-height 1s ease-in, margin-bottom 1s ease-in;
  width: 92.655%;
}

#container .article .comments_section input[type="checkbox"]:not(:checked)~form * {
  visibility: hidden;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  height: 0;
  min-height: 0;
  max-height: 0;
  border: none;
  overflow: hidden;
  transition: all .5s ease-in;
}

#container .article .comments_section input[type="checkbox"]:checked~form {
  opacity: 1;
  max-height: initial;
  max-height: 100000em;
  transition: opacity 1s ease-in, max-height .5s ease-in, margin-bottom .5s ease-in;
}

#container .article .comments_section input[type="checkbox"]:checked~form *:not(label) {
  visibility: visible;
}

#container .article .comments_section input[type="checkbox"]:checked~form.comment_forms {
  border-radius: 0;
  width: 100%;
  padding: 0 2.5em;
  min-height: auto;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 0;
  margin-bottom: 2em;
  }

  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms textarea {
  padding: 0.6em 0.6em 3.65em 0.6em;
  border-bottom: none;
  overflow: overlay;
  border-radius: 0.5em 0.5em 0 0;
  resize: vertical;
  min-height: 14em;
  width: 100%;
  }

  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms textarea:focus {
  border-bottom: none;
  animation: commentsFocus 1s ease-in-out;
  -webkit-animation: commentsFocus 1s ease-in-out;
  -moz-animation: commentsFocus 1s ease-in-out;
  -o-animation: commentsFocus 1s ease-in-out;
  }

  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms section.submit_section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
  padding: 0 0.6em;
  width: 100%;
  background: white;
  border-radius: 0 0 0.5em 0.5em;
  border-right: 0.1em solid lightgray;
  border-bottom: 0.1em solid lightgray;
  border-left: 0.1em solid lightgray;
  margin-top: -0.2em;
  }
  
  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms textarea:focus ~ section.submit_section {
  animation: submitSectionFocus 1s ease-in-out;
  -webkit-animation: submitSectionFocus 1s ease-in-out;
  -moz-animation: submitSectionFocus 1s ease-in-out;
  -o-animation: submitSectionFocus 1s ease-in-out;
  border-right: 0.08em solid rgb(102 169 0);
  border-bottom: 0.08em solid rgb(102 169 0);
  border-left: 0.08em solid rgb(102 169 0);
  }
  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms section.submit_section ul {
    width: calc(100% - 6.834em);display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
  }

  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms section.submit_section ul li {
    text-indent: initial;
    font-size: 0.9em;
  }

  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms button[type="submit"] {
  height: 3.65em;
  background: transparent;
  color: green;
  border: none;
  }

  #container .article .comments_section input[type="checkbox"]:checked~form.comment_forms button[type="submit"]:hover {
  background: white;
  }

  /*End of comments form */

.article .comments_section input[type="checkbox"]:not(:checked)~.comment {
  opacity: 0;
  max-height: 0;
  transform: translateY(-100%);
  transition: all .3s ease-in;
}

.article .comments_section input[type="checkbox"]:checked~.comment {
  opacity: 1;
  border-top: solid white 0.1em;
  min-height: 2em;
  max-height: 10000em;
  transform: translateY(0%);
  transition: all .3s ease-in;
}

.article .comment_infos img {
  margin-left: 1em;
}

.article .comment .comment_contenu {
  min-height: 3em;
  padding: 0.75em 3em;
  text-align: justify;
}

div.article {
  text-indent: 4em;
}

div.article h3 {
  border-bottom: solid 0.05em white;
}

div.article>article span {
  width: 100%;
  display: block;
  padding: 1.5em;
  min-height: 11em;
}

form.article {
  text-decoration: none;
  text-shadow: none;
}

form.article input::placeholder,
form.article textarea::placeholder {
  color: white;
}

form.article input,
form.article button,
form.article textarea {
  margin: 0;
  color: white;
  font-family: "Liberation Serif";
  background: transparent;
  border: none;
}

.article input[type="text"].article_title,
.article h3.article_title {
  font-size: 1.8em;
  padding: 0.25em 0 0.25em 0;
  border-bottom: solid 0.05em white;
  width: 100%;
  text-indent: 1em;
}

.article textarea.article_corps,
.article article.article_corps {
  text-indent: 4em;
  font-size: 1em;
  line-height: 1.4em;
  width: 100%;
  min-height: 11em;
  resize: none;
  border-bottom: solid white 0.05em;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  padding-top: 2.2em;
  overflow-x: hidden;
}

.article button[type="submit"],
.article section.article_auteur {
  float: right;
  margin-right: 1em;
  margin-top: 0.15em;
}

button[type="submit"].delete_icon,
input[type="submit"].delete_icon {
  background-image: url(/images/write.svg);
  width: 2em;
  height: 2em;
  background-size: 2em;
  transform: rotateZ(45deg);
  margin-right: 0;
  position: absolute;
  top: 0.7em;
  right: 0.9em;
  border: none;
}

.article section.article_visibility {
  margin-top: 0.15em;
  width: 50%;
  float: left;
}

form.article label.article_visibility {
  margin-left: 1em;
}

form.article:hover {
  background: rgba(20, 20, 20, 0.582);
}

.article button[type="submit"]:hover,
.article input[type="submit"]:hover {
  text-shadow: 0.04em 0.04em 0.06em black, 0 0 0.8em white, 0 0 0.4em white;
}

button[type="submit"].delete_icon:hover,
input[type="submit"].delete_icon:hover {
  -webkit-filter: drop-shadow(0.02em 0.04em 0.06em white);
  filter: drop-shadow(0.02em 0.04em 0.06em white);
}

#registration_form section#fields {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-evenly;
}

#registration_form section#profile_infos>div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-between;
  align-items: center;
}

#registration_form section#description>div {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  align-items: flex-start;
}

#container form#registration_form section#fields > section#captcha_section, #container form#registration_form section#captcha_section div#registration_form_captcha, #container form#registration_form section#captcha_section  div.captcha_error {
  margin-top: 0;
}

#container form#registration_form section#captcha_section {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

#registration_form section#submit {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: flex-end;
  align-items: center;
}


#titre,
#corps {
  margin-top: 3em;
}

#titre {
  width: calc(60% - 8px); /**TODO px to em**/
  margin-left: calc(20% + 4px);
  margin-right: calc(20% + 4px);
}

#corps {
  width: calc(60% - 6px);
  height: 30em;
  overflow: scroll;
  margin-left: calc(20% + 3px);
  margin-right: calc(20% + 3px);
}

.pdf_container {
  position: relative;
  display: block;
  margin: 0 auto;
  text-decoration: none;
  width: fit-content;
}

.pdf_container {
  display: block;
}

/** TODO IOS need fix**/
.pdf_container>span {
  width: 100%;
  font-size: 1.2em;
  line-height: 1.2em;
  height: 1.2em;
  text-align: center;
  position: absolute;
  top: 0;
  background-color: rgb(0 0 0 / 0.5);
  transition: height 2s, line-height 2s, background-color 2s;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

.pdf_container:hover>span {
  width: 100%;
  font-size: 1.2em;
  position: absolute;
  background-color: rgb(0 0 0 / 0.8);
  height: 100%;
}

#pdf_renderer {
  display: block;
  margin: auto;
}

.formerrors,
.uriviolationerror {
  animation: hideAnimation 0s ease-in 5s;
  animation-fill-mode: forwards;
  font-size: 1em;
  width: 100%;
  float: left;
  background-color: rgb(0 0 0 / 50%);
  text-align: center;
  color: white;
}

.uriviolationerror {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  right: 0;
  bottom: 0;
  min-height: 100%;
  min-width: 100%;
  z-index: 1;
}

.uriviolationerror span {
  width: 100%;
  display: block;
  height: 2em;
  position: absolute;
  top: calc(50% - 1em);
  font-size: 2.2em;
}

.error_srnd,
.error_smry {
  position: absolute;
}

img.error_srnd {
  width: 25em;
  right: calc(50% - 12.5em);
  top: 18%;
}

span.error_srnd {
  width: 6em;
  right: calc(50% - 3em);
  text-align: center;
  line-height: 6em;
  top: calc(45% - 2.5em);
  font-family: "Caviar Dreams Sans";
  height: 6em;
  background: radial-gradient(rgb(0 0 0 / 75%), rgb(0 0 0 / 45%), rgb(0 0 0 / 0%), rgb(0 0 0 / 0%));
}

span.error_smry {
  width: calc(100% - 5em);
  text-align: center;
  top: 75%;
  font-family: "Caviar Dreams Sans";
  background-image: linear-gradient(to right, rgb(0 0 0 / 0%), rgb(0 0 0 / 0%), rgb(0 0 0 / 80%), rgb(0 0 0 / 0%), rgb(0 0 0 / 0%));
  font-size: 2em;
}

#userprofile {
  position: relative;
  width: 80%;
  margin: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-around;
  align-items: center;
}

#userprofile section#fields {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

#userprofile section#fields section:nth-of-type(+n+2),
#userprofile section#button_submit {
  margin-top: 2em;
}

#userprofile section#profile_picture {
  width: 15em;
  height: 15em;
  position: relative;
}

#userprofile section#profile_picture img {
  margin-top: 0;
}

#container form#userprofile section section#profile_infos {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  width: 100%;
  max-width: 43em;
}

#userprofile section#button_submit {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#userprofile input {
    padding: 0.1em;
    box-sizing: content-box;
    text-align: center;
}

#userprofile input[type="text"],
#userprofile input[type="email"],
#userprofile input[type="password"] {
  margin-bottom: 0.8em;
}

#userprofile section#pseudo {
  margin-top: 1.6em;
}

#userprofile input[type="file"] {
  position: absolute;
  visibility: hidden;
  cursor: pointer;
  top: 0;
  left: 0;
  width: 18em;
  height: 18em;
  border-radius: 50%;
  border: none;
  margin: 0;
}

#userprofile section#isVerifiedMessage {
  width: 100%;
  text-align: center;
  color: orangered;
}

#userprofile section#fields fieldset#visibility_settings {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  align-items: center;
  border-color: white;
  background: white;
  border-style: solid;
  margin: 0.8em calc(50% - (17.85em/2));
}

#userprofile section#fields fieldset#visibility_settings legend {
  background: white;
  border-radius: 0.5em;
  padding: 0 1em;
  margin-left: 0.65em;
}

#userprofile #visibility_settings .profile_properties {
  width: 100%
}

footer {
  height: 3em;
  position: relative;
  padding-top: 1.8em;
}

#footer-middle {
  border-image: url("../images/footer-middle.svg") 100% 0 0 0;
  /* ne garder que le centre, mettre 3 div dans le footer, même hauteur, milieu = image centrale en responsif, puis les deux div en largeur 50% - 1/2 du div central avec une border top comme celle du menu */
  border-top: 3em solid transparent;
  height: 3em;
  width: 11.36em;
  position: absolute;
  left: calc(50% - (11.36em / 2));
}

.footer-sides {
  height: 2.5em;
  border-top: white 0.12em solid;
  border-bottom: white 0.12em solid;
  margin-bottom: 2.5em;
  width: calc(50% - (11.36em / 2));
  margin-top: 2em;
  border-bottom: none;
  margin-bottom: 0;
}

#footer-left {
  position: absolute;
  left: 0;
}

#footer-right {
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  align-items: center;
}

#footer-right a {
  font-size: 0.6em;
  margin: 0 1.25em;
}

#visiblelogin {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: auto;
  background: white;
  color: black;
  padding: 2em 4em;
  border-radius: 0.5em;
  margin-top: 0em;
  margin-bottom: 0;
  }

  #visiblelogin > *, #visiblelogin label {
  margin-bottom: 1.4em;
  }
  
  #visiblelogin label[for="inputEmail_visible"] {
    margin-left: 0.717em;
    margin-right: 0.717em;
  }

  #visiblelogin .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  #visiblelogin .row_control {
    margin-bottom: 1.4em;
  }

  #visiblelogin input[type="email"], #visiblelogin input[type="password"] {
  height: 1.6em;
  border: 0.008em solid grey;
  }

  #visiblelogin input[type="email"] {
    margin-bottom: 1.8em;
    width: 15.3em;
  }

  #visiblelogin input[type="password"] {
    width: 13.27em;
  }

  #visiblelogin input[type="checkbox"] {
  margin-bottom: 0.2em;
  margin-left: 1em;
  }

  #visiblelogin a {
  color: black;
  margin: auto;
  display: block;
  width: 100%;
  text-align: center;
  }

  #visiblelogin a:not(:last-child){
  margin-bottom: 1em
  }

  #visiblelogin input[type="submit"] {
  border-width: 0.06em;
  border-color: grey;
  border-style: solid;
  border-left: none;
  margin-left: -0.55em;
  height: 1.6em;
  background-color: #f0f0f0;
  color: black;
  padding: 0.075em 0.45em;
  }

  #visiblelogin #rememberme_visible {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  }

  #userProfile {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1em;
    padding: 2em;
  }

  #userProfile h3 {
    text-align: center;
  }

  #userProfile img {
    width: 12em;
    border-radius: 50%;
  }

  #userProfile #user_informations {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: stretch;
    width: 100%;
    margin-top: 1em;
  }

  #userProfile #user_informations #left_user_informations, #userProfile #user_informations #right_user_description {
    padding: 3em 1em;
  }

  #userProfile #user_informations #right_user_description {
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
  }

  #userProfile span, #userProfile a {
    display: block;
    color: black;
  }

  #user_informations #left_user_informations > span {
    margin-bottom: 1em;
  }

  .comment_actions label {
    text-indent: initial;
    display: block;
    padding: 0 0 0.5em 0;
    width: 7em;
    text-align: center;
    margin-left: calc(100% - 7em);
  }

  .comment_actions label:hover, .comment_actions label:focus {
    text-shadow: 0.04em 0.04em 0.06em black, 0 0 0.8em white, 0 0 0.4em white;
  }

  .comment_actions input[type="checkbox"] {
    display: none;
  }

  #container .article .comments_section .comment .comment_actions input[type="checkbox"]:checked~form.comment_forms {
    padding-top: 2em;
    border-top: 0.1em dashed white;
  }

  #legalNotices {
    background: white;
    color: black;
    padding: 4em;
    border-radius: 0.5em;
  }

  #legalNotices h3 {
    text-align: center;
    border-bottom: solid black 0.08em;
    margin-bottom: 2em;
  }

  #legalNotices p:not(.no-indent) {
    text-indent: 4em;
  }

  #legalNotices ul li ul li a {
    color: black;
    text-decoration: underline;
    transition: all 1s ease-in;
  }

  #legalNotices ul li ul li a:hover {
    color: darkgreen;
    text-shadow: unset;
    transition: all 1s ease-in;
  }

  #container form#humanVerificationForm {
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
  }

  #container form#humanVerificationForm > section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
  }

  #container form#humanVerificationForm input[type="submit"] {
    min-width: unset;
    width: 23em;
    height: 3em;
  }

  #contactform {
    background: white;
    color: black;
    padding: 4em;
    border-radius: 0.5em;
  }

  #contactform h3, #resetpwdform h3 {
    text-align: center;
    border-bottom: solid black 0.08em;
    margin-bottom: 2em;
    width: 100%;
  }

  #container form#contactform {
    background-image: url('../images/plantes_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }

  #container form#contactform > section, #container form#contactform > section section,  #container form#contactform > section section div, #container form#resetpwdform > section, #container form#resetpwdform > section section, #container form#resetpwdform > section section div {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  #container form#contactform input:not([type="submit"]), #container form#contactform textarea {
    width: 100%;
  }

  #container form#contactform textarea {
    min-height: 15em;
  }

  #container form#contactform section#submit, #container form#resetpwdform section#submit {
    align-content: flex-end;
  }

  #container form#contactform input:focus, #container form#resetpwdform input:focus {
    height: 1.575em;
    padding: 0.24em;
  }

  #container form#contactform input[type="submit"], #container form#resetpwdform input[type="submit"] {
    min-width: unset;
    width: 10em;
    height: 3em;
  }
  
  #resetpwdform {
    margin-bottom: 8em;
  }

  #container form#resetpwdform section.small {
    margin-bottom: 6em;
  }

  #container form#resetpwdform section.small > div{
    text-align: center;
    font-weight: bold;
  }

  #container form#resetpwdform > section section div {
    flex-direction: row;
  }

  #container form#resetpwdform input[type="submit"] {
    width: initial;
  }















@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices TODO Try on android */



  #videobg:paused {
    display: none;
  }

  #videobg:paused~#videofix_ios_lowpowermode {
    display: initial;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: 0;
    bottom: 0;
    object-fit: cover;
    min-height: 100%;
    min-width: 100%;
    z-index: -100;
    background-color: black;
    background-image: url("../images/video.mp4");
    background-position: center center;
    background-size: 100% default;
    background-repeat: no-repeat;
  }

  #menu-toggle:checked~.menu ul#connect>li>form>#rememberme input[type="checkbox"] {
    margin-bottom: 0.1em;
  }

  body input[type="checkbox"]:not(:checked) {
    -webkit-box-shadow: inset 0 0 0.08em 0.12em grey; 
    box-shadow: inset 0 0 0.08em 0.12em grey;
  }

  body input:not([type="checkbox"]),
  body input[type="checkbox"]:not(:checked),
  body button, body select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    border-radius: 0;
    padding: 0;
  }

  body select, body select:focus, body select:focus-within {
    color: white;
    height: 1.8em;
    padding: 0.1em 1.5em 0.1em 0.5em;
    background: url(../images/ios_dropdown_arrow_sd.png) no-repeat right;
    border-radius: 0;
  }

  #login input[type="submit"] {
    margin-top: 0.35em;
    height: 1.5em;
  }

  #container {
    min-height: 80vh;
  }

  #container form:not(.article):not(#visiblelogin) {
    margin-top: 0;
  }

  #container form:not(.article) input[type="file"]::before {
    content: 'Change photo ?';
    width: 21.8em;
    height: 21.8em;
    position: absolute;
    top: 0;
    left: 0;
    outline: none;
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    visibility: visible;
    font-size: 1em;
    font-weight: bold;
    color: white;
    font-family: Caviar Dreams Sans;
    text-align: center;
    line-height: 29em;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 100%);
  }
  
  #container form:not(.article) input[type="file"] {
    position: absolute;
    visibility: hidden;
    padding: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    width: 21.8em;
    height: 21.8em;
    border-radius: 50%;
    border: none;
  }
  
  #container form:not(.article) input[type="file"]:hover::before {
    content: 'Select your photo...';
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 35%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 100%);
  }

}