html {
  scroll-behavior: smooth;
}


tbody tr td:nth-child(1) {
  padding-left: 15px;
}

tbody tr td:nth-child(2) {
  width: 200px !important;
  text-align: right;
  padding-right: 15px;
}


.font-system {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


@media (max-width: 767px)
{
  tbody tr td:nth-child(2) {
    width: 150px !important;
  }
}

@media (max-width: 576px)
{
  tbody tr td:nth-child(2) {
    width: 100% !important;
  }
}


.recipe-img {
  /* max-width: 400px; */
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.recipe__img {
  width: 100%;
  height: 35vw;
  object-fit: cover;
}

@media (max-width: 590px)
{
  .recipe__img {
    height: 35vh;
  }
}

.min-h-100vh {
  min-height: 100vh;
}

.isDisabled {
  pointer-events: none;
  color: rgb(200, 200, 200)!important;
  cursor: not-allowed;
}

.decimal {
  margin-left: 1em;
}

.decimal li {
  list-style: decimal;
  padding-left: 0.75em;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid hsl(0, 0%, 70%);
  border-radius: 25px;

  transition: all 0.3s;
}

.search-bar:focus-within {
  border-color: hsl(214, 100%, 80%);
  box-shadow: 0 0 10px -2px hsl(214, 100%, 60%);
}

.search-bar:focus-within i {
  color: hsl(214, 100%, 60%);
}

#search {
  width: 100%;
  font-family: 'Poppins', sans-serif;

  border: none;
}

#search::placeholder {
  font-size: 1rem;
}

.search-bar i {
  margin-inline: .75rem;
  font-size: 1.25rem;

  transition: all 0.3s;
}

.search-bar > input + i {
  margin-right: 0.75rem;
  cursor: pointer;
}

.card {
  border: none;
  height: 100%;
}

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

/* TAG */
.btn-type[data-type="tous"] {
  border-color: #1a8ae6;
  color: #1a8ae6;
  background: #fff;
}
.btn-type[data-type="tous"]:hover,
.btn-type[data-type="tous"].active {
  border-color: #1a8ae6;
  color: #fff;
  background: #1a8ae6;
}

.btn-type[data-type="boulangerie"] {
  border-color: #e66f1a;
  color: #e66f1a;
  background: #fff;
}
.btn-type[data-type="boulangerie"]:hover,
.btn-type[data-type="boulangerie"].active {
  border-color: #e66f1a;
  color: #fff;
  background: #e66f1a;
}
.type-pill span[data-type="boulangerie"] {
  color: var(--orange-500);
  background: var(--orange-50);
}

.btn-type[data-type="entrée"] {
  border-color: #40bf55;
  color: #40bf55;
  background: #fff;
}
.btn-type[data-type="entrée"]:hover,
.btn-type[data-type="entrée"].active {
  border-color: #40bf55;
  color: #fff;
  background: #40bf55;
}
.type-pill span[data-type="entrée"] {
  color: var(--green-500);
  background: var(--green-50);
}

.btn-type[data-type="plat"] {
  border-color: #25c5da;
  color: #25c5da;
  background: #fff;
}
.btn-type[data-type="plat"]:hover,
.btn-type[data-type="plat"].active {
  border-color: #25c5da;
  color: #fff;
  background: #25c5da;
}
.type-pill span[data-type="plat"] {
  color: var(--cyan-500);
  background: var(--cyan-50);
}

.btn-type[data-type="dessert"] {
  border-color: #ed64a6;
  color: #ed64a6;
  background: #fff;
}
.btn-type[data-type="dessert"]:hover,
.btn-type[data-type="dessert"].active {
  border-color: #ed64a6;
  color: #fff;
  background: #ed64a6;
}
.type-pill span[data-type="dessert"] {
  color: var(--pink-500);
  background: var(--pink-50);
}

.btn-type[data-type="sauce"] {
  border-color: #bd66cc;
  color: #bd66cc;
  background: #fff;
}
.btn-type[data-type="sauce"]:hover,
.btn-type[data-type="sauce"].active {
  border-color: #bd66cc;
  color: #fff;
  background: #bd66cc;
}
.type-pill span[data-type="sauce"] {
  color: var(--purple-500);
  background: var(--purple-50);
}

