/**
 * App Fichiers — AIR-ELEC V2
 * Copie macOS Finder (desktop) + iOS Files (mobile)
 * Palette Air-Elec : vert (#5a9e35)
 */

/* ─── Layout ─── */
.fichiers-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  --fnd-sidebar: #f3f3f3;
  --fnd-toolbar: #f6f6f6;
  --fnd-selected: rgba(90,158,53,0.12);
  --fnd-selected-text: #5a9e35;
  --fnd-preview-bg: #fafafa;
  --fnd-border: #d4d4d4;
  --fnd-icon-folder: #5a9e35;
  --fnd-icon-pdf: #ff3b30;
  --fnd-icon-image: #007aff;
  --fnd-icon-doc: #5856d6;
  --fnd-icon-text: #8e8e93;
}

/* ─── macOS Toolbar ─── */
.fichiers-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--fnd-toolbar);
  border-bottom: 0.5px solid var(--gray-200);
  flex-shrink: 0;
  min-height: 36px;
}
.fichiers-tb-left {
  display: flex;
  align-items: center;
  gap: 2px;
}
.fichiers-nav-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.12s;
}
.fichiers-nav-btn:hover {
  background: rgba(0,0,0,0.06);
  color: var(--gray-700);
}
.fichiers-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.fichiers-nav-btn:disabled:hover {
  background: transparent;
}
.fichiers-tb-divider {
  width: 0.5px;
  height: 20px;
  background: var(--gray-300);
  margin: 0 6px;
}
.fichiers-view-switcher {
  display: flex;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 5px;
  overflow: hidden;
}
.fichiers-view-btn {
  width: 24px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all 0.1s;
  border-right: 0.5px solid rgba(0,0,0,0.05);
}
.fichiers-view-btn:last-child { border-right: none; }
.fichiers-view-btn:hover { background: rgba(0,0,0,0.04); }
.fichiers-view-btn.active {
  background: #fff;
  color: var(--gray-800);
  box-shadow: 0 0.5px 1px rgba(0,0,0,0.08);
}
.fichiers-tb-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fichiers-tb-search {
  position: relative;
  max-width: 220px;
  width: 100%;
}
.fichiers-tb-search-icon {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  color: var(--gray-400);
  pointer-events: none;
}
.fichiers-tb-search-input {
  width: 100%;
  padding: 3px 6px 3px 24px;
  background: rgba(0,0,0,0.04);
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  font-size: 12px;
  outline: none;
  font-family: var(--font-sans);
  color: var(--gray-800);
  transition: all 0.15s;
  box-sizing: border-box;
}
.fichiers-tb-search-input:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(90,158,53,0.15);
}
.fichiers-tb-search-input::placeholder {
  color: var(--gray-400);
}
.fichiers-tb-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fichiers-tb-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 0.5px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all 0.12s;
}
.fichiers-tb-btn:hover {
  background: rgba(0,0,0,0.06);
  color: var(--gray-700);
  border-color: rgba(0,0,0,0.06);
}

/* ─── Body: sidebar + content ─── */
.fichiers-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ─── Sidebar (macOS left panel) ─── */
.fichiers-sidebar {
  width: 160px;
  min-width: 160px;
  background: var(--fnd-sidebar);
  border-right: 0.5px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 6px 0;
  user-select: none;
}
.fichiers-sidebar::-webkit-scrollbar { width: 4px; }
.fichiers-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.fichiers-sb-section {
  padding: 0 6px;
  margin-bottom: 4px;
}
.fichiers-sb-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 4px 8px 2px;
}
.fichiers-sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.1s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fichiers-sb-item:hover {
  background: rgba(0,0,0,0.05);
}
.fichiers-sb-item.active {
  background: var(--fnd-selected);
  color: var(--fnd-selected-text);
  font-weight: 500;
}
.fichiers-sb-item-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gray-400);
}
.fichiers-sb-item.active .fichiers-sb-item-icon {
  color: var(--fnd-selected-text);
}

