:root{
    --primary-color-aft: #DA002E;
    --secondary-color-aft: #DA002E;
}
.title-files-shared{
  display: flex;
  align-items: center;
  margin-bottom: clamp(20px, 2.188vw, 40px);
}
.title-files-shared h1.title-files-shared-h1{
  color: #000000;
  font-weight: 600;
  text-align: center;
  margin: 20px 0;
  font-size: clamp(25px, 2.188vw, 42px) !important;
  margin: auto;
}

.cursor-pointer{
  cursor: pointer;
}
.button-delete-file {
  background: transparent !important;
  padding: 0 !important;
  padding-top: 3px !important;
}
.button-delete-file:hover{
  background: transparent !important;
  transform: translateY(-2px);
}
.file-box{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: column;
}
.user-file-card::before, .file-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: black #f5f5f5 #db002e61 #000000e0;
  z-index: 1;
}
h5#exampleModalLiveLabel{
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 700;
}
.user-file-card{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.user-file-card .delf-prim-btn-download{
  margin-top: 0;
}
.file-box p{
  max-width: 110px;
}
.file-box p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px !important;
  font-weight: 600;
  color: #000 !important;
  line-height: 1.3;
  z-index: 3;
  position: relative;
}
.user-file-card p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px !important;
  font-weight: 600;
  color: #000 !important;
  line-height: 1.3;
  z-index: 3;
  position: relative;
}
.container-form-add-file{
  position: fixed;
  height: 100vh;
  width: 100vw;
  background: #0b0b0b80;
  left: 0;
  top: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  padding-right: 32px;
}
._file {
  width: 25px;
  height: 35px;
  background: #DA002E;
  color: white;
  display: flex;
  justify-content: center;
  border-radius: 3px;
  position: relative;
  margin: auto;
}
._file::before {
  content: "";
  display: block;
  position: absolute;
  border-bottom: 4px solid #f7d9e9;
  right: 0;
  border-left: 4px solid #f7d9e9;
  border-top: 4px solid white;
  border-right: 4px solid white;
}
.form-add-files{
  background: #fff;
  border-radius: 5px;
  max-width: 800px;
  width: 100%;
}
.user-files-cards {
  display: flex;
  gap: 15px;
  margin: 18px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.title-files-sha#DA002E * {
  color: black !important;
}
.box-action{
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-box{
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px 15px 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  aspect-ratio: 1;
  max-width: 135px;
  min-height: 160px;
  cursor: pointer;
}
.user-file-card{
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px 15px 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  aspect-ratio: 1;
  max-width: 180px;
  min-height: 225px;
  cursor: pointer;
}
.user-file-card:hover {
  border-color: #db002e;
  box-shadow: 0 6px 20px rgba(219, 0, 46, 0.2);
  transform: translateY(-6px) scale(1.02);
}
/* Responsive */
@media (max-width: 1024px) {
  .user-file-card, .file-box {
    flex: 0 0 calc(33.33% - 8px);
    max-width: 175px;
  }
}
.add-ressources.aft_btn_s_plus.cursor-pointer{
  padding: clamp(8px ,0.833vw,16px) clamp(5px , 0.833vw, 16px);
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .title-files-shared{
    flex-direction: column;
  }
  .title-files-shared h1.title-files-shared-h1{
    margin-right:auto;
    margin-left:auto;
  }
  .user-file-card, .file-box {
    flex: 0 0 calc(50% - 8px);
    padding: 18px 12px 15px;
    max-width: 165px;
  }
  .user-file-card::before, .file-box::before {
    border-width: 0 25px 25px 0;
  }
  .user-file-card::after, .file-box::after {
    border-width: 0 23px 23px 0;
  }
  .filter-head{
    max-width: 175px;
    margin: auto;
  }
  .sidebar-logout-btn{
    justify-content: center;
  }
}
@media (max-width: 480px) {

  .user-file-card, .file-box {
    flex: 0 0 calc(50% - 10px);
    padding: 15px 10px 12px;
    max-width: 165px;
  }
  .user-file-card::before, .file-box ::before{
    border-width: 0 22px 22px 0;
  }
  .user-file-card::after, .file-box ::after{
    border-width: 0 20px 20px 0;
  }
}
.container-form-add-file{
  display : none; 
}
.file-box img{
  max-width: 70px !important;
  max-height: 28px;
  border-radius: 5px !important;
  margin: auto;
}
.user-file-card img{
  max-width: 100%;
  max-height: 50px;
  border-radius: 5px !important;
  margin: auto;
}
.user-file-card .file-extension, .file-box .file-extension{
  font-size: 8px !important;
  padding: 0;
  margin: 0;
  margin-top: 15px;
  color: #fff !important;
}


table {
  width: 100%;
  border-collapse: collapse; /* Merges borders into a single line */
  margin: 25px 0;
  font-size: 0.9em;
  min-width: 400px;
}

caption {
    padding: 10px;
    font-weight: bold;
}

th, td {
  padding: 12px 15px; /* Adds space between content and borders */
  text-align: left; /* Aligns text to the left */
  border-bottom: 1px solid #ddd; /* Adds a horizontal divider */
}

thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: left;
}

