/************************** GLOBAL **************************************/
/************************** SIDEBAR *************************************/
/************************** CONTENT *************************************/

/************************** GLOBAL **************************************/


.fs-7 {
  font-size:0.8rem;
}

/************************** SIDEBAR *************************************/
#logo-zencardio {
  max-width: 150px;
}
.sidebar {
  position: fixed;
  top: var(--drupal-displace-offset-top, 0px);
  left: 0;
  width: var(--sidebar-width);
  bottom: 0;
  /* min-height: calc(var(--100vh, 100dvh) - var(--drupal-displace-offset-top, 0px)); */

  box-shadow: .25rem 0 1.25rem 0 rgba(0, 0, 0, 0.25);
  background-color: var(--color-primary);
  border-radius: 0 1.5rem 1.5rem 0;
}
.sidebar.page_in_sidebar {
  width: var(--sidebar-width-open);
}
.sidebar.page_in_sidebar #logo-zencardio {
  max-width: 260px;
}
.sidebar .sidebar-content {
  position: absolute;
  width: 100%;  height: 100%;
  padding: 2rem 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar .sidebar-content .sidebar-top {
  flex-grow: 0;
  flex-shrink: 0;
}
.sidebar .sidebar-content .sidebar-nav {
  flex-grow: 1;
  flex-shrink: 1;

  padding: 0;

  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar .sidebar-content .sidebar-nav::-webkit-scrollbar {
  display: none;  /* Older Safari and Chromium */
  width: 0;
  height: 0;
}
.sidebar .sidebar-content .sidebar-bottom {
  flex-grow: 0;
  flex-shrink: 0;
}
.sidebar .sidebar-content .sidebar-nav .region-sidebar-first {
  padding: 0;
}

@media (max-width: 992px) {
  .sidebar {
    display: none;
  }
}
@media (min-width: 992px) and (max-height: 992px) {
  .sidebar .sidebar-content {
    padding: 1.5rem 1.5rem;
  }
  .sidebar.page_in_sidebar #logo-zencardio {
    max-width: 200px;
  }
  .sidebar.page_in_sidebar .form-wrapper {
    margin-top: 0; 
  }
  .sidebar.page_in_sidebar .form-submit {
    margin-top: -1.5rem; 
  }
}

/************************** SIDEBAR - MENU *************************************/
ul.menu-main {
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;

  list-style: none;
}
ul.menu-main > li.nav-item,
div.nav-item {
  width: 100%;

  border-radius: .75rem;
  transition: background-color 0.3s ease;
}
ul.menu-main > li.nav-item:not(.fictif):hover,
ul.menu-main > li.nav-item:not(.fictif).active {
  background-color: rgba(255, 255, 255, 0.3);
}
ul.menu-main > li.nav-item > a,
div.nav-item > a,
ul.menu-main > li.nav-item.fictif > span,
div.nav-item.fictif > span {
  height: 2.9rem;
  margin: 0;
  padding: 0 0.5rem;

  display: flex;
  align-items: center;
  gap: 0.5rem;
}
ul.menu-main > li.nav-item > a .menu-picto,
div.nav-item > a .menu-picto,
ul.menu-main > li.nav-item.fictif > span .menu-picto,
div.nav-item.fictif > span .menu-picto {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}
ul.menu-main > li.nav-item > a span,
div.nav-item > a span,
ul.menu-main > li.nav-item.fictif > span,
div.nav-item.fictif > span {
  flex: 1 1 auto;

  color: #FFF;
  font-family: var(--font-family);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

ul.menu-main > li.nav-item ul.navbar-nav-dropdown {
  position: relative;
  margin: 0;
  padding: 0 .5rem;
  max-height: 0px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;

  list-style: none;
  overflow: hidden;
  opacity: 0;

  transition: max-height 0.3s ease, margin-bottom 0.3s ease, opacity 0.3s ease;
}
ul.menu-main > li.nav-item:hover ul.navbar-nav-dropdown {
  max-height: 150px; /* Arbitrary large value to allow full expansion */
  margin-bottom: .75rem;
  opacity: 1;
}
ul.menu-main > li.nav-item ul.navbar-nav-dropdown li.nav-item a {
  padding: 0.12rem .5rem;

  color: #FFF;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;

  transition: text-decoration 0.3s ease;
}
ul.menu-main > li.nav-item ul.navbar-nav-dropdown li.nav-item:hover a {
  text-decoration: underline;
}
ul.menu-main > li.nav-item ul.navbar-nav-dropdown li.nav-item.active a {
  font-weight: 700;
}


.sidebar ul.menu-main > li.nav-item > a.dropdown-toggle::after {
  display: none;
}
.sidebar ul.menu-main > li.nav-item .submenu-mobile {
  display: none;
}

/************************** TOPBAR *************************************/
.topbar {
  position: fixed;
  top: var(--drupal-displace-offset-top, 0px);
  left: 0;
  width: 100%;
  min-height: var(--topbar-height);

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--color-primary);
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.25);
  /* box-shadow: .25rem 0 1.25rem 0 rgba(0, 0, 0, 0.25); */
  border-radius: 0 0 1.25rem 1.25rem;
  z-index: 100000;
  overflow: hidden;
}
.topbar .topbar-header {
  position: absolute;
  top: 0;   left: 0;
  width: 100%;
  height: var(--topbar-height);
  padding: .5rem 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--color-primary);
}
.topbar .topbar-header-left,
.topbar .topbar-header-right {
  flex: 0 0 2.5rem;
}
.topbar .topbar-header-center {
  height: 100%;
  flex: 1 1 auto;
  text-align: center;
}