/* Tag dots */
.fichiers-sb-tag {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fichiers-sb-tag--red { background: #ff3b30; }
.fichiers-sb-tag--orange { background: #ff9500; }
.fichiers-sb-tag--yellow { background: #ffcc00; }
.fichiers-sb-tag--green { background: #34c759; }
.fichiers-sb-tag--blue { background: #007aff; }
.fichiers-sb-tag--purple { background: #af52de; }
.fichiers-sb-tag--gray { background: #8e8e93; }

/* ─── Column Browser ─── */
.fichiers-columns {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #fff;
}
.fichiers-col {
  width: 200px;
  min-width: 160px;
  max-width: 280px;
  border-right: 0.5px solid var(--gray-200);
  overflow-y: auto;
  flex-shrink: 0;
  background: #fff;
}
.fichiers-col:last-child {
  border-right: none;
}
.fichiers-col::-webkit-scrollbar { width: 5px; }
.fichiers-col::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 2.5px;
}
.fichiers-col::-webkit-scrollbar-track {
  background: transparent;
}

.fichiers-col-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.08s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 26px;
}
.fichiers-col-item:hover {
  background: rgba(0,0,0,0.04);
}
.fichiers-col-item.active {
  background: var(--fnd-selected);
  color: var(--fnd-selected-text);
}
.fichiers-col-item.active .fichiers-col-item-icon {
  color: var(--fnd-selected-text);
}
.fichiers-col-item.active .fichiers-col-item-name {
  font-weight: 500;
}
.fichiers-col-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gray-400);
}
.fichiers-col-item-icon--folder { color: var(--fnd-icon-folder); }
.fichiers-col-item-icon--pdf { color: var(--fnd-icon-pdf); }
.fichiers-col-item-icon--image { color: var(--fnd-icon-image); }
.fichiers-col-item-icon--doc { color: var(--fnd-icon-doc); }
.fichiers-col-item-icon--text { color: var(--fnd-icon-text); }
.fichiers-col-item-icon--spreadsheet { color: var(--green); }

.fichiers-col-item-info {
  flex: 1;
  min-width: 0;
}
.fichiers-col-item-name {
  font-size: 12px;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fichiers-col-item-date {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 1px;
}
.fichiers-col-item-size {
  font-size: 10px;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-left: auto;
}
.fichiers-col-item-arrow {
  width: 12px;
  height: 12px;
  color: var(--gray-300);
  flex-shrink: 0;
}
.fichiers-col-item.active .fichiers-col-item-arrow {
  color: var(--fnd-selected-text);
}

/* ─── Preview panel (macOS) ─── */
.fichiers-preview {
  width: 240px;
  min-width: 240px;
  background: var(--fnd-preview-bg);
  border-left: 0.5px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}
.fichiers-preview-empty {
  text-align: center;
  color: var(--gray-400);
}
.fichiers-preview-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--gray-300);
  margin-bottom: 8px;
}
.fichiers-preview-empty-text {
  font-size: 13px;
  font-weight: 500;
}
.fichiers-preview-empty-sub {
  font-size: 11px;
  margin-top: 4px;
}

.fichiers-preview-content { display: none; width: 100%; }
.fichiers-preview-content.visible { display: block; }

.fichiers-preview-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.fichiers-preview-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fichiers-preview-icon--folder { background: rgba(90,158,53,0.12); color: var(--fnd-icon-folder); }
.fichiers-preview-icon--pdf { background: rgba(255,59,48,0.12); color: var(--fnd-icon-pdf); }
.fichiers-preview-icon--image { background: rgba(0,122,255,0.12); color: var(--fnd-icon-image); }
.fichiers-preview-icon--doc { background: rgba(88,86,214,0.12); color: var(--fnd-icon-doc); }
.fichiers-preview-icon--text { background: rgba(142,142,147,0.12); color: var(--fnd-icon-text); }

.fichiers-preview-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  word-break: break-all;
  margin-bottom: 16px;
}
.fichiers-preview-meta {
  width: 100%;
  border-top: 0.5px solid var(--gray-200);
  padding-top: 12px;
}
.fichiers-preview-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 11px;
}
.fichiers-preview-meta-label {
  color: var(--gray-500);
  font-weight: 500;
}
.fichiers-preview-meta-value {
  color: var(--gray-800);
  text-align: right;
}

/* ─── Status bar ─── */
.fichiers-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px;
  background: var(--fnd-toolbar);
  border-top: 0.5px solid var(--gray-200);
  flex-shrink: 0;
  min-height: 22px;
  font-size: 11px;
  color: var(--gray-500);
}

