.home {
    max-width: 1300px;
    margin: auto;
    padding: 30px;
    color: #fff;
}

.home-feature {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.home-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,10,60,.9), rgba(60,10,60,.85));
}

.home-feature > * {
    position: relative;
    z-index: 2;
}

/* Filtre système */

.home-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}

.home-filter .label {
    color: #f5d76e;
    font-weight: bold;
}

.home-filter button {
    background: #2b2f6c;
    border: 1px solid #5f6cff;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
}

.home-filter button.active {
    background: #ff5fa2;
}

/* Bloc top (dossier + flash) */

.home-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* Dossier Principal */

.home-feature {
    background: linear-gradient(135deg, #2a2a72, #4b1248);
    padding: 35px;
    border-radius: 12px;
    position: relative;
}

.badge-exclusive {
    background: #ff4f9a;
    padding: 5px 10px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.home-feature h2 {
    font-size: 42px;
    line-height: 1.1;
}

.home-feature h2 span {
    color: #ffb347;
}

.home-feature .subtitle {
    margin-top: 15px;
    max-width: 80%;
    color: #ddd;
}

/* Flash infos */

.home-flash {
    border: 2px solid #f5d76e;
    padding: 15px;
}

.home-flash h3 {
    text-align: center;
    margin-bottom: 15px;
    background: #1e1e50;
    padding: 8px;
}

.home-flash ul {
    list-style: none;
    padding: 0;
}

.home-flash li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.home-flash img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.home-flash .date {
    font-size: 11px;
    color: #5fd1ff;
}

/* Grille de cartes */

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Carte */
.card {
    background-color: rgba(0, 0, 0, .2);
    border: 3px solid;
    position: relative;
    overflow: hidden;
}

.card-amiga { border-color: #ff5fa2; }
.card-cpc   { border-color: #3bc7ff; }
.card-st    { border-color: #4cff88; }

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card img {
    transition: transform .4s ease;
}

.card:hover img {
    transform: scale(1.15);
}

.card .system {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    padding: 4px 8px;
    background: #000;
}

.card-body {
    padding: 15px;
}

.card-body h4 {
    margin: 0 0 10px;
}

.card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(120,100,255,.4);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}


@keyframes glow {
    0%   { box-shadow: 0 0 10px rgba(120,100,255,.2); }
    100% { box-shadow: 0 0 25px rgba(120,100,255,.6); }
}

.card:hover {
    animation: glow .6s alternate infinite;
}


.card-amiga .system { background:#005fab; }
.card-cpc   .system { background:#00c75b; }
.card-st    .system { background:#999999; }

.score {
    position:absolute;
    top:10px;
    right:10px;
    background:#1e1e50;
    padding:5px 8px;
    font-size:12px;
    border:2px solid #f5d76e;
}


/* Tags */

.tags span {
    background: #1e1e50;
    padding: 4px 6px;
    font-size: 11px;
    margin-right: 5px;
    display: inline-block;
}

@media (max-width: 1100px) {
    .home-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-feature h2 {
        font-size: 30px;
    }
}

@media (hover: none) {
    .card:hover img {
        transform: none;
    }
}
