body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Trebuchet MS", sans-serif;
  /*! background:
    radial-gradient(circle at 20% 0%, rgba(253, 197, 42, 0.12), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(242, 119, 138, 0.12), transparent 40%),
    linear-gradient(180deg, #f7f5f0 0%, #ffffff 35%); */
  color: #1e1e1e;
}


.details {
  display: grid;
  gap: 12px;
}
.detail-section {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid #cfcfcf;
  /*! border: 1px solid #efe4d4; */
}
.detail-title {
  border-bottom: 1px solid #C9C9C9;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.detail-body {
  font-size: 15px;
  line-height: 1.6;
  color: #2e2e2e;
}
.detail-section ul {
  list-style-type: disc;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding-left: 18px;
}


header {
  padding: 20px 16px 10px;
  text-align: center;
}
header img {
  max-width: 220px;
}
header h2 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: #2a2a2a;
}
header p {
  margin: 28px auto 0; 
  font-size: 16px;
  color: #4a4a4a;
  max-width: 640px;
}

/* Filtres */
.filters {
  margin: 12px 12px 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  /*! border-radius: 16px; */
  border: 1px solid #000;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.filters legend {
  padding: 0 12px;
  font-weight: 400;
  color: #2a2a2a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
} 
.filters select, 
.filters button {
  padding: 12px 12px;
  font-size: 15px;
  border: none;
  border-radius: 0px;
  background: #f9f9f9;
  /*! box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); */
}
.filters select:nth-of-type(1) {
  background: #fdc52a;
}
.filters select:nth-of-type(2) {
  background: #00bdb8;
}
.filters select:nth-of-type(3) {
  background: #83c378;
}
.filters select:nth-of-type(4) {
  background: #f2778a;
}
.filters-actions {
  grid-column: span 1;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.filters button {
  background: #101010;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

#btnReset {
    box-shadow:none;
  border-radius: 30px;
  background: #ccc;
  color: black;
  padding: 7px 10px;
  font-size: 10px; text-transform: uppercase;
letter-spacing: 1px;

}

#filtersSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 13px;
  color: #4a4a4a;
}
.filters-summary-label {
  font-weight: 600;
  color: #2b2b2b;
}
.filter-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7f3ea;
  border: 1px solid #e5ddcf;
  color: #2b2b2b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.no-results {
  margin: 16px 12px;
  padding: 16px;
  border: 2px dashed #e6dccd;
  border-radius: 14px;
  background: #fff6f0;
}
.no-results button {
  margin-top: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: #101010;
  color: #fff;
  cursor: pointer;
}

#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #101010;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#ideaCta {
  position: fixed;
  left: 18px;
  bottom: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #00bdb8, #83c378);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* Liste */
#list {
  margin-top: 2em;
  margin-bottom: 10em;
}
.item {
  margin: 14px 12px;
  border: 1px solid #999;
  background: #ffffff;
  overflow: hidden;
  box-shadow: none;
}

/* En-tête de carte */
.item h3 {
  margin: 0;
  padding: 14px 16px;
  font-size: 18px;
  background: #efefef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.item h3 span {
  font-size: 16px;
  transition: transform .2s ease;
}

/* Contenu */
.item .content {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.item.open .content {
  padding: 14px 16px 16px;
  max-height: 2000px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 22px 0;
  /*! opacity: 0.5; */
}
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #1b1b1b;
  white-space: nowrap;
}
.tag-theme {
  background: #fdc52a;
}
.tag-priorite {
  background: #00bdb8;
}
.tag-valeur {
  background: #83c378;
}

.tag-categorie {
  background: #f2778a;
}

@media (min-width: 720px) {
  header {
    padding: 24px 16px 12px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters-actions {
    grid-column: span 2;
  }
  .item h3 {
    font-size: 20px;
  }
}
