/* ===== SIDEBAR : bloc filtre collant ===== */
.sidebar {

  border: 1px solid #e3e5e7;
  top: 110px;         /* 24 px (top-bar) + 60 px (header) + 26 px marge */
  align-self: flex-start; /* évite de s’étirer verticalement */
}

.sidebar {
  flex: 1 1 280px;
  background: #fff;
  padding: 22px 22px 18px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(40,68,110,0.11);
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
}
.sidebar label { font-weight: 600; color: #406882; margin-bottom: 5px; }
.sidebar input, .sidebar select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid #e0e2e8;
  font-size: 1em;
  margin-bottom: 13px;
  background: #f7f9fc;
}
.sidebar button {
  width: 100%;
  padding: 9px 0;
  background: #406882;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s;
}
.sidebar button:hover { background: #2c4f68; }
.keywords-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  min-height: 30px;
}
.keyword-tag {
  background: #e7ecf3;
  color: #406882;
  font-size: 0.96em;
  padding: 5px 13px 5px 11px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  position: relative;
}
.keyword-tag .remove-keyword {
  margin-left: 7px;
  cursor: pointer;
  font-size: 1em;
  color: #888;
  font-weight: 700;
  border: none;
  background: none;
  line-height: 1;
}
.keyword-tag .remove-keyword:hover {
  color: #d00;
}
.sidebar .select-keyword-dropdown {
  margin-bottom: 15px;
}
/* ===== GRILLES & CARDS ===== */
h2.section-title {
  margin: 35px 0 15px;
  font-size: 20px;
  color: #305c7c;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e3e5e7;
  transition: transform .25s;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}

.card h4 {
  font-size: 16px;
  color: #1f2d3d;
  margin-bottom: 4px;
  font-weight: 600;
}

.card p {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 6px 14px;
  background: #305c7c;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 4px;
}

.btn:hover {
  background: #1e425b;
}
