/* --- RESET & BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.minecraft-theme {
    font-family: 'Lexend', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    min-height: 100vh;
}

h1, h2, .pixel-font {
    font-family: 'Press Start 2P', cursive;
}

/* --- NAVIGATION --- */
.nav-container {
    padding: 20px;
    display: flex;
    justify-content: flex-start;
}

/* --- BOUTON RETOUR & ACTIONS --- */
.btn-retour, .btn-action {
    background-color: #00AA00;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 20px;
    border: 4px solid #000000;
    box-shadow: inset -4px -4px 0px #006600;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75em;
    display: inline-block;
    cursor: pointer;
    image-rendering: pixelated;
    transition: transform 0.1s;
}

.btn-retour:hover, .btn-action:hover {
    background-color: #00CC00;
    transform: scale(1.05);
}

.btn-quitter {
    background-color: #aa0000;
    box-shadow: inset -4px -4px 0px #660000;
}

/* --- CONTENEURS --- */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid #000;
    padding: 30px;
    margin-top: 20px;
    border-radius: 10px;
}

/* --- AJUSTEMENT DES CARTES (SECTION 3) --- */

.section-card {
    /* Assure que la carte ne s'écrase pas */
    min-height: 320px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligne le bouton toujours en bas */
    padding: 20px;
    overflow: hidden; /* Empêche le texte de sortir de la bordure */
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 60px; /* Réserve un espace fixe pour le titre */
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem; /* Réduit un peu la taille (était souvent à 1rem ou plus) */
    line-height: 1.4;
    color: #2c3e50;
    word-wrap: break-word; /* Coupe le mot s'il est trop long */
}

.section-description {
    font-size: 0.75rem;
    margin-bottom: 15px;
    flex-grow: 1; /* Prend l'espace restant sans pousser le reste */
}

.btn-retour-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #3b3b3b;
    color: #FFD700;
    padding: 10px 20px;
    border: 4px solid #000;
    box-shadow: 4px 4px 0px #222;
    font-family: 'Press Start 2P', cursive;
    text-decoration: none;
    font-size: 0.6em;
    image-rendering: pixelated;
    transition: all 0.2s;
}

.btn-retour-home:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background-color: #4a4a4a;
}

/* Bouton spécifique pour la Gazette et l'Espace Parents */
.btn-navigation-curio {
    display: inline-block;
    padding: 12px 24px;
    background: #FFCC00; /* Jaune vif */
    color: #000;
    border: 4px solid #000;
    box-shadow: 4px 4px 0px #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65em;
    text-decoration: none;
    image-rendering: pixelated;
    transition: 0.1s;
}

.btn-navigation-curio:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background: #FFD700;
}