.btn-type[data-type="marinade"] {
  border-color: #3dc2bb;
  color: #3dc2bb;
  background: #fff;
}
.btn-type[data-type="marinade"]:hover,
.btn-type[data-type="marinade"].active {
  border-color: #3dc2bb;
  color: #fff;
  background: #3dc2bb;
}
.type-pill span[data-type="marinade"] {
  color: var(--teal-500);
  background: var(--teal-50);
}





.bg-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: center;
}

/* @media (max-width: 575px) {
  .bg-img {
    background-position-x: -350px;
  }
} */

.bg-img-fixed {
  background-attachment: fixed;
}

.fullheight {
  min-height: 100vh;
}


section {
  padding: 6rem 0;
}

section.categories {
  /* height: 500px; */
  height: max-content;
  padding-top: 0;
}

section.footer {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

section h2 {
  font-size: 3rem;
}

.slogan {
  text-align: left;
}

.slogan h1 {
  font-size: 3rem;
  margin-bottom: 3rem;;
}

.slogan p {
  margin-bottom: 3rem;
}

.slogan .btn {
  font-size: 1.125rem;
}

.fullwidth {
  width: 100%;
}

.align-items-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}



@media (max-width: 576px)
{
  section h2 {
    font-size: 2rem;
  }

  .slogan h1 {
    font-size: 2rem;
    margin-bottom: 1rem;;
  }
  
  .slogan p {
    margin-bottom: 1rem;
  }

  .slogan .btn {
    font-size: 0.75rem;
  }
}


.round-pill {
  border-radius: calc(0.2rem * 10) !important;
}



.background {
  min-height: 100vh;
  position: relative;

  --url: url("/img/design/fresh_food.jpg");
  --opacity: 0.35;
}

.background::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--url);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: var(--opacity);
  z-index: 0;

  transition: .5s;
}

.background h2 {
  position: relative;
}


.type-pills {
  font-weight: 500;
}


