/* Descriptions homogènes dans la liste ; détail complet après clic. */
.gift-description {
  display: -webkit-box;
  min-height: 4.2em;
  margin: .7rem 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gift-detail-description {
  max-width: 620px;
  margin: .5rem 0 1.35rem;
  color: var(--muted);
}

.card-clickable { cursor: pointer; }
.card-clickable:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; }
.seller-link { display: inline-block; min-height: 1.55em; color: var(--peach-deep); font-size: .84rem; font-weight: 700; text-decoration: none; }
.seller-link:hover { text-decoration: underline; }
.seller-link.placeholder { color: var(--muted); font-weight: 500; }
.offered-detail { align-self: start; text-align: center; }

/* Centrage explicite des images, quelle que soit leur proportion. */
.image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}

.image { position: relative; }

.detail-image {
  display: block;
  width: 100%;
  height: min(390px, 72vw);
  margin-inline: auto;
  object-fit: contain;
  object-position: center center;
  background: var(--peach-pale);
}

.gift-information { min-width: 0; }
.seller-links { margin-top: 1.8rem; }
.seller-links h2 { margin-bottom: .8rem; }
.seller-links > div { display: grid; gap: .55rem; }
.seller-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--peach-deep); background: var(--paper); text-decoration: none; font-size: .92rem; font-weight: 700; }
.seller-links a:hover { background: var(--peach-pale); }
.seller-links a span { min-width: 0; overflow-wrap: anywhere; }
.seller-links a b { flex: 0 0 auto; }

@media (max-width: 700px) {
  .reservation-layout { display: flex; flex-direction: column; }
  .gift-information { order: 0; }
  .form-card, .offered-detail { order: 1; width: 100%; }
  .detail-image { max-height: 310px; }
}
