/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --space-dark: #0f111a;
    --portal-green: #39ff14;
    --portal-blue: #00bfff;
    --text-light: #f4f4f9;
    --card-bg: #1e2235;
}

body {
    background-color: var(--space-dark);
    color: var(--text-light);
    scroll-behavior: smooth;
}

/* Barre de navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(15, 17, 26, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--portal-green);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--portal-green);
    text-shadow: 0 0 10px var(--portal-green);
}

header nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--portal-blue);
}

/* Section Hero (Accueil) */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle, rgba(57,255,20,0.1) 0%, rgba(15,11,26,1) 70%);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--portal-blue);
    text-shadow: 0 0 15px var(--portal-blue);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--portal-green);
    border: 2px solid var(--portal-green);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(57,255,20,0.3);
}

.btn:hover {
    background-color: var(--portal-green);
    color: var(--space-dark);
    box-shadow: 0 0 20px var(--portal-green);
}

/* Section Personnages */
.char-section {
    padding: 60px 5%;
    text-align: center;
}

.char-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    margin-bottom: 40px;
}

/* Grille des cartes */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Cartes de personnages */
.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2f4c;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.2);
    border-color: var(--portal-blue);
}

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

.card-info {
    padding: 20px;
}

.card-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.status.alive { background-color: #2e7d32; color: #fff; }
.status.dead { background-color: #c62828; color: #fff; }
.status.unknown { background-color: #4e5d6c; color: #fff; }

.card-info p {
    font-size: 0.9rem;
    color: #bbb;
    margin-top: 5px;
}

/* Section À propos & Footer */
.about-section {
    padding: 60px 5%;
    background-color: #141724;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

footer {
    text-align: center;
    padding: 30px;
    background-color: var(--space-dark);
    border-top: 1px solid #2a2f4c;
    color: #666;
    font-size: 0.9rem;
}