.topbar .topbar-content-wrapper {
  --height: calc(var(--100vh, 100dvh) - var(--topbar-height) - var(--drupal-displace-offset-top, 0px) + 1.25rem);
  /* on rajoute 1.25rem pour compenser le border-radius du bas de la topbar */

  position: relative; /* relative pour pouvoir caler le .submenu-desktop en absolute par rapport à ce conteneur */
  height: var(--height);
  width: 100%;
  margin-top: calc(var(--topbar-height) - var(--height));
  padding: 1rem 1rem 2.25rem 1rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  transition: margin-top 0.3s ease;
}
.topbar.open .topbar-content-wrapper {
  margin-top: var(--topbar-height);
}
.topbar .topbar-content-wrapper .topbar-content {
  flex-grow: 1;
  flex-shrink: 1;

  padding: 0;

  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topbar .topbar-content-wrapper .topbar-content::-webkit-scrollbar {
  display: none;  /* Older Safari and Chromium */
  width: 0;
  height: 0;
}
.topbar .topbar-content-wrapper .topbar-content .region-sidebar-first {
  padding: 0;
}
.topbar .topbar-content-wrapper .topbar-bottom {
  flex-grow: 0;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .topbar {
    display: none;
  }
}

/************************** TOPBAR - CONTENT *************************************/
.topbar #logo-zencardio-mobile {
  height: 100%;
}
.topbar #mobile-menu-button {
  position: relative;
}
.topbar #mobile-menu-button .icon {
  position: absolute;

  transition: transform 0.3s ease, opacity 0.3s ease;
}
.topbar #mobile-menu-button .icon.bt-open {
  transform: rotate(0deg);
  opacity: 1;
}
.topbar #mobile-menu-button .icon.bt-close {
  transform: rotate(0deg);
  opacity: 0;
}
.topbar #mobile-menu-button.open .icon.bt-open {
  transform: rotate(360deg);
  opacity: 0;
}
.topbar #mobile-menu-button.open .icon.bt-close {
  transform: rotate(360deg);
  opacity: 1;
}

.topbar ul.menu-main > li.nav-item.zen_cardio_module-search {
  display: none;
}
.topbar ul.menu-main > li.nav-item > a.dropdown-toggle::after {
  content: "";
  flex: 0 0 24px;
  width: 1.5rem;    height: 1.5rem;
  margin: 0;
  vertical-align: middle;
  float: unset;

  border: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 33% auto;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="14" viewBox="0 0 8 14" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.21967 0.21967C0.512563 -0.0732233 0.987437 -0.0732233 1.28033 0.21967L7.28033 6.21967C7.57322 6.51256 7.57322 6.98744 7.28033 7.28033L1.28033 13.2803C0.987437 13.5732 0.512563 13.5732 0.21967 13.2803C-0.0732233 12.9874 -0.0732233 12.5126 0.21967 12.2197L5.68934 6.75L0.21967 1.28033C-0.0732233 0.987437 -0.0732233 0.512563 0.21967 0.21967Z" fill="white"/></svg>')
}
.topbar ul.menu-main > li.nav-item .submenu-desktop {
  display: none;
}
.topbar ul.menu-main > li.nav-item .submenu-mobile {
  position: absolute;
  top: 0; left: 100%;
  width: 100%;  height: 100%;
  padding: 1rem 1rem 2.25rem 1rem;

  display: flex;
  flex-direction: column;
  gap: .5rem;

  background: var(--color-primary);

  transition: left 0.3s ease;
}
.topbar ul.menu-main > li.nav-item .submenu-mobile ul.navbar-nav-dropdown {
  margin: 0;
  max-height: unset;

  gap: 0.5rem;

  opacity: 1;
}
.topbar ul.menu-main > li.nav-item .submenu-mobile.open {
  left: 0;
}


