
/* ==========================================================
   BLOODMOON ROLEPLAY — CLANS
   Version : 03/11/2026

   Présentation horizontale :
   - Un clan par ligne
   - Emblème et rang à gauche
   - Informations complètes à droite
   - Descriptions toujours visibles
   - Six langues
   - Adaptation mobile
   ========================================================== */


/* ==========================================================
   PAGE PRINCIPALE
   ========================================================== */

.bm-clans-page {
    min-height: 80vh;

    color: #f0e6e4;

    background:
        radial-gradient(
            ellipse at top,
            rgba(115, 18, 31, 0.18),
            transparent 55%
        ),
        #0b0e13;
}


/* ==========================================================
   BANNIÈRE PRINCIPALE
   ========================================================== */

.bm-clans-hero {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 395px;

    padding: 75px 25px;

    background:
        linear-gradient(
            90deg,
            rgba(9, 8, 12, 0.95),
            rgba(15, 9, 15, 0.67),
            rgba(9, 8, 12, 0.95)
        ),
        url('/images/roleplay/hero-bloodmoon.png')
        center 45% / cover no-repeat;

    border-bottom: 1px solid #67303a;

    overflow: hidden;
}

.bm-clans-hero::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    height: 95px;

    background: linear-gradient(
        transparent,
        #0b0e13
    );

    pointer-events: none;
}

.bm-clans-hero-content {
    position: relative;

    z-index: 1;

    max-width: 850px;

    text-align: center;
}

.bm-clans-eyebrow,
.bm-clans-small-title {
    color: #df838c;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2.7px;

    text-transform: uppercase;
}

.bm-clans-hero h1 {
    margin: 16px 0;

    color: #f9eeeb;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(43px, 6vw, 78px);
    font-weight: 400;

    letter-spacing: 3px;

    text-shadow:
        0 4px 25px #000000,
        0 0 35px rgba(150, 22, 30, 0.5);
}

.bm-clans-hero p {
    max-width: 700px;

    margin: 0 auto;

    color: #e5d7d9;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;

    line-height: 1.7;
}


/* ==========================================================
   BOUTON EXPLORER
   ========================================================== */

.bm-clans-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 27px;

    padding: 13px 24px;

    color: #ffffff;
    background: #8e2331;

    border: 1px solid #e36c77;
    border-radius: 5px;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.bm-clans-explore:hover {
    color: #ffffff;

    background: #b32d3d;

    transform: translateY(-2px);
}


/* ==========================================================
   CONTENEUR PRINCIPAL
   ========================================================== */

.bm-clans-shell {
    width: min(1680px, calc(100% - 64px));

    margin: 0 auto;

    padding: 27px 0 85px;
}


/* ==========================================================
   SÉLECTEUR DE LANGUE
   ========================================================== */

.bm-clans-languages {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 25px;

    padding: 23px 27px;

    background: #12151c;

    border: 1px solid #4b343c;
    border-radius: 8px;
}

.bm-clans-languages-label {
    color: #d9949a;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.bm-clans-language-buttons {
    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 8px;
}

.bm-clans-language-buttons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 47px;
    min-height: 39px;

    padding: 8px 12px;

    color: #e8d8db;
    background: #1a1d24;

    border: 1px solid #58404a;
    border-radius: 5px;

    font-size: 12px;
    font-weight: 700;
}

.bm-clans-language-buttons a:hover,
.bm-clans-language-buttons a.active {
    color: #ffffff;

    background: #7c2634;

    border-color: #df6e7b;
}


/* ==========================================================
   SECTION RÉPERTOIRE
   ========================================================== */

.bm-clans-directory {
    padding-top: 43px;
}

.bm-clans-section-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 25px;

    margin-bottom: 25px;
}

.bm-clans-section-heading h2 {
    margin: 9px 0 0;

    color: #f2e4e2;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 33px;
    font-weight: 400;
}


/* ==========================================================
   COMPTEUR DE CLANS
   ========================================================== */

.bm-clans-total {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    min-width: 160px;

    padding: 15px 22px;

    background: #181820;

    border: 1px solid #70424d;
    border-radius: 7px;
}

.bm-clans-total span {
    color: #c9aeb5;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.bm-clans-total strong {
    color: #ffffff;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 29px;
    font-weight: 400;
}


/* ==========================================================
   LISTE DES CLANS

   Un clan par ligne.
   ========================================================== */

.bm-clans-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 24px;
}


/* ==========================================================
   CARTE HORIZONTALE D'UN CLAN
   ========================================================== */

.bm-clan-card {
    display: grid;

    grid-template-columns:
        230px minmax(0, 1fr);

    align-items: stretch;

    min-width: 0;

    overflow: hidden;

    background:
        linear-gradient(
            130deg,
            #17151c,
            #10151c
        );

    border: 1px solid #593640;
    border-radius: 9px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.20);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.bm-clan-card:hover {
    border-color: #ac5260;

    box-shadow:
        0 17px 40px rgba(0, 0, 0, 0.35);
}


/* ==========================================================
   PARTIE VISUELLE
   ========================================================== */

.bm-clan-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 30px;

    padding: 28px 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(130, 30, 45, 0.22),
            transparent 70%
        ),
        #17131a;

    border-right: 1px solid #4c333c;
}


/* ==========================================================
   RANG DU CLAN
   ========================================================== */

.bm-clan-rank {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;

    color: #c88a94;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.bm-clan-rank strong {
    color: #f2d7d7;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 33px;
    font-weight: 400;
}


/* ==========================================================
   EMBLÈME DU CLAN
   ========================================================== */

