/* PAGE BIOMES WIKI SUBNAUTICA 1 */

.Bodybiome {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url("../images/Subnautica1biome2.png") center/cover no-repeat fixed;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.Bodybiome::before {
    content: none;
}

.section-accueilbiome {
    min-height: 50vh;
    height: auto;
    padding-bottom: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.couche-sombrebiome {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgb(0 0 0 / 77%) 0%,
            rgb(0 0 0 / 38%) 40%,
            rgba(0, 0, 0, 0.2) 70%,
            rgb(10 8 8 / 78%) 100%);
}

.titre-accueilbiom {
    min-width: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 150px;
    align-items: center;
    text-transform: uppercase;
    font-size: 70px;
    color: white;
}

.biomes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    transform: translateY(-100px);
    padding-bottom: 120px;
}

.biome-card {
    background: rgba(0, 20, 40, 0.85);
    border-radius: 15px;
    overflow: hidden;
}

.biome-card > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.biome-card h2 {
    color: #00c2ff;
    margin: 15px;
    font-size: 20px;
    text-transform: uppercase;
}

.biome-card p {
    color: #ffffff;
    margin: 0 15px 20px;
    font-size: 14px;
    text-shadow: -1px 10px 20px #efefef;
}

.biome-card:hover {
    transform: translateY(-8px);
    border-color: #13cfab;
    box-shadow: 0 0 60px #05f1b2;
}

/* Titres de section */
.biome-section-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 70px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #244f53;
    margin: 80px 0 30px;
    text-shadow:
        0 0 10px rgba(0, 234, 255, 0.9),
        0 0 25px rgba(0, 200, 255, 0.7),
        0 0 50px rgba(0, 150, 255, 0.5);
    position: relative;
}

.biome-section-title::before,
.biome-section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25%;
    height: 2px;
    background: linear-gradient(to right,
            transparent,
            rgba(0, 234, 255, 0.8),
            transparent);
}

.biome-section-title::before {
    left: 0;
}

.biome-section-title::after {
    right: 0;
}

/* Emoji ressources */
.CalcaireEmoji {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.ressource {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Navigation biome dropdown */
.nav-biome-wrapper {
    position: fixed;
    top: 550px;
    left: 95%;
    transform: translateX(-50%);
}

.nav-biome-btn {
    background: rgba(0, 200, 255, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.5);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
    backdrop-filter: blur(6px);
}

.nav-biome-btn:hover {
    background: rgba(0, 200, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.8);
}

.nav-biome-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 10, 20, 0.92);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 10px;
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    backdrop-filter: blur(10px);
}

.nav-biome-wrapper.ouvert .nav-biome-menu {
    display: block;
}

.nav-biome-menu li a {
    display: block;
    padding: 12px 25px;
    color: #cce fff;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    transition: 0.2s ease;
}

.nav-biome-menu li a:hover {
    background: rgba(0, 200, 255, 0.1);
    color: #00ffff;
}

/* ---- MOBILE (≤ 768px) ---- */
@media (max-width: 768px) {

    .titre-accueilbiom {
        font-size: 2.5rem;
        padding-top: 80px;
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .biomes-container {
        grid-template-columns: 1fr;
        padding: 20px 5%;
        transform: none;
        padding-bottom: 80px;
    }

    .biome-section-title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin: 40px 0 20px;
    }

    .biome-section-title::before,
    .biome-section-title::after {
        width: 10%;
    }

    .nav-biome-wrapper {
        display: none;
    }
}