/*************** TOPBAR/SIDEBAR - FORM ERRORS **************************/
.sidebar,
.topbar {
  .alert.alert-danger {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.9);
  }
}

/************************** CONTENT *************************************/
.main-content {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  min-height: calc(var(--100vh, 100dvh) - var(--drupal-displace-offset-top, 0px));

  display: flex;
  flex-direction: column;
}
.sidebar.page_in_sidebar + .main-content {
  width: calc(100% - var(--sidebar-width-open));
  margin-left: var(--sidebar-width-open);
}
@media (max-width: 992px) {
  .main-content,
  .sidebar.page_in_sidebar + .main-content {
    width: 100%;
    margin-left: 0;
    padding-top: var(--topbar-height);
  }
}

.main-content > .page > .region-content {
  padding: 0;
  flex-grow: 1;
}

.main-content > footer {
  flex-shrink: 0;
  flex-grow: 0;
}


.main-content .page {
  padding: 5rem;
}
@media (max-width: 1200px) {
  .main-content .page {
    padding: 3rem;
  }
}
@media (max-width: 992px) {
  .main-content .page {
    padding: 1.5rem;
  }
}
.main-content .page.fullwidth {
  padding-left: 0;
  padding-right: 0;
}

/************************** PAGE TITLE *******************************/
.main-content .page .page-title {
  position: relative;
  padding: 0 1.5rem;
  width: 100%;    height: 10rem;
  margin-bottom: 1.5rem;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-self: flex-start;

  border-radius: .75rem;
  background: rgba(231, 80, 69, 0.20);
  box-shadow: 0 4px 26px 0 rgba(113, 113, 111, 0.08);
}
.main-content .page .page-title h1 {
  flex: 1 1 auto;
  margin: 0;

  color: var(--color-primary);
  font-family: var(--font-family);
  font-size: 2rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.main-content .page .page-title.with-image h1 {
  max-width: calc(100% - 300px);
}
.main-content .page .page-title img.page-title-image {
  position: absolute;
  bottom: 0;   right: 1.5rem;
  height: 140%;
}
@media (max-width: 1200px) {
  .main-content .page .page-title.with-image h1 {
    max-width: calc(100% - 250px);
  }
  .main-content .page .page-title img.page-title-image {
    height: 120%;
  }
}
@media (max-width: 768px) {
  .main-content .page .page-title {
    height: auto;
    padding: 1rem 1.5rem;
  }
  .main-content .page .page-title.with-image h1 {
    max-width: unset;
    font-size: 1.75rem;
  }
  .main-content .page .page-title img.page-title-image {
    display: none;
  }
}

.main-content .page .page-title.long-title h1 {
  font-size: 1.8rem;
}
@media (max-width: 1400px) {
  .main-content .page .page-title.long-title h1 {
    font-size: 1.6rem;
  }
}
@media (max-width: 1200px) {
  .main-content .page .page-title.long-title h1 {
    font-size: 1.5rem;
  }
}
@media (max-width: 1030px) {
  .main-content .page .page-title.long-title h1 {
    font-size: 1.2rem;
  }
}
@media (max-width: 768px) {
  .main-content .page .page-title.long-title h1 {
    font-size: 1.5rem;
  }
}


/************************** PAGE FOOTER *******************************/
footer {
  padding: 0;
  padding-top: .5rem;
}
footer .region-footer {
  padding: 0;
}
footer .region-footer nav {
  padding: .5rem 1rem;
}
footer .region-footer nav ul {
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0rem 2.5rem;
}
footer .region-footer nav ul li a {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}


/* ZENTIVA CARDIOLOGIE */
/* ZENTIVA CARDIOLOGIE */
/* ZENTIVA CARDIOLOGIE */
#cadre_rounded_zentivacardio
{
  /*display: flex;*/
  padding: 2rem 1.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex: 1 0 0;

  border-radius: 1.5rem;
  border: 2px solid var(--Rouge, #E75045);
}
.title-20
{
  font-size:20px !important;
}

/* Politique et cookies */
/* Politique et cookies */
/* Politique et cookies */
.table-fixed {
  table-layout: fixed;
  width: 100%;
}
.table-fixed td,
.table-fixed th {
  width: 33.33%;
}
.table-first{
  padding: 1.25rem 1rem !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  flex: 1 0 0 !important;
  align-self: stretch !important;

  border-radius: 1rem 0 0 0 !important;
  background: var(--Rouge, #E75045) !important;

  color: var(--Blanc, #F6F6F6) !important;
  font-weight: 700 !important;
}
.table-second{
  padding: 1.25rem 1rem !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  flex: 1 0 0 !important;
  align-self: stretch !important;

  background: var(--Rouge, #E75045) !important;

  color: var(--Blanc, #F6F6F6) !important;
  font-weight: 700 !important;
}
.table-third{
  padding: 1.25rem 1rem !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  flex: 1 0 0 !important;
  align-self: stretch !important;

  border-radius: 0 1rem 0 0 !important;
  background: var(--Rouge, #E75045) !important;

  color: var(--Blanc, #F6F6F6) !important;
  font-weight: 700 !important;
}

.table-content{
  padding: 0.75rem;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1 0 0;
  align-self: stretch;

  color: #000;

  border-style: none;
}
.table-first-bottom{
  border-radius: 0 0 0 1rem;
}
.table-third-bottom{
  border-radius: 0 0 1rem 0;
}

.table-wrapper {
   overflow-x: auto;
}


/*contenu-experts VISUALISATION DU CONTENU*/
/*contenu-experts VISUALISATION DU CONTENU*/
/*contenu-experts VISUALISATION DU CONTENU*/

.banner
{
   min-height:300px;
   background-size: cover;
   background-position: top center;
   background-repeat: no-repeat;
}
.banner-infographie
{
   min-height:500px;
   background-size: cover;        /* l'image couvre toute la largeur */
   background-position: center;   /* centrée horizontalement et verticalement */
   background-repeat: no-repeat;
}

/*contenu-experts + Derniers reco */
/*contenu-experts + Derniers reco */
/*contenu-experts + Derniers reco */

.thumbnail
{
   min-height:200px;
   background-size: cover;        /* l'image couvre toute la largeur */
   background-position: top center;   /* centrée horizontalement et verticalement */
   background-repeat: no-repeat;
}


/* ACCUEIL */
/* ACCUEIL */
/* ACCUEIL */

.recently-viewed-section
{
    display: flex;
    padding: 1.5rem 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;

    border-radius: 1rem;
    background: #FFF;
    box-shadow: 0 0 36px 0 rgba(0, 0, 0, 0.05);
}
.favorites-section
{
    display: flex;
    padding: 1.5rem 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;

    border-radius: 1rem;
    background: #FFF;
    box-shadow: 0 0 36px 0 rgba(0, 0, 0, 0.05);
}
.featured-section
{
    display: flex;
    padding: 1.5rem 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;

    border-radius: 1rem;
    background: #FFF;
    box-shadow: 0 0 36px 0 rgba(0, 0, 0, 0.05);
}
.content-list {
  list-style: none;
  display: flex;
  width: 100%;

}
.content-item {
  width: 100%;
  padding: .5rem 0;

  display: flex;
  align-items: center;
  gap: .5rem;

  border-bottom: 1px solid #EAEAEA;
}
.content-item span.item-title {
  flex: 1 1 auto;

  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.content-item span.item-liked,
.content-item span.item-voir,
.content-item span.item-dl {
  flex: 0 0 auto;

  /* justify-content: flex-end;
  padding-left: 10px; */
}
.content-item span i {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-large {
  font-size: 1.5rem;
}

.card {
  width: 305px;
  height: 460px !important;
  border: none;

  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding: 1rem !important;

  border-radius: .75rem;
  background: var(--Blanc, #FFF);
  box-shadow: 0 4px 26px 0 rgba(113, 113, 111, 0.08);
}
.card.card-recommandations {
  width: 500px;
  max-width: 100%;
  height: auto !important;
  flex-direction: row !important;
}
.card.card-recommandations > * {
  flex: 1 1 50% !important;
}
@media (max-width: 992px) {
  .card-recommandations .btn {
    font-size: 1rem;
  } 
}
.row > .col-12 > .card {
  width: 100%;
}

.card-img-top {
  width: 100%;
  height: 200px !important;
  object-fit: cover;
  flex-shrink: 0;
}

.card-body {
  height: 250px !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-body-recommandations {
  height: auto !important;
}
.card-body > * {
  flex: 0 0 auto;
}
.card-body > h5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.card-body > div.card-description {
  flex: 1 1 auto;
  margin-bottom: 1rem;
  min-height: 0;

  overflow: hidden;
}
.card-body > div.card-description p {
  margin: 0;
  
  color: var(--color-gris, #71716F);
  font-family: var(--font-family);
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.card-body > .card-actions {
  display: flex;
  flex-direction: column;
}
.card-body > .card-actions-promoreco {
  flex-direction: row !important;
}
.tag-fondamentaux
{
  font-size:14px !important;
}

/*FAQ */
/*FAQ */
/*FAQ */
.accordion > div {
  border-radius: 10px;
  overflow: hidden;
}
.accordion-button:focus
{
  border-color: transparent !important;
  box-shadow: none !important;
}

/* CONTACT US */
.checkbox-align label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-align input[type="checkbox"] {
  margin-top: 0;
}