.bm-clan-emblem-link {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 170px;
    height: 170px;

    padding: 12px;

    background:
        radial-gradient(
            circle,
            #30202a,
            #110e15
        );

    border: 1px solid #7d414d;
    border-radius: 12px;

    box-shadow:
        0 0 20px rgba(120, 25, 45, 0.20);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.bm-clan-emblem-link:hover {
    border-color: #e07581;

    transform: scale(1.04);
}

.bm-clan-emblem {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 6px;
}


/* ==========================================================
   CONTENU DU CLAN
   ========================================================== */

.bm-clan-content {
    display: flex;
    flex-direction: column;

    gap: 20px;

    min-width: 0;

    padding: 30px;
}

.bm-clan-content h3 {
    margin: 0;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 29px;
    font-weight: 400;

    overflow-wrap: anywhere;
}

.bm-clan-content h3 a {
    color: #f5e9e8;
}

.bm-clan-content h3 a:hover {
    color: #ff9ba6;
}


/* ==========================================================
   CHEF ET NOMBRE DE MEMBRES
   ========================================================== */

.bm-clan-information {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.bm-clan-information-item {
    display: flex;
    flex-direction: column;

    gap: 7px;

    min-width: 0;

    padding: 13px 14px;

    background: #0b0e14;

    border: 1px solid #3c3039;
    border-radius: 5px;
}

.bm-clan-label {
    display: block;

    color: #c7808a;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}

.bm-clan-information-item a,
.bm-clan-information-item strong {
    color: #f2e6e6;

    font-size: 14px;
    font-weight: 600;

    overflow-wrap: anywhere;
}

.bm-clan-information-item a:hover {
    color: #ff9ca7;

    text-decoration: underline;
}

.bm-clan-member-count {
    color: #ffffff;
}


/* ==========================================================
   DESCRIPTION COMPLÈTE

   Toujours visible.
   Aucune limite de hauteur.
   ========================================================== */

.bm-clan-description {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.bm-clan-description p {
    margin: 0;

    color: #d6c7ca;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;

    line-height: 1.85;

    overflow-wrap: anywhere;
}

.bm-clan-muted {
    color: #a3959a !important;

    font-style: italic;
}


/* ==========================================================
   ADRESSE HYPERGRID
   ========================================================== */

.bm-clan-address {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.bm-clan-address code {
    display: block;

    padding: 12px;

    color: #efdadd;
    background: #090c12;

    border: 1px solid #44323b;
    border-radius: 5px;

    font-family: monospace;
    font-size: 12px;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* ==========================================================
   BOUTON PROFIL DU CLAN
   ========================================================== */

.bm-clan-actions {
    margin-top: auto;

    padding-top: 4px;
}

.bm-clan-button {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    min-height: 44px;

    padding: 11px 22px;

    color: #ffffff;
    background: #8d2634;

    border: 1px solid #dc6c78;
    border-radius: 5px;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;
}

.bm-clan-button:hover {
    color: #ffffff;

    background: #b53343;

    border-color: #ffc0c7;
}


/* ==========================================================
   MESSAGES
   ========================================================== */

.bm-clans-message {
    padding: 35px 25px;

    color: #e7cbd0;
    background: #19161e;

    border: 1px solid #8e414f;
    border-radius: 7px;

    font-size: 15px;

    text-align: center;
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.bm-clans-pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 35px;
}

.bm-clans-page-button {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-height: 42px;

    padding: 10px 19px;

    color: #f4e2e3;
    background: #271c25;

    border: 1px solid #794550;
    border-radius: 5px;

    font-size: 13px;
    font-weight: 700;
}

.bm-clans-page-button:hover {
    color: #ffffff;

    background: #8b2938;

    border-color: #d9707b;
}

.bm-clans-page-current {
    color: #ded0d2;

    font-size: 13px;
    font-weight: 700;
}


/* ==========================================================
   TABLETTES
   ========================================================== */

@media (max-width: 950px) {

    .bm-clan-card {
        grid-template-columns:
            180px minmax(0, 1fr);
    }

    .bm-clan-emblem-link {
        width: 135px;
        height: 135px;
    }

    .bm-clan-content {
        padding: 23px;
    }

    .bm-clans-languages {
        align-items: flex-start;
        flex-direction: column;
    }

    .bm-clans-language-buttons {
        justify-content: flex-start;
    }

    .bm-clans-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* ==========================================================
   MOBILES
   ========================================================== */

@media (max-width: 650px) {

    .bm-clans-shell {
        width: calc(100% - 28px);
    }

    .bm-clans-hero {
        min-height: 315px;

        padding: 55px 18px;
    }

    .bm-clans-hero p {
        font-size: 15px;
    }

    .bm-clans-languages {
        padding: 18px 14px;
    }

    .bm-clans-section-heading h2 {
        font-size: 27px;
    }

    .bm-clan-card {
        display: flex;
        flex-direction: column;
    }

    .bm-clan-visual {
        flex-direction: row;

        justify-content: space-around;

        gap: 15px;

        padding: 20px;

        border-right: none;
        border-bottom: 1px solid #4c333c;
    }

    .bm-clan-emblem-link {
        width: 120px;
        height: 120px;
    }

    .bm-clan-content {
        padding: 20px;
    }

    .bm-clan-content h3 {
        font-size: 24px;
    }

    .bm-clan-information {
        grid-template-columns: 1fr;
    }

    .bm-clan-button {
        width: 100%;
    }

    .bm-clans-pagination {
        gap: 10px;
    }

    .bm-clans-page-button {
        padding: 10px 12px;
    }

}
