:root {
  --theme-black: #000;
  --theme-white: #fff;
  --theme-blue: #004ec0;
  --theme-red: #dc4537;
  --theme-box-shadow: 1px 1px 15px #ececec;
  --theme-border: 1px solid #ddd;
  --menu-bg-color: #dc4537;
}
body.sidebar-hidden .main-layout .sidebar{
  width: 280px;
  overflow: hidden;
  padding: 0 0.7rem 0;
  background: var(--white-color);
}
/* body .main-layout .sidebar{
  width: 0;
  padding: 0;
} */
/* Color variables for dark theme */
.dark-mode {
  --theme-black: #fff;
  --theme-white: #ddd;
  --theme-blue: #fff;
  --theme-red: #fff;
  --theme-box-shadow: none;
  --theme-border: 1px solid #2d2d2d;
  --menu-bg-color: #272727;
}

.my-navbar .nav-button.menu-button i{
  font-size: 1.8rem;
}
.sidebar .link-section .link-item.active{
  color: var(--theme-white);
  background-color: var(--menu-bg-color);
}

.link-section .link-item{
  overflow: scroll;
}
.link-section .img-list-menu{
  width: 30px;
  margin-right: 8px;
  height: 30px;
  border-radius: 50px;
  object-fit: cover;
}

.video-list .video-card{
  position: relative;
}
.video-list .video-card .icon{
  border: 1px solid #ddd;
  object-fit: cover;
}

.video-list .video-card .video-info{
  /* box-shadow: var(--theme-box-shadow); */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  min-height: 150px;
  border-left: var(--theme-border);
  border-bottom: var(--theme-border);
  border-right: var(--theme-border);
  flex-direction: column;
  justify-content: space-between;
}
.video-list .video-card .price-type{
  display: flex;
  justify-content: space-between;
}
.video-list .video-card .price-type .type{
  font-weight: bold;
  color: var(--theme-blue);
}
.video-list .video-card .price-type .price,
.show_price{
  font-weight: bold;
  color: var(--theme-red);
  background-color: var(--light-gray-color);
  display: flex;
  min-width: 30px;
  height: 30px;
  width: auto;
  padding: 0 10px;
  border-radius: 50px;
  position: absolute;
  bottom: 5px;
  right: 5px;
  align-items: center;
  justify-content: center;
}
.show_price{
  /* border: 2px solid var(--theme-white); */
  background-color: var(--theme-blue);
  color: var(--theme-white);
  box-shadow: 1px 1px 12px #f0f6b5;
}

.video-list .video-card .thumbnail-container{
  display: flex;
  position: relative;
}
.video-list .video-card .thumbnail-container .float-image{
  position: absolute;
  top: 5px;
  right: 5px;
  width: 70px;
  /* height: 70px; */
  border-radius: 10px;
  border: 1px solid #fff;
  object-fit: contain;
  box-shadow: 0px 0px 5px .1px #000;
}
.video-list .video-card .thumbnail{
  border-radius: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  object-fit: cover;
  height: 240px;
}
.video-list .video-card .channel-name{
  margin: .4rem 0 0.15rem;
}

.video-list .video-card .title:hover{
  color: var(--theme-blue);
}

/* show-page */
.show-page .main-layout .sidebar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  height: 100vh;
  transition: 0.2s ease;
}
body.sidebar-hidden.show-page .main-layout .sidebar {
  left: -280px;
}

.show-page .main-layout .sidebar .nav-left {
  display: flex;
}