.card-recipe {
  position: relative;
  /* width: 320px; */
  /* height: 360px; */
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.card-recipe a {
  text-decoration: none;
}

.card-recipe a:hover {
    color: #555;
}

/* .card-recipe .title {
  font-weight: 500;
  line-height: 1;
} */

/* .card-recipe :is(.difficulty-1, .difficulty-2 .difficulty-3) :nth-child(1){ color: var(--blue-gray-700); }
.card-recipe .difficulty-1 :nth-child(2){ color: var(--gray-100); }
.card-recipe .difficulty-1 :nth-child(3){ color: var(--gray-100); }

.card-recipe .difficulty-2 :nth-child(2){ color: var(--blue-gray-700); }
.card-recipe .difficulty-2 :nth-child(3){ color: var(--gray-100); }

.card-recipe .difficulty-3 :nth-child(2){ color: var(--blue-gray-700); }
.card-recipe .difficulty-3 :nth-child(3){ color: var(--blue-gray-700); }

.difficulty-rating :is(.difficulty-1, .difficulty-2 .difficulty-3) :nth-child(1){ color: var(--blue-gray-700); }
.difficulty-rating .difficulty-1 :nth-child(2){ color: var(--gray-100); }
.difficulty-rating .difficulty-1 :nth-child(3){ color: var(--gray-100); }

.difficulty-rating .difficulty-2 :nth-child(2){ color: var(--blue-gray-700); }
.difficulty-rating .difficulty-2 :nth-child(3){ color: var(--gray-100); }

.difficulty-rating .difficulty-3 :nth-child(2){ color: var(--blue-gray-700); }
.difficulty-rating .difficulty-3 :nth-child(3){ color: var(--blue-gray-700); } */

[class^="difficulty-"] :nth-child(1){ color: var(--blue-gray-700); }
.difficulty-1 :nth-child(2){ color: var(--gray-100); }
.difficulty-1 :nth-child(3){ color: var(--gray-100); }

.difficulty-2 :nth-child(2){ color: var(--blue-gray-700); }
.difficulty-2 :nth-child(3){ color: var(--gray-100); }

.difficulty-3 :nth-child(2){ color: var(--blue-gray-700); }
.difficulty-3 :nth-child(3){ color: var(--blue-gray-700); }

/* .card-recipe .duration { 
    font-weight: 100;
} */

.card-text {
  /* height: 140px; */
  display: flex;
  /* justify-content: space-between; */
  gap: 16px;
  padding-inline: 8px;
  padding-block: 20px;
}

.card-recipe-img {
  width: 100%;
  /* height: 100%; */
  height: 220px;
}

.img-position-center {
  object-position: center;
}

.card-recipe-desc {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  height: auto;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 16px;

  border: 2px solid transparent;
  background-clip: padding-box;
}

.card-recipe-desc-index {
  position: absolute;
  bottom: 1rem;
  /* left: 2rem; */
  right: -1px;
  max-width: 300px;
  height: auto;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;

  border: 2px solid transparent;
  border-right: 0px;
  background-clip: padding-box;
}

.card-recipe-desc .title {
  display: block;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.card-recipe-desc-index .title {
  display: block;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}

.card-recipe a .card-recipe-img img,
.card-recipe-home a .card-recipe-img-home img {
  transition: scale 0.3s ease-in-out;
}

.card-recipe a:hover .card-recipe-img img,
.card-recipe-home a:hover .card-recipe-img-home img {
  scale: 1.02;
}


.card-recipe-home {
    position: relative;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
  }
  
  .card-recipe-img-home {
    width: 100%;
    height: 100%;
  }

  .card-recipe-desc-home .title {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
  }
  
  .card-recipe-desc-home {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    height: auto;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 16px;
  
    border: 2px solid transparent;
    background-clip: padding-box;
  }


.card-categories {
  padding: 1rem;
  /* width: 200px;
  height: 150px; */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: .5rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);

  transition: background 0.2s ease;
}

.card-categories-img {
  display: flex;
  justify-content: center;
}

.card-categories-img img {
  width: 100px;
  height: 80px;
}

.card-categories-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
}

section a {
  text-decoration: none;
}

.card-categories:hover {
  background: rgba(0, 0, 0, 0.005);
}


@media (max-width: 1200px)
{
  section.categories {
    height: max-content;
  }
}


/* Scroll to top button */


.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 10px; 
  /* font-size: 2rem; */
  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 99;
  
  opacity: 0;
  pointer-events: none;

  transition: all 0.2s ease-in-out;
}
.scroll-to-top.active {
  bottom: 15px;
  pointer-events: auto;
  opacity: 1;
}





