/* Archipelago — composants propres à ce site (le thème de base est dans style.css, repris d'omgacraft.fr) */

a.brand {
    color: inherit;
    text-decoration: none;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--surface);
}

@media (max-width: 640px) {
    .nav-link-out { display: none; }
}

.inline-link {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
}

.inline-link:hover { text-decoration-color: var(--text); }

.hero-small { padding-bottom: 8px; }

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.chip-muted {
    color: var(--muted);
    font-weight: 500;
}

/* ---- Page d'un jeu ---- */

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover { color: var(--text); }

.game-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.game-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 2rem;
    background: color-mix(in srgb, var(--card-color) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-color) 50%, transparent);
}

.game-head h1 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.1;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tagline {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 22px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.center { justify-content: center; text-align: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    width: auto;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover { background: var(--surface-hover); transform: translateY(-2px); box-shadow: none; }

.btn-primary {
    background: var(--btn-gradient);
    border-color: transparent;
    color: var(--btn-text);
}

.btn-primary:hover { background: var(--btn-gradient); filter: brightness(1.1); }

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--card-shadow);
}

.panel h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.panel-wide { margin-bottom: 18px; }

.columns .panel { margin: 0; }

.note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 14px 0 0;
}

.source-note { margin-top: 24px; }

.downloads,
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
    word-break: break-word;
}

.download:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.download-primary {
    border-color: rgba(var(--accent-glow), 0.5);
    background: rgba(var(--accent-glow), 0.08);
}

.download-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--btn-gradient);
    color: var(--btn-text);
    font-weight: 700;
}

.download strong { display: block; font-size: 0.93rem; }
.download small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

.checklist li {
    position: relative;
    padding-left: 26px;
    line-height: 1.5;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(var(--accent-glow));
    font-weight: 700;
}

/* ---- Contenu Markdown (README, guides) ---- */

.markdown {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.markdown > :first-child { margin-top: 0; }

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
    font-family: var(--font-display);
    line-height: 1.25;
    margin: 1.8em 0 0.6em;
}

.markdown h1 { font-size: 1.7rem; }
.markdown h2 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.markdown h3 { font-size: 1.1rem; }
.markdown p,
.markdown ul,
.markdown ol { margin: 0 0 1em; }
.markdown li { margin: 0.25em 0; }
.markdown a { color: rgb(var(--accent-glow)); text-underline-offset: 3px; }
.markdown a:hover { text-decoration: none; }
.markdown img { max-width: 100%; height: auto; border-radius: 10px; }

.markdown blockquote {
    margin: 0 0 1em;
    padding: 10px 16px;
    border-left: 3px solid rgb(var(--accent-glow));
    background: var(--surface);
    border-radius: 0 10px 10px 0;
    color: var(--muted);
}

.markdown blockquote p:last-child { margin-bottom: 0; }

.markdown code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    font-size: 0.88em;
}

.markdown pre {
    margin: 0 0 1em;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.markdown pre code { padding: 0; border: 0; background: none; }

.markdown table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 1em;
    font-size: 0.92rem;
}

.markdown th,
.markdown td {
    padding: 9px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.markdown th { background: var(--surface); font-weight: 600; }
.markdown hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* ---- Guide général ---- */

.steps {
    list-style: none;
    counter-reset: step;
    margin: 28px auto;
    padding: 0;
    max-width: 760px;
    display: grid;
    gap: 14px;
}

.steps li {
    position: relative;
    counter-increment: step;
    padding: 20px 22px 20px 70px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 20px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--btn-gradient);
    color: var(--btn-text);
    font-family: var(--font-display);
    font-weight: 700;
}

.steps h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.93rem; }

.steps code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88em;
}
