@import url('../../css/couleur.css');

/* === RESET / GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;

    background: var(--color-bg);

    color: var(--color-neon);

    overflow-x: hidden;
}

/* === CANVAS BACKGROUND === */
canvas#network {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    z-index: -1;

    background: var(--color-bg);
}

/* === CONTAINER === */
.container {
    max-width: 1100px;

    margin: auto;

    padding: 120px 20px 60px;

    text-align: center;
}

/* === TITRE === */
h1 {
    font-size: 2.8rem;

    margin-bottom: 60px;

    letter-spacing: 2px;

    color: var(--color-neon);

    text-shadow:
        0 0 10px rgba(57, 255, 20, 0.55),
        0 0 24px rgba(57, 255, 20, 0.22);
}

/* === GRID === */
.grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 40px;
}

/* === CARD === */
.card {
    position: relative;

    background: rgba(0, 30, 0, 0.62);

    border: 1px solid rgba(57, 255, 20, 0.25);

    border-radius: 16px;

    padding: 15px;

    backdrop-filter: blur(10px);

    transition: all 0.35s ease;

    overflow: hidden;

    box-shadow:
        0 0 18px rgba(57, 255, 20, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Glow animé */
.card::before {
    content: "";

    position: absolute;

    inset: -1px;

    border-radius: 16px;

    background:
        linear-gradient(
            120deg,
            transparent,
            var(--color-neon),
            transparent
        );

    opacity: 0;

    transition: opacity 0.4s;

    pointer-events: none;
}

.card:hover::before {
    opacity: 0.35;
}

/* IMAGE */
.card img {
    width: 100%;
    height: 160px;

    object-fit: contain;

    transition: transform 0.4s ease, filter 0.4s ease;

    filter:
        drop-shadow(0 0 5px rgba(57, 255, 20, 0.55));
}

/* === HOVER === */
.card:hover {
    transform: translateY(-10px) scale(1.03);

    border-color: var(--color-neon);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(57, 255, 20, 0.18);
}

.card:hover img {
    transform: scale(1.15) rotate(1deg);

    filter:
        drop-shadow(0 0 10px rgba(57, 255, 20, 0.75));
}

/* === BOUTON RETOUR === */
.back-btn {
    position: fixed;

    top: 20px;
    left: 20px;

    padding: 10px 22px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;

    color: var(--color-neon);

    border: 1px solid rgba(57, 255, 20, 0.35);

    background: rgba(0, 30, 0, 0.72);

    backdrop-filter: blur(6px);

    transition: all 0.3s ease;

    z-index: 10;
}

/* Effet néon */
.back-btn:hover {
    background: var(--color-neon);

    color: var(--color-bg);

    box-shadow:
        0 0 5px rgba(57, 255, 20, 0.8),
        0 0 15px rgba(57, 255, 20, 0.6),
        0 0 30px rgba(57, 255, 20, 0.4);

    transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    h1 {
        font-size: 2.1rem;

        margin-bottom: 40px;
    }

    .container {
        padding: 140px 16px 40px;
    }

    .grid {
        gap: 25px;
    }

    .card img {
        height: 120px;
    }
}