/*
 Theme Name:   DigestSanté
 Theme URI:    https://generatepress.com
 Description:  Child theme of the DigestSanté website
 Author:       Staminic
 Author URI:   https://www.staminic.com
 Template:     generatepress
 Version:      0.1
*/

:root {
  --white: #ffffff;
  --black: #000000;
  --text-color: #5d5d5d;
  --brand-green: #00a366;
  --light-gray: #f5f5f5;
  --error: rgb(255, 94, 0);
  --success: #00aa4f;

  --font-family-condensed: "Roboto Condensed", sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-size-body: 20px;
  --font-size-h2: 25px;
  --font-size-h3: 20px;
}

@media (min-width: 768px) {
  :root {
    --font-size-h2: 31px;
    --font-size-h3: 25px;
  }
}

/*----- Layout -----*/

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.site-footer {
  margin-top: auto;
}

.container.grid-container {
  width: 100vw;
}

.one-container .site-content {
  padding-top: 0;
}

.home.one-container .site-content {
  padding-bottom: 0;
}

/*----- Header -----*/

.digestscience-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 10px 20px;
  background-color: var(--text-color);
  color: var(--white);
}

.digestscience-cta > * {
  margin: 0 10px;
}

.digestscience-cta .logo {
  /*height: 100%;*/
	height: 40px;
}

.digestscience-cta .slogan {
  line-height: 1.2;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}

.btn {
  padding: 5px 10px;
  color: var(--white);
  border: 1px solid var(--white);
  font-size: 14px;
}

.btn:hover,
.btn:focus,
.btn:active {
	color: var(--white);	
}

.digestscience-cta .btn.donate {
	background-color: #e500cb;
	border-color: #e500cb;
}

@media (max-width: 767.98px) {
  .digestscience-cta {
    display: none;
  }
}

.nav-float-right #site-navigation {
  margin-left: 0 !important;
}

@media (min-width: 1211px) and (max-width: 1441px) {
  .inside-header {
    align-items: flex-start;
  }

  #site-navigation {
    margin: 0;
    width: 100%;
  }
}

@media (min-width: 1442px) {
  .inside-header {
    align-items: flex-end;
  }
}

.site-logo {
  margin-right: 20px;
  margin-bottom: 0;
}

@media (max-width: 479.98px) {
  .site-header .header-image {
    width: 190px;
  }
}

/*----- Navbar -----*/

.main-navigation,
.main-nav {
  flex: 1 0 auto;
}

/* .main-navigation.sticky-navigation-transition .inside-navigation {
  padding: 0 20px 0 20px;
}

@media (min-width: 1141px) {
  .main-navigation.sticky-navigation-transition .inside-navigation {
    padding-bottom: 20px;
  }
}

.main-navigation.sticky-navigation-transition .main-nav > ul > li > a {
  line-height: 40px;
} */

@media (min-width: 1211px) and (max-width: 1440px) {
  .main-nav > .menu > .menu-item:first-child a {
    padding-left: 10px !important;
  }
}

.push-right {
  margin-left: auto;
}

.boxed-link a {
  background-color: var(--brand-green) !important;
  color: var(--white) !important;
}

.sub-menu {
  background-color: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 1211px) {
  .sub-menu {
    width: auto !important;
  }
}

/*----- Slideout Navigation -----*/

@media (max-width: 1210px) {
  .main-navigation .menu-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
  }

  .main-navigation .menu-toggle:hover {
    background-color: transparent;
  }

  .main-navigation .menu-toggle .icon-menu-bars {
    margin-top: -4px;
  }
}

/* .main-navigation.sticky-navigation-transition .navigation-branding img {
  height: 100px !important;
}

.sticky-navigation-transition .menu-toggle {
  line-height: 100px !important;
} */

.slideout-navigation {
  background-color: var(--text-color);
}

.slideout-navigation .brand {
  padding: 20px;
  background-color: var(--white);
}

.slideout-navigation .main-nav {
  margin-bottom: 0 !important;
  padding-bottom: 40px;
  background-color: var(--white);
}

.slideout-navigation .main-nav .menu-item a {
  display: flex;
  align-items: center;
  height: 60px;
  line-height: 1.5;
}

.slideout-navigation .main-nav .menu-item.boxed-link a {
  margin: 0 20px;
}

.slideout-navigation .main-nav .menu-item.boxed-link a .dropdown-menu-toggle {
  display: flex;
  align-items: center;
}

