/* LT Souvent achetés ensemble – L'Intemporel Déco (marine #1f2a36, doré #c9a24a / #b18735 / #7a5a22, beige #efeae1) */

.lt-ens {
  margin: 2.5rem 0 2rem;
  padding: 24px;
  border: 1px solid #ebe5d9;
  border-radius: 16px;
  background: #fff;
}
.lt-ens__titre {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  color: #1f2a36;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: none;
}
.lt-ens__titre::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: #c9a24a;
}

.lt-ens__corps { display: flex; align-items: center; gap: 28px; }
.lt-ens__articles {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Une carte par article */
.lt-ens__article {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  max-width: 210px;
  padding: 10px 10px 12px;
  border: 1px solid #ebe5d9;
  border-radius: 12px;
  background: #fff;
  opacity: .6;
  transition: border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.lt-ens__article.est-coche { opacity: 1; border-color: #c9a24a; box-shadow: 0 10px 22px -18px rgba(11, 29, 58, .5); }
.lt-ens__article:not(:has(.lt-ens__case)) { opacity: 1; } /* article à options : pas de case */
.lt-ens__article--courant { background: #faf8f4; }

.lt-ens__photo { display: block; overflow: hidden; border-radius: 8px; background: #f6f6f6; aspect-ratio: 1; }
.lt-ens__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lt-ens__etiquette {
  align-self: flex-start;
  margin: 9px 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1f2a36;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.lt-ens__nom {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #1f2a36;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lt-ens__etiquette + .lt-ens__nom { margin-top: 4px; }
a.lt-ens__nom:hover { color: #7a5a22; text-decoration: none; }
.lt-ens__prix { margin-top: auto; padding-top: 6px; color: #1f2a36; font-size: .95rem; font-weight: 700; }
.lt-ens__note { color: #a5432f; font-size: .75rem; }
.lt-ens__choisir { margin-top: 4px; color: #7a5a22; font-size: .78rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Case à cocher ronde, en haut à gauche de la photo */
.lt-ens__case { position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0; cursor: pointer; }
.lt-ens__case input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lt-ens__coche {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #1f2a36;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: transparent;
  transition: background .15s ease, color .15s ease;
}
.lt-ens__coche .material-icons { font-size: 17px; font-weight: 700; }
.lt-ens__case input:checked + .lt-ens__coche { background: #1f2a36; color: #fff; }
.lt-ens__case input:disabled + .lt-ens__coche { border-color: #c4c8ce; background: #f1f3f5; cursor: not-allowed; }
.lt-ens__case input:focus-visible + .lt-ens__coche { outline: 2px solid #b18735; outline-offset: 2px; }

.lt-ens__plus {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: #b18735;
  font-size: 1.6rem;
  font-weight: 300;
}

/* Résumé : total et bouton */
.lt-ens__resume { flex: 0 0 240px; }
.lt-ens__total { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; color: #6b7280; font-size: .85rem; }
.lt-ens__total strong { color: #1f2a36; font-size: 1.5rem; line-height: 1.2; }
.lt-ens__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #1f2a36;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.lt-ens__btn:hover:not(:disabled) { background: #7a5a22; }
.lt-ens__btn:disabled { opacity: .45; cursor: default; }
.lt-ens__btn.est-occupe { opacity: .7; cursor: progress; }
.lt-ens__btn .material-icons { font-size: 20px; }
.lt-ens__btn:focus-visible { outline: 2px solid #b18735; outline-offset: 2px; }
.lt-ens__message { min-height: 1.2em; margin: 10px 0 0; color: #1e7b3a; font-size: .82rem; font-weight: 600; }
.lt-ens__message.est-erreur { color: #a5432f; }

/* Tablette : le résumé passe dessous */
@media (max-width: 991px) {
  .lt-ens__corps { flex-direction: column; align-items: stretch; gap: 18px; }
  .lt-ens__resume { flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; }
  .lt-ens__total { margin: 0; }
  .lt-ens__btn { width: auto; }
  .lt-ens__message { grid-column: 1 / -1; margin: 0; }
}

/* Mobile : les cartes défilent sur une ligne */
@media (max-width: 575px) {
  .lt-ens { margin: 1.5rem 0; padding: 18px 14px; border-radius: 14px; }
  .lt-ens__titre { font-size: 1.15rem; }
  .lt-ens__articles {
    gap: 6px;
    margin: 0 -14px;
    padding: 2px 14px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .lt-ens__articles::-webkit-scrollbar { display: none; }
  .lt-ens__article { flex: 0 0 42%; max-width: none; scroll-snap-align: start; }
  .lt-ens__plus { font-size: 1.3rem; }
  .lt-ens__resume { display: block; }
  .lt-ens__total { flex-direction: row; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
  .lt-ens__total strong { font-size: 1.3rem; }
  .lt-ens__btn { width: 100%; }
  .lt-ens__message { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-ens__article,
  .lt-ens__coche,
  .lt-ens__btn { transition: none; }
}
