/* ===== Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* ===== Header ===== */
header {
    background-color: #cc0000; /* Rouge Pokédex */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    background-color: #fff;
    color: #cc0000;
    border-radius: 8px;
}

/* ===== NAVBAR ===== */

.navbar {
    background-color: #cc0000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: relative;
}

/* Logo image gauche */
.logo-left img {
    height: 60px;
    width: auto;
}

.logo-left img:hover {
    transform: scale(1.05);
}

/* Pokeball centre */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-center img {
    width: 60px;
}

/* Menu droite */
.menu-right {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu-right li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
}

.menu-right li a:hover {
    color: #ffcb05;
}

/* ===== Main ===== */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

main h1 {
    font-size: 2.5em;
    color: #cc0000;
    margin-bottom: 10px;
}

main h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 40px;
}

/* ===== Listing / Carte Pokemon ===== */
.carte {
    background: #fff;
    border: 2px solid #cc0000;
    border-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    width: 250px;
    margin: 15px;
    display: inline-block;
    vertical-align: top;
    transition: transform 0.3s ease;
}

.carte:hover {
    transform: scale(1.05);
}

.carte img {
    width: 100%;
    border-bottom: 2px solid #cc0000;
    border-radius: 12px 12px 0 0;
}

.carte .infos {
    padding: 15px;
    text-align: left;
}

.carte .infos h3 {
    color: #cc0000;
    margin-bottom: 5px;
}

.carte .infos p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* ===== Footer ===== */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    header nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .carte {
        width: 90%;
        margin: 15px auto;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .logo-center {
        position: static;
        transform: none;
    }

    .menu-right {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .logo-left img {
    height: 60px;
    }
}