/* Scrollbars */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #767676;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background-color: #fff;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  background-color: #2e2a25;
}
/* Mixins */
.lato {
  font-family: "Lato", sans-serif;
}
.fade {
  animation-name: fadeIn;
  animation-duration: 300ms;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  opacity: 0;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}
body {
  /* Cordova app basics */
  -webkit-touch-callout: none;
  /* prevent callout to copy image, etc when tap to hold */
  -webkit-text-size-adjust: none;
  /* prevent webkit from resizing text to fit */
  -webkit-user-select: none;
  /* prevent copy paste, to allow, change 'none' to 'text' */
  height: 100vh;
  margin: 0px;
  padding: 0px;
  /* Padding to avoid the "unsafe" areas behind notches in the screen */
  padding: env(safe-area-inset-top, 30px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  width: 100%;
  /* App styles */
  font-family: 'Barlow Condensed';
  font-size: 18px;
  line-height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.app {
  margin-right: auto;
  margin-left: auto;
  flex: 1 0 auto;
  position: relative;
  width: calc(70%);
  max-width: 500px;
  padding: 30px 15px 70px;
  display: flex;
  flex-direction: column;
}
.app #content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}
a {
  text-decoration: none;
}
a svg {
  height: 12px;
  width: auto;
}
a svg circle,
a svg rect,
a svg path {
  fill: inherit;
}
.btn {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 20px;
  border: 2px solid #000;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-size: inherit;
}
.btn svg {
  height: 12px;
  width: auto;
}
.btn svg circle,
.btn svg rect,
.btn svg path {
  fill: inherit;
}
.btn.gris {
  color: #fff;
  background-color: #2e2a25;
  border-color: #2e2a25;
}
.btn.gris svg circle,
.btn.gris svg rect,
.btn.gris svg path {
  fill: #fff;
}
.btn.gris:active,
.btn.gris:focus,
.btn.gris:focus-visible,
.btn.gris:hover {
  background-color: #767676;
  border-color: #767676;
}
button {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 20px;
  border: 2px solid #000;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-size: inherit;
}
button svg {
  height: 12px;
  width: auto;
}
button svg circle,
button svg rect,
button svg path {
  fill: inherit;
}
button.gris {
  color: #fff;
  background-color: #2e2a25;
  border-color: #2e2a25;
}
button.gris svg circle,
button.gris svg rect,
button.gris svg path {
  fill: #fff;
}
button.gris:active,
button.gris:focus,
button.gris:focus-visible,
button.gris:hover {
  background-color: #767676;
  border-color: #767676;
}
button-petit {
  font-weight: 400;
  border: none;
}
.button-petit {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 20px;
  border: 2px solid #000;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-size: inherit;
  padding: 5px 20px;
  font-weight: 400;
  border: none;
  font-size: 14px;
}
.button-petit svg {
  height: 12px;
  width: auto;
}
.button-petit svg circle,
.button-petit svg rect,
.button-petit svg path {
  fill: inherit;
}
.button-petit.gris {
  color: #fff;
  background-color: #2e2a25;
  border-color: #2e2a25;
}
.button-petit.gris svg circle,
.button-petit.gris svg rect,
.button-petit.gris svg path {
  fill: #fff;
}
.button-petit.gris:active,
.button-petit.gris:focus,
.button-petit.gris:focus-visible,
.button-petit.gris:hover {
  background-color: #767676;
  border-color: #767676;
}
.chargement-en-cours {
  height: 50px;
  -webkit-animation: fa-spin 2s infinite linear;
  animation: fa-spin 2s infinite linear;
}
h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"],
textarea {
  font-family: "Lato", sans-serif;
  border: 2px solid #000;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  width: calc(56%);
}
input[type="email"]:active,
input[type="text"]:active,
input[type="tel"]:active,
input[type="password"]:active,
textarea:active,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
input[type="email"]:focus-visible,
input[type="text"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="password"]:focus-visible,
textarea:focus-visible,
input[type="email"]:hover,
input[type="text"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
textarea:hover {
  outline: none;
}
.form-field {
  width: 100%;
}
.form-field > label {
  text-transform: uppercase;
  font-family: 500;
  margin-bottom: 10px;
}
.form-field + .button {
  margin-top: auto;
}
.sp-forms-dropdown {
  font-family: "Lato", sans-serif;
  background-color: #fff;
  position: relative;
  text-transform: uppercase;
}
.sp-forms-dropdown .body {
  overflow: hidden;
  width: 100%;
  max-height: 0;
  background-color: #eee;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  z-index: 30;
}
.sp-forms-dropdown .body label {
  display: block;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 400;
  box-shadow: 0 -1px 0 #cccccc, inset 0 0 0 #e8eeef;
  cursor: pointer;
}
.sp-forms-dropdown .body label > input {
  display: none;
}
.sp-forms-dropdown .body.js-open {
  max-height: 20em;
  overflow-y: scroll;
}
.sp-forms-dropdown .header {
  background: #fff;
  display: flex;
  border: 2px solid #000;
  background-color: #fff;
  font-family: "Lato", sans-serif;
}
.sp-forms-dropdown .header .action {
  display: block;
  color: inherit;
  background-color: #fff;
  padding: 10px 20px;
  border: 2px solid #000;
  border-left: none;
  flex: 0;
  margin-top: -2px;
  margin-right: -2px;
  margin-bottom: -2px;
}
.sp-forms-dropdown .header .action .icon {
  display: block;
  position: relative;
  width: 1.5em;
  height: 1.5em;
  margin: 0 auto;
  transform: scale(1.5);
  transform-origin: center center;
}
.sp-forms-dropdown .header .action .icon:before,
.sp-forms-dropdown .header .action .icon:after {
  content: "";
  position: absolute;
}
.sp-forms-dropdown .header .title {
  padding: 10px 15px;
  flex: 1;
}
/* Tableau de bord */
.h-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  line-height: 20px;
  gap: 10px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.h-scroll > .bloc {
  scroll-snap-align: start;
}
.h-scroll > .bloc > a {
  color: inherit;
}
.h-scroll > .bloc.famille {
  display: grid;
  grid-template-areas: "photo nom" "photo nb" "btn   btn";
}
.h-scroll > .bloc.famille .photo {
  grid-area: photo;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 1px solid #767676;
}
.h-scroll > .bloc.famille .photo img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.h-scroll > .bloc.famille .nb-rv {
  grid-area: rv;
}
.h-scroll > .bloc.famille .btn {
  grid-area: btn;
}
.h-scroll + .btn {
  margin-top: 10px;
  color: inherit;
  display: inline-flex;
  padding: 10px 20px;
}
.h-scroll + .btn:active,
.h-scroll + .btn:focus,
.h-scroll + .btn:hover {
  color: #fff;
  background-color: #000;
}
.section-tb.rv .bloc {
  flex: 0 0 150px;
}
.section-tb.rv .bloc a {
  display: grid;
  grid-template-areas: "nom" "date" "heure" "action";
  gap: 0;
  padding: 10px 15px;
  box-shadow: 0 0 0 2px inset black;
}
.section-tb.rv .action {
  grid-area: "action";
}
.section-tb.rv .membre {
  grid-area: nom;
  margin-bottom: 5px;
}
.section-tb.rv .date {
  grid-area: date;
}
.section-tb.rv .heure {
  grid-area: heure;
}
.section-tb.conseils .bloc,
.section-tb.produits .bloc {
  width: 135px;
  height: 135px;
  overflow: hidden;
}
.section-tb.conseils .bloc a,
.section-tb.produits .bloc a {
  position: relative;
  object-fit: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
.section-tb.conseils .bloc a:after,
.section-tb.produits .bloc a:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  box-shadow: 0 0 0 2px inset black;
}
.section-tb.conseils .bloc img,
.section-tb.produits .bloc img {
  width: 100%;
}
.section-tb + .section-tb {
  margin-top: 50px;
}
/* Particulier à certaines pages */
[data-screen="login"] {
  color: #fff;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  padding: 0;
}
[data-screen="login"] .app {
  padding-top: 0;
}
[data-screen="login"] .app #content {
  height: 100%;
  flex-grow: 1;
  display: grid;
  justify-items: center;
  grid-template-areas: "." "logo" "." "form" "copy";
  grid-template-rows: 1fr auto 1fr auto auto;
  gap: 15px;
}
[data-screen="login"] .app #content #app-logo {
  grid-area: logo;
}
[data-screen="login"] .app #content form {
  grid-area: form;
  justify-self: stretch;
}
[data-screen="login"] .app #content .c4sn {
  grid-area: copy;
}
[data-screen="login"]:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.8+0,0.7+100;Neutral+Density */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  z-index: -1;
}
[data-screen="login"] #app-logo {
  animation-name: fadeIn;
  animation-duration: 300ms;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  opacity: 0;
  animation-delay: 1s;
  width: 70%;
  display: block;
}
[data-screen="login"] #app-logo:active,
[data-screen="login"] #app-logo:focus,
[data-screen="login"] #app-logo:hover {
  outline: none;
  box-shadow: none;
}
[data-screen="login"] .msg-erreur {
  grid-area: err;
  padding: 5px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin: 0 20px;
  outline-offset: 4px;
  background-color: red;
  outline: 2px solid red;
  text-transform: uppercase;
}
[data-screen="login"] .msg-erreur:empty {
  display: none;
}
[data-screen="login"] #formulaire-connexion {
  animation-delay: 1.5s;
  grid-area: forms;
  display: grid;
  gap: 20px 0;
  grid-template-areas: "user user user" "pass pass pass" "err  err  err" "new  .	btn";
  align-items: center;
  grid-template-columns: auto 1fr auto;
}
[data-screen="login"] #formulaire-connexion .user {
  grid-area: user;
}
[data-screen="login"] #formulaire-connexion .pass {
  grid-area: pass;
}
[data-screen="login"] #formulaire-connexion .afficher-inscription {
  grid-area: new;
  padding-left: 20px;
  font-size: 14px;
}
[data-screen="login"] #formulaire-connexion .afficher-inscription a {
  color: #fff;
}
[data-screen="login"] #formulaire-connexion .button {
  grid-area: btn;
}
[data-screen="login"] #formulaire-connexion .login-btn {
  color: #fff;
  background-color: #2e2a25;
  border-color: #2e2a25;
}
[data-screen="login"] #formulaire-connexion .login-btn svg circle,
[data-screen="login"] #formulaire-connexion .login-btn svg rect,
[data-screen="login"] #formulaire-connexion .login-btn svg path {
  fill: #fff;
}
[data-screen="login"] #formulaire-connexion .login-btn:active,
[data-screen="login"] #formulaire-connexion .login-btn:focus,
[data-screen="login"] #formulaire-connexion .login-btn:focus-visible,
[data-screen="login"] #formulaire-connexion .login-btn:hover {
  background-color: #767676;
  border-color: #767676;
}
[data-screen="login"] #formulaire-connexion[data-loaded="false"] {
  animation-name: fadeIn;
  animation-duration: 300ms;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  opacity: 0;
}
[data-screen="login"] #formulaire-inscription {
  display: none;
  grid-area: forms;
  gap: 20px 0;
  grid-template-areas: "login login ." "util  util  util" "pass  pass  pass" "conf  conf  conf" "cond  cond  cond" "err   err   err" ".     .     btn";
  align-items: center;
  grid-template-columns: auto 1fr auto;
}
[data-screen="login"] #formulaire-inscription .afficher-connexion {
  grid-area: login;
  padding-left: 20px;
  font-size: 14px;
}
[data-screen="login"] #formulaire-inscription .afficher-connexion a {
  color: #fff;
}
[data-screen="login"] #formulaire-inscription .afficher-connexion svg {
  margin-right: 5px;
}
[data-screen="login"] #formulaire-inscription .afficher-connexion svg path {
  fill: #fff;
}
[data-screen="login"] #formulaire-inscription .user {
  grid-area: util;
}
[data-screen="login"] #formulaire-inscription .pass {
  grid-area: pass;
}
[data-screen="login"] #formulaire-inscription .pass-conf {
  grid-area: conf;
}
[data-screen="login"] #formulaire-inscription .user input,
[data-screen="login"] #formulaire-inscription .pass input,
[data-screen="login"] #formulaire-inscription .pass-conf input {
  width: calc(56%);
}
[data-screen="login"] #formulaire-inscription .conditions {
  grid-area: cond;
}
[data-screen="login"] #formulaire-inscription .conditions a {
  color: inherit;
  font-weight: bold;
  text-underline-offset: 5px;
}
[data-screen="login"] #formulaire-inscription .button {
  grid-area: btn;
}
[data-screen="login"] .c4sn {
  animation-name: fadeIn;
  animation-duration: 300ms;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  opacity: 0;
  animation-delay: 2s;
  font-size: 12px;
  text-align: center;
}
[data-screen="preferences"] .app #content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
[data-screen="preferences"] h3 {
  align-self: start;
}
[data-screen="preferences"] .button {
  justify-self: end;
}
/* Full-screen notifications */
.notification-ecran {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 15px;
  z-index: 500;
  background-color: rgba(0, 0, 0, 0.85);
  text-align: center;
}
.notification-ecran h3,
.notification-ecran p {
  margin: 10px;
}
/* App navigation */
#navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background-color: #fff;
  border-top: 1px solid #767676;
}
#navigation ul {
  display: flex;
  flex-wrap: nowrap;
  list-style-type: none;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  margin: 0;
}
#navigation ul > li {
  margin: 0;
  gap: 5px;
}
#navigation ul li {
  padding: 10px;
}
#navigation ul a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}
#navigation ul a svg {
  height: 24px;
}
#navigation ul a span {
  display: none;
  flex-grow: 1;
  font-size: 14px;
  line-height: 18px;
}
/* Animations */
@-webkit-keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/* Landscape layout (with min-width) */
/* Dark mode */
@media screen and (prefers-color-scheme: dark) {
  body {
    background-image: linear-gradient(to bottom, #585858 0%, #1B1B1B 51%);
  }
}