.slideout-navigation .main-nav .sub-menu .menu-item a {
  height: 40px;
}

.slideout-navigation .digestscience-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 20px;
  background-color: var(--text-color);
  color: var(--white);
}

.slideout-navigation .digestscience-cta > * {
  margin: 5px;
}

.slideout-navigation .digestscience-cta .logo {
  height: auto;
}

.slideout-navigation .digestscience-cta .slogan {
  font-size: 16px;
}

.slideout-navigation .digestscience-cta .btn {
  color: var(--white);
  font-size: 14px;
}

@media (min-width: 1211px) {
  .slideout-navigation .digestscience-cta {
    display: none;
  }
}

/*----- Footer -----*/

.footer-widgets {
  background-color: var(--text-color);
}

.mds-footer-nav a {
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-family-condensed);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.mds-footer-nav .boxed-link {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 15px;
  border: 1px solid var(--white);
}

.footer-widget-3 aside {
  margin: 0 !important;
}

.footer-widget-3 .mds-footer-nav .boxed-link {
  font-size: 14px;
}

@media (min-width: 769px) {
  .footer-widget-3 aside {
    display: flex;
    justify-content: flex-end;
  }
}

.site-info a {
  color: var(--black);
  font-family: var(--font-family-condensed);
  font-size: 16px;
}

/*----- Custom styles -----*/

address {
  font-style: normal;
}

/*-----*/
#loginform > p {
  margin-bottom: 20px;
}

.login-username label,
.login-password label {
  font-family: var(--font-family-condensed);
}

input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 8px;
  font-size: 15px;
}

label input {
  position: relative;
  top: -1px;
  margin-right: 3px;
}

.form-group,
.form-group .js-wpt-field-items {
  margin-bottom: 20px;
}

/*-----*/
.mds-readmore.tb-button a:hover .tb-button__content {
  text-decoration: underline !important;
}

.mds-readmore.link a:hover {
  text-decoration: underline !important;
}

/*-----*/
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*-----*/
.mds-featured-media {
  margin-bottom: 20px;
}

.mds-featured-image figure {
  line-height: 0;
}

.mds-featured-image .embed-responsive .embed-responsive-item {
  height: auto;
  top: 50%;
  transform: translateY(-50%);
}

/*-----*/
.mds-tags {
  margin-bottom: 10px;
}

.mds-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--text-color);
  border-radius: 50px;
  font-size: 14px;
  text-transform: uppercase;
}

.mds-tag-pro {
  background-color: var(--text-color);
  color: var(--white);
}

/*-----*/
.mds-event-blog-item {
  background-color: var(--white);
  border: 1px solid var(--brand-green);
}

.home .mds-event-blog-item {
  background-color: var(--brand-green);
  border: 1px solid var(--white);
  color: var(--white);
}

.mds-event-blog-item.mds-pro-event {
  border: 1px solid var(--text-color);
}

.mds-event-blog-item-date,
.mds-event-blog-item-desc {
  padding: 20px;
}

