:root {
    --neon: #00ff99;
    --accent: #00eaff;
    --bg: #021733;
    --halo-color: rgba(0, 180, 255, 0.3);
}

/* ==========================
   CONTAINER
   ========================== */
#panneau-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px auto 0 auto;
    width: 95%;
}

/* ==========================
   CARTE
   ========================== */
.panneau-card {
    flex: 0 0 calc(33.333% - 8px);
    height: 120px;
    background: linear-gradient(
        135deg, 
        rgba(17,17,17,0.8) 0%,
        rgba(85,85,85,0.3) 100%
    );
    color: var(--neon);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(14, 230, 143, 0.12);
    overflow: hidden;
    position: relative;
}

/* ==========================
   IMAGE HALO & VIGNETTES
   ========================== */
.panneau-card::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 16px;
    background: radial-gradient(circle, var(--halo-color), transparent 60%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.panneau-card .img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease, opacity 0.5s, filter 0.5s ease;
    transform-origin: top left;
    filter: grayscale(100%);
}

.panneau-card .main {
    z-index: 4;
}

.panneau-card .tl,
.panneau-card .tr,
.panneau-card .br {
    opacity: 0;
    z-index: 3;
    filter: grayscale(100%);
}

/* ==========================
   TITRE
   ========================== */
.panneau-card h3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    color: #00c3ff;
    background-color: black;
    border-radius: 12px 12px 0 0;
    padding: 2px 0;
    z-index: 10;
    transition: all 0.5s ease;
}

/* HOVER */
.panneau-card:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--neon);
}

.panneau-card:hover::before {
    opacity: 1;
}

.panneau-card:hover h3 {
    top: auto;
    bottom: 0;
    background-color: rgba(40,40,40,0.85);
    color: #0ff;
}

.panneau-card:hover .main {
    transform: translateY(60px) scale(0.5);
    filter: grayscale(0%);
}

.panneau-card:hover .tl {
    opacity: 1;
    transform: scale(0.5);
    filter: grayscale(0%);
}

.panneau-card:hover .tr {
    opacity: 1;
    transform: translateX(50%) scale(0.5);
    filter: grayscale(0%);
}

.panneau-card:hover .br {
    opacity: 1;
    transform: translate(50%, 60px) scale(0.5);
    filter: grayscale(0%);
}

/* ==========================
   TEXTES & SPANS
   ========================== */
.panneau-card span {
    font-size: 0.8rem;
    color: #00ffea;
}

/* ==========================
   TITRE DE SECTION
   ========================== */
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #00c3ff;
    margin: 0 auto 15px auto;
}

.card-title span {
    font-size: 0.8rem;
}

.card-title:hover {
    transform: scale(1.05);
    text-shadow: 0 0 8px var(--neon);
}

/* ==========================
   MEDIA QUERY
   ========================== */
@media (max-width: 480px) {
    .panneau-card {
        flex: 0 0 calc(50% - 6px);
    }
}
