/* ==========================================================
   BLOODMOON ROLEPLAY — GUIDE / LE GRIMOIRE
   Fichier complémentaire à /roleplay/css/roleplay.css
   Styles spécifiques uniquement à la page Guide
   ========================================================== */

.bm-guide-page {
    min-height: 70vh;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(110, 17, 28, 0.13), transparent 46%),
        #0b0e13;
    color: #eee6e2;
}

.bm-guide-hero {
    position: relative;
    min-height: 375px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 75px 24px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(10, 10, 14, 0.92), rgba(12, 9, 14, 0.63), rgba(10, 10, 14, 0.92)),
        url('/images/roleplay/hero-bloodmoon.png') center 42% / cover no-repeat;
    border-bottom: 1px solid #633038;
}

.bm-guide-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(transparent, #0b0e13);
    pointer-events: none;
}

.bm-guide-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 790px;
    text-align: center;
}

.bm-guide-kicker,
.bm-guide-mini-label {
    color: #db7a7c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.bm-guide-hero h1 {
    margin: 13px 0 17px;
    color: #f6eee9;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(43px, 6vw, 78px);
    font-weight: 500;
    letter-spacing: 3px;
    text-shadow: 0 4px 25px #000, 0 0 35px rgba(150, 22, 30, 0.6);
}

.bm-guide-hero p {
    margin: 0 auto;
    max-width: 670px;
    color: #eadadd;
    font: 17px/1.7 Georgia, 'Times New Roman', serif;
}

.bm-guide-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 13px 23px;
    color: #fff;
    background: #8e1e2d;
    border: 1px solid #e05c67;
    border-radius: 5px;
    font: 700 12px Georgia, 'Times New Roman', serif;
    letter-spacing: 1px;
}

.bm-guide-start:hover {
    color: #fff;
    background: #b12d3c;
}

.bm-guide-shell {
    width: min(1640px, calc(100% - 64px));
    margin: 0 auto;
    padding: 25px 0 80px;
}

.bm-guide-language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 21px 26px;
    background: #12151b;
    border: 1px solid #45353b;
    border-radius: 8px;
}

.bm-guide-language p {
    margin: 8px 0 0;
    color: #c5b7ba;
    font-size: 13px;
}

.bm-guide-language p strong {
    color: #fff;
}

.bm-guide-language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bm-guide-language-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #534248;
    border-radius: 5px;
    background: #1a1c23;
    color: #ede1e1;
    font-size: 12px;
    font-weight: 600;
}

.bm-guide-language-list a:hover,
.bm-guide-language-list a.is-current {
    color: #fff;
    border-color: #df6873;
    background: #75202c;
}

.bm-guide-chapters {
    padding-top: 39px;
}

.bm-guide-section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.bm-guide-section-top h2 {
    margin: 7px 0;
    color: #f4e5e3;
    font: 34px Georgia, 'Times New Roman', serif;
}

.bm-guide-section-top p {
    margin: 0;
    color: #b5a8ae;
    font-size: 14px;
}

.bm-guide-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(360px, 100%);
    min-height: 46px;
    padding: 0 15px;
    background: #191a22;
    border: 1px solid #6c4249;
    border-radius: 6px;
}

.bm-guide-search:focus-within {
    border-color: #e36972;
    box-shadow: 0 0 0 2px rgba(198, 50, 67, 0.18);
}

.bm-guide-search-icon {
    color: #e38d94;
    font-size: 24px;
}

.bm-guide-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: 14px Arial, sans-serif;
}

.bm-guide-search input::placeholder {
    color: #b3a4aa;
}

.bm-guide-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.bm-guide-jumps a {
    padding: 10px 14px;
    color: #d9c8cd;
    background: #1a1b22;
    border: 1px solid #47343a;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.bm-guide-jumps a:hover {
    color: #fff;
    background: #60202b;
    border-color: #c65361;
}

.bm-guide-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.bm-guide-group {
    min-width: 0;
    overflow: hidden;
    background: #12151c;
    border: 1px solid #4b333b;
    border-radius: 8px;
}

.bm-guide-group[open] {
    border-color: #8c3945;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.bm-guide-group summary {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 99px;
    padding: 19px 24px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(110deg, #24171d, #15171e);
}

.bm-guide-group summary::-webkit-details-marker {
    display: none;
}

.bm-guide-group summary:focus-visible {
    outline: 2px solid #ef7883;
    outline-offset: -4px;
}

.bm-guide-num {
    color: #9c5a63;
    font: 30px Georgia, 'Times New Roman', serif;
}

.bm-guide-group-heading {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.bm-guide-group-heading strong {
    color: #f3e2e2;
    font: 20px Georgia, 'Times New Roman', serif;
}

.bm-guide-group-heading small {
    color: #bfadb4;
    font: 12px Arial, sans-serif;
}

.bm-guide-expand {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #f1afb4;
    border: 1px solid #7a434b;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.bm-guide-group[open] .bm-guide-expand {
    transform: rotate(45deg);
}

.bm-guide-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 16px;
    border-top: 1px solid #422d34;
}

.bm-guide-document {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 124px;
    padding: 13px;
    background: #0d1118;
    border: 1px solid #3c333c;
    border-radius: 6px;
}

.bm-guide-document:hover {
    border-color: #a34c59;
    background: #17141b;
}

.bm-guide-document-image {
    display: grid;
    flex: 0 0 85px;
    width: 85px;
    height: 85px;
    place-items: center;
    border-radius: 5px;
    background: radial-gradient(circle, #30202b, #17151c);
}

.bm-guide-document-image img {
    max-width: 78px;
    max-height: 78px;
    object-fit: contain;
}

.bm-guide-document-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 8px;
}

.bm-guide-document-kind {
    color: #c57b83;
    font: 700 10px Arial, sans-serif;
    letter-spacing: 1.5px;
}

.bm-guide-document h3 {
    margin: 0;
    color: #f3e8e6;
    font: 17px Georgia, 'Times New Roman', serif;
    overflow-wrap: anywhere;
}

.bm-guide-document-details a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #ff9ca7;
    font: 700 11px Arial, sans-serif;
    letter-spacing: 0.7px;
}

.bm-guide-document-details a:hover {
    color: #fff;
    text-decoration: underline;
}

.bm-guide-no-results,
.bm-guide-empty {
    color: #d7bec4;
    padding: 15px;
    font-size: 14px;
}

.bm-guide-group[hidden],
.bm-guide-document[hidden],
.bm-guide-no-results[hidden] {
    display: none !important;
}

@media (max-width: 1150px) {
    .bm-guide-groups {
        grid-template-columns: 1fr;
    }

    .bm-guide-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .bm-guide-language {
        align-items: flex-start;
        flex-direction: column;
    }

    .bm-guide-language-list {
        justify-content: flex-start;
    }

    .bm-guide-section-top {
        flex-direction: column;
        align-items: stretch;
    }

    .bm-guide-search {
        width: 100%;
    }

    .bm-guide-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bm-guide-shell {
        width: calc(100% - 28px);
    }

    .bm-guide-hero {
        min-height: 310px;
        padding: 54px 18px;
    }

    .bm-guide-hero p {
        font-size: 15px;
    }

    .bm-guide-language {
        padding: 19px 15px;
    }

    .bm-guide-language-list a {
        padding: 7px 9px;
    }

    .bm-guide-group summary {
        gap: 12px;
        padding: 16px;
    }

    .bm-guide-group-heading strong {
        font-size: 17px;
    }

    .bm-guide-items {
        grid-template-columns: 1fr;
        padding: 11px;
    }

    .bm-guide-document {
        min-height: 105px;
    }
}