.tab-container {
  padding: 2rem;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.tabHeader .tab-links a {
  z-index: 2;
}

.line {
  z-index: 1;
}

.h-100-vh {
  height: 100vh !important;
}

.overflowY-hidden {
  overflow-y: hidden;
}

.border-left {
  border-left: 1px solid #555;
}


.img-fit-cover {
  -o-object-fit: cover;
  object-fit: cover;
}

.tabContent ol {
  margin-left: 1em;
}

.tabContent ol li {
  list-style: decimal;
  padding-left: 0.75em;
  line-height: 2;
}

.text-center {
  text-align: center !important;
}

.border-10 {
  border-width: 10px;
}




/* CUSTOM CHECKBOX */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

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

.checkbox__box {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #ccc;
  border-radius: 0.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  transition: all 0.2s ease;
}

.checkbox__box::after {
  content: '\eaea';
  font-family: 'FreyaIcons';
  color: #fff;
}

.checkbox__input:checked+.checkbox__box {
  /* background: #2266dc; */
  /* border-color: #2266dc; */
  background: #439cef;
  border-color: #439cef;
}





/* SCROLL TO TOP */
.scrollTop {
  position: fixed;
  bottom: 40px;
  right: -40px;
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;

  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}

.scrollTop.active {
  right: 40px;
  visibility: visible;
  opacity: 1;
}

.scrollTop i {
  font-size: 1.5rem;
  color: #4d4d4d;
}

@media (max-width: 576px) {
  .scrollTop {
    bottom: 20px;
  }

  .scrollTop.active {
    right: 20px;
  }
}






/* DASHBOARD */

/* Variables CSS */
:root {
  --header-height: 3.5rem;
  --nav-width: 219px;

  /* Colors */
  --first-color: #1888f1;
  --first-color-light: #f4f0fa;
  --title-color: #19181b;
  --text-color: #58555e;
  --text-color-light: #a5a1aa;
  --body-color: #f9f6fd;
  --container-color: #fff;

  /* Font and Typography */
  --body-font: 'Poppins', sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .75rem;
  --smaller-font-size: .75rem;

  /* Font Weight */
  --font-medium: 500;
  --font-semi-bold: 600;

  /* Z Index */
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

.nav a {
  text-decoration: none;
}

.nav.dark {
  background: #333;
  --text-color: #b5b5b5;
  --first-color: #3da1ff;
}

.nav.dark .nav__dropdown-collapse {
  --first-color-light: #444;
}

.nav + .container,
.nav + .container-fluid {
  margin-top: 60px;
}

@media screen and (max-width: 766px) {
  .nav + .container-fluid {
    padding-inline: 0.5rem;
  }
}

/*========== HEADER ==========*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  box-shadow: 0 1px 0 rgba(22, 8, 43, .1);
  padding: 0 1rem;
  z-index: var(--z-fixed);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.header__logo {
  /* color: var(--title-color); */
  /* font-weight: var(--font-medium); */
  display: none;
}

.header__search {
  display: flex;
  padding: 0.4rem 0.75rem;
  background-color: var(--first-color-light);
  border-radius: .25rem;
  align-items: center;
}

.header__search>i {
  margin-left: 10px;
}

.header__input {
  width: 100%;
  border: none;
  outline: none;
  background-color: var(--first-color-light);
}

.header__input::placeholder {
  font-family: var(--body-font);
  color: var(--text-color);
}

.header__icon,
.header__toggle {
  font-size: 1.2rem;
}

.header__toggle {
  color: var(--title-color);
  cursor: pointer;
}

.header-nav {
  z-index: 10;
}

/* .header-nav.nav-fixed + .container {
  margin-top: 60px;
} */


/*========== NAV ==========*/
.nav {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  padding: 1rem 1rem 3rem;
  background-color: var(--container-color);
  box-shadow: 1px 0 0 rgba(22, 8, 43, .1);
  z-index: var(--z-fixed);

  transition: 0.4s;
}

.nav__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
  scrollbar-width: none;
  /* For Mozilla */
}

.nav__container::-webkit-scrollbar {
  display: none;
  /* For Google Chrome and others */
}

.nav__logo {
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}

.nav__list,
.nav__items {
  display: grid;
}

.nav__list {
  row-gap: 2.5rem;
}

.nav__items {
  row-gap: 1.2rem;
}

.nav__subtitle {
  font-size: var(--normal-font-size);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--text-color-light);
}