.show-page .content .img{
  height: 500px;
  overflow: hidden;
  background-color: #faab1033;
  border-radius: 10px;
}
.show-page .content .img > img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.show-page .content .imgs{
  width: 100%;
  display: flex;
  overflow-x: auto;
  gap: 5px;
}
.show-page .content .imgs > img{
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.compte-div{
  display: flex;
  justify-content: space-between;
}

.compte-div .compte{
  align-items: center;
  gap: 15px;
}
.compte-div .compte .logo img{
  width: 50px;
  height: 50px;
  border-radius: 50px;
  object-fit: cover;
}
.compte-div .compte .logo.interne img{
  width: 100px;
  height: 100px;
}
.compte-div .compte .text{
  line-height: 1.2;
}
.compte-div .compte .channel{
  font-weight: bold;
  font-size: 18px;
}
.compte-div .compte .views{
  font-size: 14px;
}

.dropdown-toggle.share-dropdown::after{
  content: none;
}

.custom-btn{
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  color: var(--black-color);
  padding: 0.4rem 0.75rem;
  background: var(--light-gray-color);
  text-decoration: none;
}
.custom-btn:not(.active):hover{
  background: var(--border-color);
}

.show-page .content .titre{
  margin-top: 20px;
  margin-bottom: 20px;
}

.compte-details .img{
  height: 200px;
  width: 100%;
}
.compte-details .img > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-page .content .titre,
.compte-div .compte .channel,
.compte-div .compte .views,
.show-page .content .description,
.other-titre{
  color: var(--theme-black);
}

body.show-page.sidebar-hidden .main-layout .screen-overlay{
  opacity: 0;
  pointer-events: none;
}
.show-page .main-layout .screen-overlay{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 15;
  width: 100%;
  height: 100vh;
  background: var(--overlay-dark-color);
  transition: 0.2s ease;
}

.create-account-btn{
  display: flex;
  width: 150px;
  padding: 5px 5px;
  border-radius: 40px;
  justify-content: center;
  text-decoration: none;
  color: var(--theme-black);
  border: 1px solid #ddd;
  font-size: 14px;
}

nav.d-flex {
  padding: 10px;
  border-radius: 0.375rem;
}

.custom-modal{
  display: block;
  padding: 20px;
  background-color: var(--theme-white);
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 400px;
  height: 100vh;
  transition: opacity ease .2s;
  z-index: -1;
}
.custom-modal.modal-open{
  opacity: 1;
  z-index: 20;
}
.custom-overlay.open{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 15;
  width: 100%;
  height: 100vh;
  background: var(--overlay-dark-color);
  transition: 0.2s ease;
}

.custom-modal .nav-section{
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.custom-modal .my-button{
  border: none;
  height: 40px;
  width: 40px;
  cursor: pointer;
  background: none;
  border-radius: 50%;
}
.custom-modal .my-button i{
  font-size: 1.8rem;
}
.custom-modal .logo-image{
  width: 170px;
  cursor: pointer;
}

.filter_button{
  display: block;
  margin-top: 10px;
  width: fit-content;
  padding: 8px 15px;
  border-radius: 40px;
  justify-content: center;
  text-decoration: none;
  color: var(--theme-black);
  border: 1px solid #ddd;
  font-size: 14px;
  cursor: pointer;
  transition: all ease-in .2s;
}
.filter_button:hover{
  background-color: #dc4537;
  color: var(--theme-white);
}

.form-control{
  display: block;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-control label{
  font-size: 15px;
  display: block;
  margin-bottom: 5px;
}
.form-control select,
.form-control input{
  height: 30px;
  border-radius: 5px;
  width: 100%;
}

.content-wrapper .video-list{
  margin-top: 20px;
  padding-top: 0;
}

.video-card.pub{
  overflow: hidden;
  height: 390px;
  border-radius: 10px;
}
.video-card.pub img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Pagination style */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.page-item {
  margin: 0 2px;
}
.page-link {
  display: inline-block;
  padding: 0rem .5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  color: #007bff;
  background-color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.page-link:hover {
  background-color: #e9ecef;
  color: #0056b3;
}
.page-item.active .page-link {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
.page-item.disabled .page-link {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #ddd;
}
.page-item button.page-link {
  background-color: #f8f9fa;
  padding: 0rem .5rem;
  color: #323232;
  font-size: 1rem;
}
.page-item button.page-link:hover {
  background-color: #f8f9fa;
}
.d-sm-none .pagination {
  display: none;
}
.d-sm-flex .pagination {
  display: flex;
  justify-content: flex-start;
}
.d-sm-flex .page-item .page-link {
  font-size: 1rem;
}
.small.text-muted {
  font-size: 0.875rem;
  color: var(--theme-black) !important;
}
.d-sm-flex .pagination-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}
.d-sm-flex .pagination-summary p {
  margin: 0;
  font-size: 0.875rem;
  color: #6c757d;
}
.d-none.d-sm-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* End Pagination style */

.category-list-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-list {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Cache la scrollbar */
  -ms-overflow-style: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.scroll-left, .scroll-right {
  font-size: 24px;
  cursor: pointer;
  display: none; /* Cachées par défaut */
  transition: opacity 0.3s;
}

.content-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section {
  background: var(--theme-white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.page-header {
  margin-bottom: 20px;
}

.page-title {
  color: var(--theme-text);
  font-size: 24px;
  font-weight: 600;
}

.page-image {
  margin-bottom: 20px;
}

.page-image img {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  object-fit: cover;
}

.page-content {
  color: var(--theme-text);
  line-height: 1.8;
  font-size: 16px;
}

.page-content p {
  margin-bottom: 1.2em;
}

.page-content ul, .page-content ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}

.page-content h2, .page-content h3 {
  margin: 1.5em 0 0.8em;
}

.contact-info {
  padding: 10px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background-color: var(--theme-hover);
}

.contact-item i {
  font-size: 24px;
  color: var(--theme-primary);
}

.contact-details {
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--theme-text-light);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  color: var(--black-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media screen and (max-width: 768px) {
  .compte-div{
    display: block;
  }
  .compte-div .compte{
    flex-direction: column;
    align-items: baseline;
  }
  .my-navbar{
    overflow: scroll;
  }
  :where(.my-navbar, .sidebar) .nav-section{
    gap: .3rem;
  }
  .show-page .other-titre{
    margin-top: 20px;
    padding-top: 10px;
    border-top: 15px solid #feeed4;
  }
  .content-container {
    padding: 0px !important;
  }
  .page-image img {
    height: 250px;
  }
}