/* Tirages : coffrets bien proportionnés et message original immédiatement lisible. */
.ei-tirages .tg-oracle-image {
  width: 110px;
  height: 110px;
  aspect-ratio: 1;
  object-fit: contain;
}
.ei-tirages .tg-result-copy h3 {
  margin-bottom: 14px;
}
.ei-tirages .tg-result-copy .tg-result-phrase {
  display: block;
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 0;
  border-left: 3px solid #b29861;
  border-radius: 0 10px 10px 0;
  background: #edf3ed;
  color: #174e53;
  font: 600 clamp(18px, 2vw, 22px)/1.65 var(--ei-sans, Arial, sans-serif);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  text-wrap: pretty;
  overflow-wrap: break-word;
  quotes: "« " " »";
}
.ei-tirages .tg-result-copy .tg-result-phrase::before { content: open-quote; }
.ei-tirages .tg-result-copy .tg-result-phrase::after { content: close-quote; }
.ei-tirages .tg-result-section p {
  font-size: 14px;
  line-height: 1.85;
}
.ei-tirages .tg-result-section h4 {
  font-size: 11px;
  color: #536a58;
}
.ei-tirages .tg-oracle-fallback {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
}
/* Le catalogue chargé remplace les liens de secours, sans affichage en double. */
.ei-tirages .tg-choice-main:has(.tg-oracle-option) .tg-oracle-fallback { display: none; }
.ei-tirages .tg-oracle-preview {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--tg-line);
  border-radius: 17px;
  background: var(--tg-paper);
  color: var(--tg-ink);
  text-decoration: none;
  min-width: 0;
}
.ei-tirages .tg-oracle-preview:focus-visible {
  outline: 3px solid #ad8654;
  outline-offset: 4px;
}
.ei-tirages .tg-oracle-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.ei-tirages .tg-oracle-preview > span { display: grid; gap: 8px; min-width: 0; }
.ei-tirages .tg-oracle-preview strong { font: 500 24px/1.1 var(--ei-serif, Georgia, serif); }
.ei-tirages .tg-oracle-preview > span > span { font-size: 11px; line-height: 1.65; }
.ei-tirages .tg-oracle-preview-link { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 600px) {
  .ei-tirages .tg-oracle-image { width: 100%; height: auto; aspect-ratio: 1.5; }
  .ei-tirages .tg-oracle-fallback { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ei-tirages .tg-oracle-preview { grid-template-columns: minmax(0, 1fr); align-content: start; }
}
@media (max-width: 359px) {
  .ei-tirages .tg-oracle-image { width: 83px; height: 83px; }
  .ei-tirages .tg-oracle-preview { grid-template-columns: 83px minmax(0, 1fr); padding: 11px; gap: 11px; }
  .ei-tirages .tg-result-copy .tg-result-phrase { padding: 14px 13px; font-size: 18px; }
}