tbody tr:nth-child(even) {
  background-color: #f2f2f2; /* Zebra-striping: alternating row color */
}

tbody tr:hover {
  background-color: #ddd; /* Highlights row on hover */
  cursor: pointer;
}

.modal-footer .button-send-file-container .button-send-file {
  padding: clamp(8px ,0.833vw,16px) clamp(5px , 0.833vw, 16px);
  background-color: var(--primary-color-aft);
  color: #fff;
}

.button-send-file-container{
    display: flex;
    justify-content: right;
}
.titre {
  width: 100%;
  height: 40px;
  margin: 10px 0px;
}
.drop-area p {
  margin: 0;
}
.drop-area {
  border: 2px dashed #0000004D;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s;
  font-size: 17px;
}
.drop-area p, #file_input_label{
  font-size: 14px;
  color: #000;
  cursor: pointer;
}

.drop-area.dragover {
    border-color: var(--primary-color-aft);
    background: #da002f0a;
}
/* .preview img {
    margin-top: 15px;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
} */

#file_input_label {
  border: 1px solid var(--primary-color-aft);
  padding: 5px 17px;
  display: inline-block;
  color: #DA002E;
}

/* Styles pour la prévisualisation améliorée */
.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}



.file-extension-icon {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    font-weight: bold;
    color: #555;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.file-name {
    display: block;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-file {
  font-size: 18px;
  padding: 8px 12px 8px 12px !important;
  line-height: normal;
}

.form-add-files .modal-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}
.form-add-files .modal-header .button-close-file{
  background: transparent;
  padding: 0;
  opacity: .5;
}
.form-add-files .modal-header .button-close-file:hover{
  opacity: .75;
}
.form-add-files .modal-header .button-close-file span{
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
}
.form-add-files .modal-body{
  padding: 1rem;
}
.form-add-files .modal-footer{
  display: flex;
  align-items: flex-end;
  justify-content: end;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
}
.form-add-files .modal-body .titre-modal{
  color: #000000 !important;
  font-size: 14px;
  font-weight: 700;
}
.modal-body .input-style{
  border: 1px solid #E4E6EF;
  border-radius: 5px;
  margin-bottom: 12px;
}
.swal2-title{
  color: #000 !important;
  font-size:20px !important;
}

/* Styles pour les filtres */
.container-filter {
  display: flex;
  gap: 15px;
  margin-bottom: clamp(20px,2.188vw,42px) !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 950px;
  margin: auto;
}
.page-id-3282 .e-con-inner, .page-id-3297 .e-con-inner{
  max-width: 1400px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}
.filter-search-wrapper {
  flex: 1;
  max-width: 250px;
  width: 100%;
}

.filter-search-input {
  width: 100%;
  padding: clamp(8px, 0.833vw, 12px) clamp(12px, 1.042vw, 16px);
  border: 1px solid #E4E6EF;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--primary-color-aft);
}

