.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}
.home-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;

  overflow: hidden;
  background: #000;
  line-height: 0;
}
.home-grid li:first-child {
  --cols: 2;
  --rows: 2;
}
.home-grid li:nth-child(5) {
  --cols: 2;
}
.home-grid li:nth-child(6) {
  --rows: 2;
}
.home-grid li:nth-child(7) {
  --cols: 2;
}
.home-grid a {
  display: block;
  height: 10rem;
}
.home-grid img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}
.home-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  color: #fff;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  line-height: 1;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
}

@media screen and (min-width: 45em) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-grid li {
    grid-column-start: span var(--cols);
    grid-row-start: span var(--rows);
  }
  .home-grid a {
    padding-bottom: 52.65%;
  }
}

/* Fix for main content area */
.main {
  padding: 0 !important;
  max-width: none !important;
}

/* Styling for the nuancier interface on the home page */
/* 
.nuancier {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: var(--font-family-sans);
}

.nuancier__header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.nuancier__title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.nuancier__tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-top: 1rem;
}

.nuancier__tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 1.25rem;
}

.nuancier__tab--active {
  border-bottom: 2px solid #000;
  font-weight: bold;
}

.nuancier__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: normal;
}

.nuancier__content {
  position: relative;
}

.nuancier__tab-content {
  display: none;
}

.nuancier__tab-content--active {
  display: block;
}

.notice-form {
  width: 100%;
}

.notice-form__section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notice-form__heading {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.notice-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.notice-form__field {
  margin-bottom: 1.25rem;
}

.notice-form__field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.notice-form__input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.notice-form__input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.notice-form__textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 100px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.notice-form__textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.notice-form__reference-files {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.notice-form__reference-add {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notice-form__reference-add:hover {
  background-color: #f0f0f0;
}

.notice-form__add-button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #777;
  cursor: pointer;
}

.notice-form__furniture-button {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notice-form__furniture-button:hover {
  background-color: #333;
}

.notice-form__furniture-button::after {
  content: "+";
  margin-left: 0.75rem;
  font-size: 1.4rem;
  line-height: 1;
}

.notice-form__submit {
  margin-top: 2rem;
}

.notice-form__submit-button {
  padding: 0.85rem 1.5rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.notice-form__submit-button:hover {
  background-color: #0069d9;
}


.furniture-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.furniture-modal__content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.furniture-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.furniture-modal__title {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.furniture-modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.furniture-modal__close:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.05);
}

.furniture-modal__body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.furniture-modal__item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.furniture-modal__item:hover {
  background-color: #f5f5f5;
}

.furniture-modal__checkbox {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  accent-color: #007bff;
}

.furniture-modal__label {
  font-size: 1rem;
  cursor: pointer;
}

.furniture-modal__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.furniture-modal__button {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.furniture-modal__button--confirm {
  background-color: #007bff;
  color: #fff;
}

.furniture-modal__button--confirm:hover {
  background-color: #0069d9;
}

.selected-furniture {
  margin-top: 1.5rem;
}

.selected-furniture__item {
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.selected-furniture__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
}

.selected-furniture__name {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.selected-furniture__toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.selected-furniture__toggle:hover {
  background-color: #e0e0e0;
}

.selected-furniture__characteristics {
  padding: 1.25rem;
}

.selected-furniture__characteristic {
  margin-bottom: 1.5rem;
}

.selected-furniture__characteristic:last-child {
  margin-bottom: 0;
}

.selected-furniture__characteristic-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.selected-furniture__options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.selected-furniture__options label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.selected-furniture__options label:hover {
  background-color: #f0f0f0;
}

.selected-furniture__options input {
  margin-right: 0.75rem;
  width: 16px;
  height: 16px;
  accent-color: #007bff;
}

.selected-furniture__empty {
  padding: 1.5rem;
  color: #777;
  font-style: italic;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.notices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.notice-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.notice-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notice-card__header {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: #f5f5f5;
  font-size: 0.85rem;
}

.notice-card__name {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.notice-card__tags {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.notice-card__tag {
  background-color: #f0f0f0;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.notice-card__actions {
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.notice-card__action {
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  flex: 1;
  transition: background-color 0.2s;
}

.notice-card__action--view {
  background-color: #6c757d;
  color: #fff;
  text-decoration: none;
}

.notice-card__action--view:hover {
  background-color: #5a6268;
}

.notice-card__action--pdf {
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
}

.notice-card__action--pdf:hover {
  background-color: #0069d9;
}

.notice-card__action--delete {
  background-color: #dc3545;
  color: #fff;
  border: none;
}

.notice-card__action--delete:hover {
  background-color: #c82333;
}

.notices__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #777;
  font-style: italic;
}

.nuancier__message {
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  font-weight: 500;
}

.nuancier__message--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.nuancier__message--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
} */
