/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #f0f0f0;
    line-height: 1.6;
    text-align: center;
}

/* =========================
   HEADER & NAV
========================= */
header {
    background: linear-gradient(90deg, #1f1f1f, #111111);
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

header h1 {
    font-size: 2.5rem;
    color: #ff3c3c;
    margin-bottom: 10px;
    text-shadow: 2px 2px #000;
}

nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ff3c3c;
    text-shadow: 1px 1px #000;
}

/* =========================
   MES RESEAUX
========================= */
#mes-reseaux {
    padding: 40px 20px;
    background-color: #1a1a1a;
    border-radius: 15px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-align: center;
}

#mes-reseaux h2 {
    color: #ff3c3c;
    margin-bottom: 20px;
}

.reseaux {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.reseaux a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}

.reseaux a img:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(255,60,60,0.5);
}

/* =========================
   DISCORD SECTION
========================= */
.discord {
    background-color: #1a1a1a;
    padding: 40px 20px;
    margin: 20px auto;
    border-radius: 15px;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.discord img {
    width: 150px;
    margin: 20px 0;
}

.discord a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 25px;
    background-color: #7289da;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.discord a:hover {
    background-color: #5b6eae;
    transform: scale(1.05);
}

/* =========================
   JEUX CARDS
========================= */
#jeux {
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Les liens autour des cartes deviennent des flex items pour flex-wrap */
.card-link {
    display: flex;
    flex-direction: column;
    width: 280px; /* largeur de chaque bloc */
    text-decoration: none;
    color: inherit;
}

.card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    width: 100%; /* prend toute la largeur du lien */
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-link:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 60, 60, 0.5);
}

.card h3 {
    color: #ff3c3c;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #ddd;
}

/* =========================
   CONTACT SECTION
========================= */
#contact {
    background: linear-gradient(90deg, #111111, #1f1f1f);
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #111111;
    padding: 20px;
    margin-top: 40px;
    color: #888;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    #jeux {
        flex-direction: column;
        align-items: center;
    }

    .card-link {
        width: 90%;
    }
}