.filter-sort-wrapper {
  min-width: 180px;
  display: flex;
  align-items: center;
}
.filter-sort-wrapper span{
  min-width: 80px
}
.filter-head{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-sort-select,
.filter-type-select {
  width: 100%;
  padding: 0;
  border:0;
  border-radius: 5px;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-sort-select:focus,
.filter-type-select:focus {
  outline: none;
  border-color: var(--primary-color-aft);
}

.filter-type-wrapper {
  min-width: 180px;
  display: flex;
  align-items: center;
}

.filter-type-wrapper span {
  min-width: 50px;
}

/* Message aucun résultat */
.no-results-message {
  text-align: center;
  padding: clamp(40px, 4.167vw, 80px) 20px;
  max-width: 960px;
  margin: auto;
}

.no-results-message p {
  font-size: clamp(16px, 1.458vw, 28px);
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* Sidebar utilisateur */
.sidebar-toggle-btn {

  z-index: 1000;
  background: var(--primary-color-aft);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  background: #b80026;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.user-container .elementor-widget-shortcode,.user-container .elementor-shortcode{
  height: 100%;
}

.user-sidebar {
  width: 100%;
  max-width: 250px;
  transition: right 0.3s ease;
  position: sticky;
  top: 105px;
  margin-bottom: 56px;
}
.user-container{
  max-width:205px;
  width:100%;
}
/* .user-sidebar.active {
  right: 0;
} */

.sidebar-overlay {
  position: fixed;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  cursor: pointer;
  top: 0;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.sidebar-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
}

.sidebar-close-btn:hover {
  color: var(--primary-color-aft);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-user-avatar {
  margin-bottom: 20px;
}

.sidebar-user-avatar img {
  border-radius: 50% !important;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid var(--primary-color-aft);
}

.sidebar-user-details {
  text-align: center;
}

.sidebar-user-name {
  font-size: clamp(16px, 1.875vw, 24px) !important;
  font-weight: 700;
  color: #000 !important;
  margin: 0 0 8px 0;
}

.sidebar-user-role {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
}

.sidebar-actions {
  padding-top: 20px;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--primary-color-aft);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.text-center{
  text-align: center;
}
.sidebar-logout-btn:hover {
  background: transparent;
  color: #000;
}

.sidebar-logout-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .sidebar-toggle-btn {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
  }
  
  .user-sidebar {
    max-width: 100%;
  }
  
  
  .container-filter {
    flex-direction: column;
  }
  
  .filter-search-wrapper,
  .filter-sort-wrapper,
  .filter-type-wrapper {
    width: 100%;
  }
}

.container-login{
  max-width: 550px;
  width: 100%;
  padding: 14px;
  margin: auto;
}
.container-login h3{
  text-align: center;
}
.container-login + p{
  text-align: center;
}
.container-login input{
  margin-bottom: 24px;
  min-height: 54px;
  color: #232323;
  border-radius: 8px !important;
}
.container-login .custom_login_submit{
  width: 100%;
  padding: clamp(14px ,0.833vw,16px) clamp(5px , 0.833vw, 16px) !important;
  border-radius: 0 !important;
}
.container-login .forget-password{
  text-align: right;

}
.container-login .forget-password a{
  font-weight: 500;
  font-size: 16px;
  color: #606060;
}
.container-login .forget-password a:hover{
  color: #606060;
  text-decoration: underline;
}
#toggle-menu-mobile{
  padding: 8px !important;
  display: none;
}
@media(max-width: 767px){
  #toggle-menu-mobile{
    display: block;
  }
  .sidebar-logout-btn{
    font-size: 14px;
  }
  .sidebar-user-avatar img{
    width: 55px;
  }
  .sidebar-content{
    padding: 0;
  }
  .menu-btn{
    display: flex;
    gap: 8px;
    justify-content: space-between;
    max-width: 250px;
    width: 100%;
    margin: auto;
    padding: 0 4px;
  }
  body.no-scroll{
    overflow: hidden;
  }
  .close-aside-user.active{
    display: block !important;
  }
  .filters{
    max-width: 205px;
    margin-left: auto;
    margin-right: auto;
  }
}
span.close-aside-user{
  position: fixed;
  right: 14px;
  top: 61px;
  z-index: 9999;
  display: none;
  background: #db002e;
  padding: 6px 12px;
  font-size: 24px;
  line-height: normal;
  color: #fff;
}

/* Skeleton loading */

.skeleton-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.skeleton-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.skeleton-thumb {
  height: 120px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.skeleton-title {
  height: 14px;
  width: 70%;
  border-radius: 6px;
  margin-bottom: 14px;
}

.skeleton-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-btn {
  height: 32px;
  width: 110px;
  border-radius: 6px;
}

.skeleton-icon {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

/* Animation shimmer */
.skeleton-thumb,
.skeleton-title,
.skeleton-btn,
.skeleton-icon {
  background: linear-gradient(
    90deg,
    #e0e0e0 25%,
    #f0f0f0 37%,
    #e0e0e0 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}


.filters{
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.filters .filter-head{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-option{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.filter-option input[type="radio"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filter-option span{
  position: relative;
  padding-left: 26px;
  line-height: 1.3;
}
.filter-option span::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c9ccd6;
  background: #fff;
  box-sizing: border-box;
}
.filter-option span::after{
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color-aft);
  transition: transform .15s ease-out;
}
.filter-option input[type="radio"]:checked + span{
  color: #000;
}
.filter-option input[type="radio"]:checked + span::before{
  border-color: var(--primary-color-aft);
  background: #fff;
}
.filter-option input[type="radio"]:checked + span::after{
  transform: translateY(-50%) scale(1);
}
.filter-option:hover{
  background: #f5f5f7;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.filter-option:active{
  transform: translateY(1px);
}

/* Filtres par utilisateur : checkboxes */

.filter-user-checkbox-label{
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.filter-user-checkbox-label input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filter-user-checkbox-label span{
  position: relative;
  padding-left: 24px;
}
.filter-user-checkbox-label span::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #c9ccd6;
  background: #fff;
  box-sizing: border-box;
}
.filter-user-checkbox-label span::after{
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary-color-aft);
  transform: translateY(-50%) scale(0);
  transition: transform .15s ease-out;
}
.filter-user-checkbox-label input[type="checkbox"]:checked + span{
  color: #000;
}
.filter-user-checkbox-label input[type="checkbox"]:checked + span::before{
  border-color: var(--primary-color-aft);
  background: #fff;
}
.filter-user-checkbox-label input[type="checkbox"]:checked + span::after{
  transform: translateY(-50%) scale(1);
}
.filter-user-checkbox-label:hover span::before{
  border-color: #a0a4b0;
}
.filter-head-title{
  display: block;
  margin-bottom: 10px;
}
.filter-user-checkboxes{
  padding-left: 24px;
}

@media(min-width :768px){
  .page-id-3282.no-customize-support .elementor-element-48fa9998 .e-con-inner, .page-id-3297.no-customize-support .elementor-element-48fa9998 .e-con-inner{
    justify-content: center;
  }
  .page-id-3282.no-customize-support .elementor-element-52f6d852, .page-id-3297.no-customize-support .elementor-element-52f6d852{
    margin-left: -205px;
    padding: 0;
  }
}