/* Activités et régions tirées des données du jeu : sections titrées, grille de cartes
   cliquables et fenêtre de détail (voir js/components/activities.js). */

.d-section { padding: clamp(48px, 6vw, 84px) var(--gutter) 0; }
.d-section:last-of-type { padding-bottom: clamp(60px, 8vw, 110px); }
.d-section > .container > h2 {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; text-transform: uppercase; color: var(--pearl);
}
.d-section h2 .count { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); }

/* sections insérées dans une page sur mesure : pas de marges propres */
.d-section.embedded { padding: 0 0 clamp(36px, 5vw, 56px); }
.d-section.embedded > .container { max-width: none; }

.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.region-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.region-list li::before { content: ''; flex: 0 0 6px; height: 6px; transform: rotate(45deg); background: var(--gold); opacity: .8; }

/* ---------- Cartes ---------- */
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.act {
  display: flex; flex-direction: column; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit;
  background: var(--panel-solid); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.act:hover, .act:focus-visible { border-color: rgba(255, 255, 255, .75); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .85); outline: none; }
.act-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #17203f, #0b1022); }
.act-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.act:hover .act-img img { transform: scale(1.06); }
.act-img.no-img::after, .shot.no-img::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; transform: rotate(45deg); border: 1px solid rgba(255, 255, 255, .28); }
.act-body { flex: 1; padding: 14px 16px 18px; }
.act-body h3 { margin: 4px 0 6px; font-size: 1rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--pearl); }
.act-body p:not(.tag) { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-row { margin: 22px 0 0; text-align: center; }

/* ---------- Fenêtre de détail ---------- */
.act-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; color: var(--ink); background: #0b1022; border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -20px #000; }
.act-dialog::backdrop { background: rgba(3, 5, 11, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.act-dialog .shot { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #17203f, #0b1022); }
.act-dialog .shot img { width: 100%; height: 100%; object-fit: cover; }
.act-dialog .body { padding: 22px 26px 28px; }
.act-dialog h2 { margin: 6px 0 2px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--pearl); }
.act-dialog .en { margin: 0 0 14px; font-family: var(--font-lore); font-style: italic; font-size: 1.05rem; color: var(--faint); }
.act-dialog .text { margin: 12px 0 18px; font-size: 1rem; line-height: 1.65; color: #cdd3e6; }
.act-dialog .close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; cursor: pointer; background: rgba(6, 10, 22, .7); border: 1px solid var(--line-strong); color: #fff; font-size: 1.3rem; }
.act-dialog .close:hover { background: #fff; color: var(--night); }
.act-dialog .more { margin: 20px 0 0; }

@media (max-width: 420px) {
  .acts { grid-template-columns: minmax(0, 1fr); }
}
