/* PAGE PLANTES WIKI SUBNAUTICA 1 */

.Bodyplante {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url("../images/LesplanteimageWiki.png") center/cover no-repeat fixed;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.Bodyplante::before {
    content: none;
}

.section-accueilplante {
    min-height: 50vh;
    height: auto;
    padding-bottom: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.titre-accueilplante {
    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;
}

.plantes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    transform: translateY(-100px);
    padding-bottom: 120px;
}

.plante-card {
    background: rgba(0, 20, 40, 0.85);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.plante-card > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: filter 0.3s ease;
}


.plante-card.leak > img {
      filter: brightness(0);
}

.plante-card.leak:hover > img {
       filter: brightness(1);
}

.plante-card h2 {
    color: #00c2ff;
    margin: 15px;
    font-size: 20px;
    text-transform: uppercase;
}

.plante-card p {
    color: #ffffff;
    margin: 0 15px 20px;
    font-size: 14px;
    text-shadow: -1px 10px 20px #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.plante-card:hover {
    transform: translateY(-8px);
    border-color: rgb(0, 255, 13);
    box-shadow: 0 0 60px  rgb(0, 255, 13);

}

.plante-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background:  rgb(0, 255, 13);;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.plante-card.passif::before {
    background: limegreen;
    box-shadow: 0 0 60px rgba(0, 255, 0, 0.5);
}

.plante-card.passif:hover {
    box-shadow: 0 0 60px rgba(0, 255, 0, 0.5);
}

.plante-card.Défensif::before {
    background: rgb(205, 169, 50);
}

.plante-card.Défensif:hover {
    box-shadow: 0 0 60px rgb(205, 169, 50);
}



/* Titres de section */
.plante-section-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 70px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color:  rgb(0, 255, 13);
    margin: 80px 0 30px;
    text-shadow: 0 0 10px rgb(159 76 62 / 37%), 0 0 25px rgb(0 0 0), 0 0 50px rgb(0 0 0 / 50%);
    position: relative;
    border: 3px solid  rgb(0, 255, 13);
    padding: 10px;
    display: inline-block;
}


.plante-section-title.passif {
    color: limegreen;
    text-shadow:
        0 0 10px rgb(0, 0, 0),
        0 0 25px rgb(0, 0, 0),
        0 0 50px rgb(0, 0, 0);
    border: 3px solid limegreen;
}

.plante-section-title.Défensif {
    color: rgb(205, 169, 50);
    text-shadow: 0 0 10px rgb(0 0 0), 0 0 25px rgb(0 0 0), 0 0 50px rgb(0 0 0);
    border: 3px solid rgb(205, 169, 50);
}



.equipement-section-title::before,
.equipement-section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25%;
    height: 2px;
    background: linear-gradient(to right, #FF9800, #00000000, #00000000);
}

.plante-section-title::before {
    left: 0;
}

.plante-section-title::after {
    right: 0;
}

/* Navigation plante dropdown */
.nav-plante-wrapper {
    position: fixed;
    top: 550px;
    left: 95%;
    transform: translateX(-50%);
}

.nav-plante-btn {
    background: rgba(3, 63, 21, 0.15);
    border: 1px solid rgba(191, 236, 140, 0.5);
    color: rgb(247, 246, 246);
    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-plante-btn:hover {
    background: rgba(13, 248, 103, 0.24);
    border-color: rgba(51, 255, 0, 0.8);
}

.nav-plante-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-plante-wrapper.ouvert .nav-plante-menu {
    display: block;
}

.nav-plante-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-plante-menu li a:hover {
    background: rgba(0, 200, 255, 0.1);
    color: #00ffff;
}

/* ---- MOBILE (≤ 768px) ---- */
@media (max-width: 768px) {

    .titre-accueilplante {
        font-size: 2.5rem;
        padding-top: 80px;
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .plantes-container {
        grid-template-columns: 1fr;
        padding: 20px 5%;
        transform: none;
        padding-bottom: 80px;
    }

    .plante-section-title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin: 40px 0 20px;
    }

    .plante-section-title::before,
    .plante-section-title::after {
        width: 10%;
    }

    .nav-plante-wrapper {
        display: none;
    }
}