/* ─── iOS / Mobile Styles ─── */
@media (max-width: 767px) {
  .fichiers-app {
    background: #fff;
  }

  /* Hide macOS toolbar, body, sidebar, columns, preview, status bar */
  .fichiers-toolbar { display: none; }
  .fichiers-body { display: none; }
  .fichiers-sidebar { display: none; }
  .fichiers-columns { display: none; }
  .fichiers-preview { display: none; }
  .fichiers-statusbar { display: none; }

  /* ─── iOS Navigation ─── */
  .fichiers-ios-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    min-height: 44px;
    border-bottom: 0.5px solid var(--gray-200);
    background: #fff;
    flex-shrink: 0;
  }
  .fichiers-ios-nav-title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.3px;
  }
  .fichiers-ios-nav-right {
    font-size: 16px;
    font-weight: 400;
    color: var(--blue);
    cursor: pointer;
    min-width: 50px;
    text-align: right;
  }
  .fichiers-ios-nav-left {
    font-size: 0;
    font-weight: 400;
    color: var(--blue);
    cursor: pointer;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fichiers-ios-nav-left svg { width: 20px !important; height: 20px !important; }

  /* ─── iOS Browse (page d'accueil) ─── */
  .fichiers-ios-browse {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    display: block;
    background: #f2f2f7;
  }
  .fichiers-ios-browse.hidden { display: none; }

  .fichiers-ios-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
    margin-top: 20px;
  }
  .fichiers-ios-section-title:first-child { margin-top: 0; }

  .fichiers-ios-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .fichiers-ios-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: #fff;
    border: 0.5px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.12s;
    -webkit-tap-highlight-color: transparent;
  }
  .fichiers-ios-location:active {
    background: var(--gray-50);
  }
  .fichiers-ios-location-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .fichiers-ios-location-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    text-align: center;
    margin-top: 2px;
  }
  .fichiers-ios-location-sub {
    font-size: 11px;
    color: var(--gray-400);
    text-align: center;
    margin-top: -2px;
  }

  .fichiers-ios-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 0.5px solid var(--gray-100);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: #fff;
  }
  .fichiers-ios-file:active {
    background: var(--gray-50);
  }
  .fichiers-ios-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 16px;
  }
  .fichiers-ios-file-icon--folder { background: linear-gradient(135deg,#5a9e35,#6dbe42); }
  .fichiers-ios-file-icon--pdf { background: linear-gradient(135deg,#ff3b30,#ff6b62); }
  .fichiers-ios-file-icon--image { background: linear-gradient(135deg,#007aff,#4da6ff); }
  .fichiers-ios-file-icon--spreadsheet { background: linear-gradient(135deg,#34c759,#60d97e); }
  .fichiers-ios-file-icon--doc { background: linear-gradient(135deg,#5856d6,#7d7aff); }
  .fichiers-ios-file-icon--text { background: linear-gradient(135deg,#8e8e93,#b0b0b5); }

  .fichiers-ios-file-info {
    flex: 1;
    min-width: 0;
  }
  .fichiers-ios-file-name {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fichiers-ios-file-sub {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
  }
  .fichiers-ios-file-chevron {
    width: 14px;
    height: 14px;
    color: var(--gray-300);
    flex-shrink: 0;
  }

  /* ─── iOS Drill-down detail (push navigation) ─── */
  .fichiers-ios-detail {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }
  .fichiers-ios-detail.active {
    display: flex;
  }
  .fichiers-ios-detail-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
  }
  .fichiers-ios-detail-list .fichiers-ios-file {
    padding: 11px 16px;
    min-height: 52px;
  }
  .fichiers-ios-detail-list .fichiers-ios-file:last-child {
    border-bottom: 0.5px solid var(--gray-100);
  }

  /* iOS file row with right-aligned info (taille/date) */
  .fichiers-ios-file-row-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 12px;
  }
  .fichiers-ios-file-size {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
    white-space: nowrap;
  }
  .fichiers-ios-file-date {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-400);
    margin-top: 2px;
    white-space: nowrap;
  }

  /* ─── iOS View Toggle (grid/list) ─── */
  .fichiers-ios-view-toggle {
    display: flex;
    gap: 0;
    background: rgba(118,118,128,0.12);
    border-radius: 7px;
    padding: 2px;
    margin-left: auto;
  }
  .fichiers-ios-view-toggle-btn {
    width: 30px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .fichiers-ios-view-toggle-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  }
  .fichiers-ios-view-toggle-btn i {
    width: 15px;
    height: 15px;
  }

  /* ─── iOS Grid View (fichiers/dossiers en grille) ─── */
  .fichiers-ios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 4px;
    background: #f2f2f7;
  }
  .fichiers-ios-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    min-width: 0;
  }
  .fichiers-ios-grid-item:active {
    background: rgba(0,0,0,0.04);
  }
  .fichiers-ios-grid-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    flex-shrink: 0;
    transition: transform 0.15s;
  }
  .fichiers-ios-grid-item:active .fichiers-ios-grid-icon {
    transform: scale(0.92);
  }
  .fichiers-ios-grid-icon--folder {
    background: linear-gradient(135deg,#5a9e35,#6dbe42);
  }
  .fichiers-ios-grid-icon--pdf {
    background: linear-gradient(135deg,#ff3b30,#ff6b62);
  }
  .fichiers-ios-grid-icon--image {
    background: linear-gradient(135deg,#007aff,#4da6ff);
  }
  .fichiers-ios-grid-icon--spreadsheet {
    background: linear-gradient(135deg,#34c759,#60d97e);
  }
  .fichiers-ios-grid-icon--doc {
    background: linear-gradient(135deg,#5856d6,#7d7aff);
  }
  .fichiers-ios-grid-icon--text {
    background: linear-gradient(135deg,#8e8e93,#b0b0b5);
  }

  .fichiers-ios-grid-label {
    font-size: 11px;
    font-weight: 500;
    color: #000;
    text-align: center;
    word-break: break-all;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .fichiers-ios-grid-sub {
    font-size: 10px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 1px;
  }

  /* ─── iOS Detail Header (path + view toggle) ─── */
  .fichiers-ios-detail-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    background: #fff;
    border-bottom: 0.5px solid var(--gray-200);
    flex-shrink: 0;
    min-height: 40px;
  }
  .fichiers-ios-detail-path {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fichiers-ios-detail-path span {
    color: var(--gray-400);
    margin: 0 2px;
  }

  /* ─── iOS Bottom Bar ─── */
  .fichiers-ios-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    min-height: 32px;
    background: #fff;
    border-top: 0.5px solid var(--gray-200);
    flex-shrink: 0;
    font-size: 12px;
    color: var(--gray-500);
  }
  .fichiers-ios-bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .fichiers-ios-bottom-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--blue);
    font-weight: 500;
    cursor: pointer;
  }

  /* ─── iOS Browse drill-down items polish ─── */
  .fichiers-ios-browse .fichiers-ios-file {
    border-bottom: 0.5px solid var(--gray-100);
  }
  .fichiers-ios-browse .fichiers-ios-file:last-child {
    border-bottom: none;
  }

  /* ─── iOS Empty State ─── */
  .fichiers-ios-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray-400);
  }
  .fichiers-ios-empty-icon {
    width: 48px;
    height: 48px;
    color: var(--gray-300);
    margin-bottom: 8px;
  }
  .fichiers-ios-empty-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-500);
  }
  .fichiers-ios-empty-sub {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 4px;
  }
}

/* ─── Responsive: tablet & desktop (hide iOS) ─── */
@media (min-width: 768px) {
  .fichiers-ios-nav { display: none; }
  .fichiers-ios-browse { display: none; }
  .fichiers-ios-detail { display: none; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .fichiers-sidebar {
    width: 130px;
    min-width: 130px;
  }
  .fichiers-col {
    width: 160px;
    min-width: 120px;
  }
  .fichiers-preview {
    width: 180px;
    min-width: 180px;
  }
}
