.gradient-custom-2 {
      /* fallback for old browsers */
      background: #fccb90;
      
      /* Chrome 10-25, Safari 5.1-6 */
      background: -webkit-linear-gradient(to right, #4ccfde, #43afc1, #3a8ea3, #326e86);
      
      /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
      background: linear-gradient(to right, #4ccfde, #43afc1, #3a8ea3, #326e86);
      }
      
      @media (min-width: 768px) {
      .gradient-form {
      height: 100vh !important;
      }
      }
      @media (min-width: 769px) {
      .gradient-custom-2 {
      border-top-right-radius: .3rem;
      border-bottom-right-radius: .3rem;
      }
}


.pagination {
    gap: 0.5rem; /* espace horizontal entre les éléments */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.wrapper {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  /*testsidebar*/
  @import url('https://fonts.googleapis.com/css?family=Varela+Round');
  html, body {
      overflow-x: hidden;
      height: 100%;
  }
  body {    
      min-height: 100%;
      background: #fff;
      padding: 0;
      margin: 0;
      font-family: 'Varela Round', sans-serif;
  }
  .header {
      display: block;
      margin: 0 auto;
      width: 100%;
      max-width: 100%;
      box-shadow: none;
      background-color: #4ccfde;
      position: fixed;
      height: 60px!important;
      overflow: hidden;
      z-index: 10;
  }
  .main {
      margin: 0;
      display: block;
      height: 100%;
      margin-top: 60px;
      min-height: 100vh;
  }
  .mainInner{
      display: table;
      height: 100%;
      width: 100%;
      text-align: center;
  }
  .mainInner div{
      display:table-cell;
      vertical-align: middle;
      font-size: 3em;
      font-weight: bold;
      letter-spacing: 1.25px;
  }
  #sidebarMenu {
      height: 100%;
      position: fixed;
      left: 0;
      width: 250px;
      margin-top: 60px;
      transform: translateX(-250px);
      transition: transform 250ms ease-in-out;
      background: linear-gradient(180deg, #4ccfde 0%, #326e86 100%);
      z-index: 10;
      overflow-y: auto;  /* Permet le scroll vertical */
    -webkit-overflow-scrolling: touch; /* Améliore le scroll sur les appareils mobiles */
    padding-bottom: 60px;
  }
  .sidebarMenuInner{
      margin:0;
      padding:0;
      border-top: 1px solid rgba(255, 255, 255, 0.10);
  }
  .sidebarMenuInner li{
      list-style: none;
      color: #fff;
      text-transform: uppercase;
      font-weight: bold;
      padding: 20px;
      cursor: pointer;
      border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
  .sidebarMenuInner li span{
      display: block;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.50);
  }
  .sidebarMenuInner li a{
      color: #fff;
      text-transform: uppercase;
      font-weight: bold;
      cursor: pointer;
      text-decoration: none;
  }
  input[type="checkbox"]:checked ~ #sidebarMenu {
      transform: translateX(0);
  }
  
  input[type=checkbox] {
      transition: all 0.3s;
      box-sizing: border-box;
      display: none;
  }
  .sidebarIconToggle {
      transition: all 0.3s;
      box-sizing: border-box;
      cursor: pointer;
      position: absolute;
      z-index: 99;
      height: 100%;
      width: 100%;
      top: 22px;
      left: 15px;
      height: 22px;
      width: 22px;
  }
  .spinner {
      transition: all 0.3s;
      box-sizing: border-box;
      position: absolute;
      height: 3px;
      width: 100%;
      background-color: #fff;
  }
  .horizontal {
      transition: all 0.3s;
      box-sizing: border-box;
      position: relative;
      float: left;
      margin-top: 3px;
  }
  .diagonal.part-1 {
      position: relative;
      transition: all 0.3s;
      box-sizing: border-box;
      float: left;
  }
  .diagonal.part-2 {
      transition: all 0.3s;
      box-sizing: border-box;
      position: relative;
      float: left;
      margin-top: 3px;
  }
  input[type=checkbox]:checked ~ .sidebarIconToggle > .horizontal {
      transition: all 0.3s;
      box-sizing: border-box;
      opacity: 0;
  }
  input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-1 {
      transition: all 0.3s;
      box-sizing: border-box;
      transform: rotate(135deg);
      margin-top: 8px;
  }
  input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-2 {
      transition: all 0.3s;
      box-sizing: border-box;
      transform: rotate(-135deg);
      margin-top: -9px;
  }

  /* Ajouter un overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Gris semi-transparent */
    display: none; /* Masqué par défaut */
    z-index: 5; /* Doit être sous la sidebar mais au-dessus du contenu */
}

/* Rendre l'overlay visible lorsque la sidebar est ouverte */
input[type="checkbox"]:checked ~ #sidebarMenu {
    transform: translateX(0);
}

/* Montrer l'overlay quand la sidebar est activée */
input[type="checkbox"]:checked ~ #sidebarMenu + #overlay {
    display: block;
    z-index: 4; /* Juste en dessous de la sidebar */
}

/* Désactiver le défilement de la page lorsque la sidebar est ouverte */
input[type="checkbox"]:checked ~ #sidebarMenu + #overlay + .main {
    overflow: hidden;    
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}



/* Style de l'élément contenant un sous-menu */
.submenu {
    display: none; /* Le sous-menu est caché par défaut */
    padding-left: 10px;
}

/* Afficher le sous-menu lorsque la case à cocher est activée */
.submenu-toggle:checked + .submenu {
    display: block; /* Le sous-menu est affiché quand le checkbox est coché */
}


/* Style du label, il agit comme un bouton pour le clic */
.menu-label {
    display: block;
    cursor: pointer;
}

/* (Optionnel) Style pour les éléments du sous-menu */
.submenu li {
    font-size: 14px;
    border-bottom: none;
}


/* ACTIVE CALORIES  */

.active-calories {
    display: flex;
    flex-direction: column;
    background-color: rgb(49, 101, 185);
    padding: 0 10px;
    margin: 15px 10px 0;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 3px;
    width: 15%;
    text-align: center;
  }
  
  @media (max-width: 767px) {
    /* Styles à appliquer pour les smartphones */
    .active-calories {
         width: 80%;
         margin-left: auto;
         margin-right: auto;
      }
}

  .active-calories h1 {
    margin-top: 10px;
    font-size: 1.2rem;
  } 
  
  .calories-content p {
    font-size: 1rem;
  }
  
  .calories-content p span {
    font-weight: 700;
  }


