/* ===== SIDEBAR ===== */
.sidebar{
  width:260px;
  background:#1a1a1a;
  padding:25px 18px;
  border-right:1px solid #333;
  flex-shrink:0;
  overflow-y:auto;
  position:fixed;
  top:0;left:0;bottom:0;
}
.sidebar h3{
  font-size:13px;
  color:#888;
  margin:20px 0 8px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.sidebar h3:first-child{margin-top:0}
.sidebar input[type="text"],
.sidebar select{
  width:100%;
  padding:9px 11px;
  background:#2a2a2a;
  border:1px solid #444;
  color:#eee;
  border-radius:5px;
  font-size:14px;
  margin-bottom:6px;
}
.sidebar input[type="text"]:focus,
.sidebar select:focus{outline:none;border-color:#777}
.sidebar button{
  width:100%;
  margin-top:8px;
  padding:10px;
  background:#333;
  border:1px solid #555;
  color:#fff;
  border-radius:5px;
  cursor:pointer;
  font-size:14px;
}
.sidebar button:hover{background:#444}

/* ===== RIGHTBAR ===== */
.rightbar{
  width:180px;
  background:#1a1a1a;
  border-left:1px solid #333;
  flex-shrink:0;
  position:fixed;
  top:0;right:0;bottom:0;
  padding:25px 15px;
  overflow-y:auto;
}
.btn-home{
  width:100%;
  padding:12px;
  background:#2a2a2a;
  border:1px solid #555;
  color:#eee;
  border-radius:5px;
  cursor:pointer;
  font-size:14px;
  margin-bottom:20px;
}
.btn-home:hover{background:#3a3a3a}

/* ===== MAIN ===== */
.main{
  flex: 1;
  margin-left: 260px;
  margin-right: 180px;
  padding: 20px 10px 30px 15px;   /* moins de padding à gauche */
  overflow-x: hidden;             /* coupe le scroll horizontal */
}

/* ===== GALLERY ===== */
.gallery-wrapper{
  max-width: none;
  margin: 0;
  padding-left: 0;
}
.pages{min-height:280px}
.page{
  display:flex;
  gap:8px;
  justify-content:flex-start;
  flex-wrap:nowrap;
}
.pagination{
  margin-top:18px;
  display:flex;
  gap:10px;
  justify-content:center;
}
.pagination button{
  background:#222;
  border:1px solid #555;
  color:#fff;
  padding:8px 14px;
  cursor:pointer;
  border-radius:4px;
  font-size:16px;
}
.pagination button.active,
.pagination button:hover{background:#444;border-color:#888}

/* Vues */
.view{display:none}
.view.active{display:block}

.btn-nav{
  width:100%;
  margin-top:8px;
  padding:10px;
  background:#2a2a2a;
  border:1px solid #555;
  color:#eee;
  border-radius:5px;
  cursor:pointer;
  font-size:13px;
}
.btn-nav:hover:not(:disabled){
  background:#3a3a3a;
  border-color:#888;
}
.btn-nav:disabled,
.btn-nav.current{
  opacity:0.4;
  cursor:not-allowed;
  background:#222;
}

/* ===== FILTRES MULTI (cases à cocher) ===== */
.filter-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 8px;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.filter-heading .filter-toggle{
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.filter-heading .filter-toggle:hover{
  border-color: #888;
  color: #fff;
}
.filter-heading.has-active{
  color: #f0d78c;
}
.filter-heading.has-active .filter-toggle{
  border-color: #c9a227;
  color: #f0d78c;
  box-shadow: 0 0 0 1px rgba(201,162,39,0.35);
}

.filter-body.collapsed{
  display: none;
}

.filter-block{
  margin-bottom: 14px;
}
.filter-title{
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.filter-group{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}
.filter-group label:hover{
  color: #fff;
}
.filter-group input[type="checkbox"]{
  width: 14px;
  height: 14px;
  accent-color: #c9a227;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-subs{
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 4px 18px;
  padding-left: 8px;
  border-left: 1px solid #333;
}
.filter-subs[hidden]{
  display: none !important;
}
.filter-subs label{
  font-size: 12px;
  color: #aaa;
}