.nav__link {
  display: flex;
  align-items: center;
  color: var(--text-color);

  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.nav__name {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.nav__logout {
  margin-top: 5rem;
}

/* Dropdown */
.nav__dropdown {
  overflow: hidden;
  max-height: 21px;

  transition: .4s ease-in-out;
}

.nav__dropdown-collapse {
  background-color: var(--first-color-light);
  border-radius: .25rem;
  margin-top: 1rem;
}

.nav__dropdown-content {
  display: grid;
  row-gap: .5rem;
  padding: 0.75rem 2.5rem .75rem 1.8rem;
}

.nav__dropdown-item {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);

  transition: color 0.3s ease;
}

.nav__dropdown-item:hover {
  color: var(--first-color);
}

.nav__dropdown-icon {
  margin-left: auto;

  transition: .4s;
}

.avatar__img>span {
  display: none;
}


/* Show Collapse */
/* .nav__dropdown:hover {
    max-height: 25vh;
} */
.nav__dropdown.active {
  max-height: 25vh;
}


/* Rotate Icon Arrow */
/* .nav__dropdown:hover .nav__dropdown-icon {
    transform: rotate(180deg); */
/* } */
.nav__dropdown.active .nav__dropdown-icon {
  transform: rotate(180deg);
}


/*===== SHOW MENU =====*/
.show-menu {
  left: 0;
}


/*===== ACTIVE LINK =====*/
nav .active {
  color: var(--first-color);
}


/*========== MEDIA QUERIES ==========*/
/* For Small Devices Reduce Search */
@media screen and (max-width: 320px) {
  .header__search {
    width: 70%;
  }
}

@media screen and (min-width: 768px) {
  body.dashboard {
    padding: 1rem 2rem 0 6rem;
  }

  .header {
    padding: 0 3rem 0 6rem;
  }

  .header__container {
    height: calc(var(--header-height) + .5rem);
  }

  .header__search {
    width: 300px;
    padding: 0.55rem 0.75rem;
  }

  .header__toggle {
    display: none;
  }

  .header__logo {
    display: block;
  }

  .header__img {
    width: 40px;
    height: 40px;
    /* order: 1; */
  }

  .avatar__img {
    order: 1;
  }

  .avatar__img>span {
    display: block;
  }

  .nav {
    left: 0;
    padding: 1.2rem 1.5rem 3rem;
    width: 70px;
  }

  .nav__items {
    row-gap: 1.2rem;
  }

  .nav__icon {
    font-size: 1.3rem;
  }

  .nav__logo-name,
  .nav__name,
  .nav__subtitle,
  .nav__dropdown-icon {
    opacity: 0;

    transition: opacity .3s;
  }

  /* .nav:hover {
        width: var(--nav-width);
    } */
  .nav.active {
    width: var(--nav-width);
  }

  .nav:hover .nav__logo-name,
  .nav:hover .nav__name,
  .nav:hover .nav__subtitle,
  .nav:hover .nav__dropdown-icon {
    opacity: 1;
  }
}

/* Animation elements */
.fade-in {
  opacity: 0;
  transition: opacity 500ms ease-in;
}

.fade-in.appear {
  opacity: 1;
}

.slide-in.delay-1, .fade-in.delay-1 {
  transition-delay: 0.2s;
}
.slide-in.delay-2, .fade-in.delay-2 {
  transition-delay: 0.4s;
}
.slide-in.delay-3, .fade-in.delay-3 {
  transition-delay: 0.6s;
}

.slide-in {
  transition: opacity 500ms ease-in, transform 500ms ease-in;
  overflow-x: hidden;
}

.from-top {
  opacity: 0;
  transform: translateY(-10%);
}
.from-top.appear {
  opacity: 1;
  transform: translateY(0);
}

.from-right {
  opacity: 0;
  transform: translateX(10%);
}
.from-right.appear {
  opacity: 1;
  transform: translateX(0);
}

.from-bottom {
  opacity: 0;
  transform: translateY(10%);
}
.from-bottom.appear {
  opacity: 1;
  transform: translateY(0);
}

.from-left {
  opacity: 0;
  transform: translateX(-10%);
}
.from-left.appear {
  opacity: 1;
  transform: translateX(0);
}


.cursor-help {
  cursor: help;
}

.align-self-center {
  align-self: center;
}




/* SUBMENU SIDEBAR */
.submenu-sidebar {
  position: fixed;
  top: 200px;
  right: -290px;
  width: 300px;
  padding-inline: 2rem;
  background-color: #fff;
  border-radius: 12px 0 0 12px;
  border-left: 10px solid var(--blue-400);

  transition: right .3s;
}

.submenu-sidebar:hover {
  right: 0;
  cursor: pointer;
}

.submenu-sidebar li {
  padding-block: 1rem;
}



/* COCHER LES ETAPES REALISEES */
.stepsRecipes li {
  cursor: pointer;
}

.stepDone {
  text-decoration: line-through;
}