/* Page fiche entité */

.monster-not-found {
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.monster-not-found a {
    color: white;
}

.monster-general-info {
    display: flex;
    gap: 25px;
    align-items: center;
    width: 100%;
}

.monster-image {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster-image img {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.monster-description {
    flex: 1;
    min-width: 0;
}

.monster-description p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.65;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Barres de statistiques visuelles */
.monster-visual-infos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.monster-visual-bar {
    width: 100%;
}

.monster-visual-bar-label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.monster-visual-bar-track {
    position: relative;
    width: 100%;
    height: 30px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.monster-visual-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.65s ease;
}

.monster-visual-bar-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 8px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    text-align: left;
}

.monster-visual-bar-value--dark {
    color: #1a1a1a;
}

.monster-visual-bar-value--light {
    color: #ffffff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
}

/* Sélecteur de sous-sections */
.sub-section-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.sub-section-btn.is-active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.55);
}

.sub-section-panel {
    display: none;
}

.sub-section-panel.is-visible {
    display: block;
}

/* Bloc bestiaire (terminal Lethal) */
.bestiary-visual-container {
    width: 90%;
    margin: 0 auto;
    background-color: #110F09;
    border: 2px solid #0CF415;
    border-radius: 12px;
    padding: 20px 24px;
}

.bestiary-visual-container p {
    color: #0CF415;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

/* Panneaux texte (fonctionnement, conseils) */
.monster-text-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.monster-text-panel p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.monster-text-panel .separator {
    width: 80%;
    margin: 24px auto;
}

/* Tableau Nutcracker (onglet Fonctionnement) */
.monster-text-panel .tableau-nutcracker {
    width: 100%;
    max-width: 560px;
    margin: 20px auto;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.monster-text-panel .tableau-nutcracker caption {
    caption-side: top;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.monster-text-panel .tableau-nutcracker th,
.monster-text-panel .tableau-nutcracker td {
    padding: 10px 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    vertical-align: middle;
}

.monster-text-panel .tableau-nutcracker thead th {
    background: rgba(0, 0, 0, 0.25);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.monster-text-panel .tableau-nutcracker tbody th {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    text-align: left;
    width: 38%;
}

.monster-text-panel .tableau-nutcracker tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

/* Liste des lunes */
.monster-moons-average-intro {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    text-align: center;
    margin: 0 0 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.monster-moons-list {
    list-style: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.monster-moons-list li {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.8;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.monster-moons-list li:last-child {
    border-bottom: none;
}

.monster-moons-special {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.monster-moons-special p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

/* Tableau des statistiques */
.monster-stats-table-wrap {
    overflow-x: auto;
}

.monster-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.monster-stats-table th,
.monster-stats-table td {
    padding: 12px 18px;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.monster-stats-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.monster-stats-table tr:last-child td {
    border-bottom: none;
}

.monster-stats-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

/* Images supplémentaires */
.monster-additional-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    justify-items: center;
    align-items: start;
}

.monster-additional-image {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.monster-additional-image img {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.monster-additional-image figcaption {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .monster-general-info {
        flex-direction: column;
    }

    .monster-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .monster-description p {
        font-size: 1rem;
    }

    .bestiary-visual-container {
        width: 100%;
        padding: 16px 18px;
    }

    .monster-text-panel {
        padding: 18px 20px;
    }

    .monster-moons-list,
    .monster-moons-special {
        padding: 16px 20px;
    }

    .monster-moons-average-intro {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .monster-stats-table th,
    .monster-stats-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .monster-text-panel .tableau-nutcracker {
        max-width: 100%;
    }

    .monster-text-panel .tableau-nutcracker th,
    .monster-text-panel .tableau-nutcracker td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .monster-additional-images {
        grid-template-columns: 1fr;
    }
}
