/* Panneau vedette d'une activité (raid, donjon…) : photo de fond, liste d'étapes
   et carte d'objet façon infobulle du jeu. */

.raid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; min-height: 560px; margin-bottom: 28px; border: 1px solid var(--line); background: var(--panel-solid); overflow: hidden; isolation: isolate; }
.raid-img { position: absolute; inset: 0; z-index: -1; }
.raid-img img { width: 100%; height: 100%; object-fit: cover; }
.raid-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 22, .92) 0%, rgba(6, 10, 22, .55) 45%, rgba(6, 10, 22, .2) 70%, rgba(6, 10, 22, .65) 100%), linear-gradient(0deg, rgba(6, 10, 22, .7), transparent 50%); }
.raid-body { align-self: end; padding: clamp(24px, 4vw, 48px); max-width: 560px; }
.raid h3 { margin: 8px 0 6px; font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--pearl); }
.raid-quote { margin: 0 0 24px; font-family: var(--font-lore); font-style: italic; font-size: 1.3rem; color: #e9e3d6; }
.raid-note { margin: 18px 0 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.encounters { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.encounters li { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: .92rem; font-weight: 500; transition: background .4s, color .4s; }
.encounters .n { flex: 0 0 24px; height: 24px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--muted); }
.encounters li.target { background: rgba(255, 255, 255, .92); color: var(--night); }
.encounters li.target .n { border-color: var(--night); color: var(--night); }

.item-card { align-self: start; margin: clamp(16px, 3vw, 32px); background: rgba(10, 12, 20, .92); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); }
.item-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; background: linear-gradient(90deg, #c8a92f, #a8891d); color: #fff; }
.item-head img { border: 1px solid rgba(255, 255, 255, .5); }
.item-name { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.item-type, .item-tier { margin: 2px 0 0; font-size: .74rem; font-weight: 500; opacity: .85; }
.item-tier { align-self: start; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.item-shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.item-flavor { margin: 0; padding: 14px 16px 16px; font-family: var(--font-lore); font-style: italic; font-size: 1.02rem; line-height: 1.35; color: #d9d2c1; }

/* variante étroite, pour une colonne : la carte d'objet passe sous le texte */
.raid--compact { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-bottom: 0; }
.raid--compact h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.raid--compact .item-card { margin: 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); max-width: 420px; }

@media (max-width: 1020px) {
  .raid { grid-template-columns: minmax(0, 1fr); }
  .item-card { max-width: 420px; margin-top: 0; }
}