.mds-event-blog-item-date {
  padding-bottom: 10px;
  background-color: var(--brand-green);
  color: var(--white);
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.home .mds-event-blog-item-date {
  background-color: var(--white);
  color: var(--text-color);
}

.mds-pro-event .mds-event-blog-item-date {
  background-color: var(--text-color);
  color: var(--white);
}

.mds-event-blog-item-desc h3 {
  margin-bottom: 10px;
  color: var(--brand-green);
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.home .mds-event-blog-item-desc h3 {
  color: var(--white);
}

.mds-pro-event .mds-event-blog-item-desc h3 {
  color: var(--text-color);
}

.mds-event-blog-item-desc .mds-tag {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.home .mds-event-blog-item-desc .mds-tag {
  border-color: var(--white);
  color: var(--white);
}

.mds-pro-event .mds-event-blog-item-desc .mds-tag {
  background-color: var(--text-color);
  border-color: var(--text-color);
  color: var(--white);
}

.home .mds-event-blog-item-desc .mds-tag-pro {
  background-color: var(--white);
  color: var(--text-color);
}

.mds-event-excerpt {
  margin-bottom: 10px;
}

.mds-event-excerpt p {
  margin: 0;
}

.mds-event-blog-item .mds-readmore.link {
  margin-bottom: 10px;
}

.mds-event-blog-item .mds-readmore.link a {
  text-decoration: underline;
}

.home .mds-event-blog-item .mds-readmore.link a {
  color: var(--white);
  font-weight: var(--font-weight-medium);
}

.mds-event-blog-item .mds-readmore.link a:hover {
  text-decoration: underline;
}

.mds-event-single .mds-event-date {
  margin-bottom: 10px;
  color: var(--brand-green);
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.mds-event-single .mds-event-desc {
  margin-top: 40px;
}

.mds-event-single .mds-event-location {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 40px;
  padding: 40px;
  background-color: var(--light-gray);
}

.mds-event-single .mds-event-location h4 {
  margin-bottom: 10px;
  color: var(--brand-green);
  font-weight: var(--font-weight-bold);
}

.mds-event-single .mds-event-location address {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
}

.em-booking,
.mds-event-details + h2 {
	max-width: 80%;
	margin: 0 auto;
	margin-bottom: 20px;
}

.em-booking-form-details {
	padding: 0;
}

.single-event h3 {
	color: var(--brand-green);
}

#mds-registration-form {
	height: 1px;
	line-height: 1px;
}


.mds-anchor-registration-form {
    background-color: #00a366;
    color: #ffffff;
    font-weight: 700;
    margin-top: 30px;
	padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mds-anchor-registration-form:hover {
	color: #ffffff;
}

.mds-event-details + #mds-registration-form + h2,
.em-booking-form-section-tickets {
	display: none;
}

.em-booking-section-title,
.em-booking-section,
.em-booking-message {
	max-width: 80%;
	margin: 0 auto 20px auto;
}

.em-booking-message.em-booking-message-error {
	color: var(--error);
}

.em-booking-message.em-booking-message-success {
	padding: 20px;
	border: 1px solid var(--success);
	background-color: var(--success);
	color: var(--white);
	font-weight: var(--font-weight-bold);
	text-align: center;
}

.em-map-balloon-content a {
	display: none;
}

/*-----*/
.checkbox {
  margin-right: 10px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.mds-checkboxes-filter .wpv-custom-search-filter__input {
  display: flex;
  flex-wrap: wrap;
}

.mds-checkboxes-filter .checkbox input {
  display: none;
}

.mds-checkboxes-filter .checkbox label {
  display: inline-block;
  padding: 8px 20px;
  padding-top: 10px;
  line-height: 1;
  background-color: var(--white);
  border: 1px solid var(--brand-green);
  border-radius: 50px;
  color: var(--brand-green);
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}

.mds-checkboxes-filter .checkbox label[for*="pro"] {
  border-color: var(--text-color);
  color: var(--text-color);
}

.mds-checkboxes-filter .checkbox.active label {
  background-color: var(--brand-green);
  color: var(--white);
}

.mds-checkboxes-filter .checkbox.active label[for*="pro"] {
  background-color: var(--text-color);
}

.mds-checkboxes-filter-people .wpv-custom-search-filter__input {
  display: flex;
  flex-wrap: wrap;
}

.mds-checkboxes-filter-people .checkbox label {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 8px 20px;
  padding-top: 10px;
  line-height: 1;
  background-color: var(--white);
  border: 1px solid var(--brand-green);
  border-radius: 50px;
  color: var(--brand-green);
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}

.mds-checkboxes-filter-people .checkbox input {
	display: none;
}

.mds-checkboxes-filter-people .checkbox.active label {
	background-color: var(--brand-green);
	color: var(--white);
}

.wpv-custom-search-filter-reset input {
  font-weight: 400 !important;
}

.wpv-pagination-nav-links-container {
  margin: 0;
}

.input-help {
  color: var(--text-color);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
}

.mds-checkbox-label-digestsante label {
  color: var(--brand-green);
  font-weight: var(--font-weight-medium);
}

.mds-search-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.mds-search-action input {
  margin-bottom: 0 !important;
}

.mds-address-search-input .form-group {
	margin-bottom: 0;
}

/*-----*/
.mds-people-list-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.mds-people-list-intro .mds-label-digestsante {
  display: flex;
  align-items: center;
  line-height: 1.2;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
}

.mds-people-list-intro .mds-label-digestsante figure {
  margin-right: 5px !important;
  margin-bottom: 0;
}

.mds-people-list-intro .mds-label-digestsante a {
  text-decoration: underline;
}

.mds-people-list-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--brand-green);
}

.mds-people-list-item h2 {
  margin: 0;
  color: var(--brand-green);
  font-family: var(--font-family-condensed);
  text-transform: uppercase;
}

.mds-people-list-item h3 {
  margin: 0;
  color: var(--brand-green);
  font-family: var(--font-family-condensed);
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
}

.mds-people-list-item .mds-people-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mds-people-list-item .mds-label-digestsante {
  margin: 0;
  width: 37px;
  height: 0;
  padding-top: 30px;
  overflow: hidden;
  background-image: url("http://digestsante-2021-10-25.devpt/wp-content/uploads/digestsante-icon-green.png");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 30px;
  background-attachment: scroll;
}

.mds-people-list-item .tb-button a span {
  text-decoration: underline;
}

/*-----*/
.mds-single-professionnel h1 {
  margin-bottom: 0;
  color: var(--brand-green);
  font-family: var(--font-family-condensed);
  text-transform: uppercase;
}

.mds-single-professionnel h2 {
  color: var(--brand-green);
  font-family: ar(--font-family-condensed);
  text-transform: uppercase;
}

.mds-single-professionnel .mds-label-digestsante {
  display: flex;
  align-items: center;
  line-height: 1.2;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
}

.mds-single-professionnel .mds-label-digestsante figure {
  margin-right: 5px !important;
  margin-bottom: 0;
}

.mds-single-professionnel .mds-label-digestsante a {
  text-decoration: underline;
}

.mds-single-professionnel .mds-people-identity {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.mds-single-professionnel .mds-section {
  font-weight: var(--font-weight-medium);
}

.mds-single-professionnel .mds-section h2 {
  margin-bottom: 10px;
  font-size: var(--font-size-h3);
  text-transform: none;
}

.mds-single-professionnel .mds-section h3 {
  margin-bottom: 10px;
  color: var(--brand-green);
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-body);
}

.mds-single-professionnel .mds-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  width: 100%;
}

.mds-single-professionnel .mds-people-address address {
  margin: 0;
}

.mds-single-professionnel .mds-section a {
  color: var(--text-color);
  word-wrap: break-word;
  text-decoration: underline !important;
}

.mds-single-professionnel .mds-people-courses ul {
  margin: 0;
  padding-left: 25px;
  list-style-type: none;
  list-style-image: url("http://digestsante-2021-10-25.devpt/wp-content/uploads/triangle-green.png");
}

/*-----*/

.mds-people-profile-create {
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .mds-people-profile-create {
    max-width: 80%;
  }
}

.mds-people-edit-profile .form-group,
.mds-people-profile-create .form-group {
  margin-bottom: 20px !important;
}

.mds-people-edit-profile .checkbox,
.mds-people-profile-create .checkbox {
  margin: 0;
}

.mds-people-edit-profile label[for*="consentement"] + div > ul,
.mds-people-profile-create label[for*="consentement"] + div > ul {
  margin-left: 0;
}

/*-----*/
.breadcrumbs,
.yoast-breadcrumbs {
  font-size: 16px;
}

.breadcrumbs a,
.yoast-breadcrumbs a {
  color: var(--text-color);
}

/*-----*/
.gform_wrapper.gravity-theme .gfield_label,
.form-group label {
  margin: 0 !important;
  line-height: 1.5;
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-normal) !important;
}

/*-----*/
.wp-error {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--error);
  color: var(--error);
  text-align: center;
}

.wp-success {
  color: var(--success);
}

.mds-link-underlined a {
  text-decoration: underline !important;
}

.cred-edit-post,
.cred-edit-post:hover,
.cred-edit-post:active,
.cred-edit-post:focus {
  padding: 10px 15px;
  background-color: var(--brand-green);
  color: var(--white);
}

.message .reset-pass a {
  display: none;
}

.wpt-form-error {
	margin: 0 0 10px 0;
	font-size: 15px;
}

.wpt-form-error ul {
	list-style-type: none;
	margin: 0;
}


.wpt-form-error a {
	color: #E95E5E;
	text-decoration: underline;
}

/*-----*/

.form-tip::after {
	content: "\f223";
	font-family: "dashicons";
	vertical-align: bottom;
}

label[for*="boo_registration_mode"] {
	display: block;
}

body.home .entry-content > [class*="wp-block-"]:not(:last-child):not(.wp-block-heading) {
	margin-bottom: 0;
}

.mds-event-address address {
	margin-bottom: 0.5em;
}

.mds-event-address p {
	font-size: 1rem;
}

#mds-registration-form + h2 {
	display: none;
}