/* 🌍 Réinitialisation générale et style du corps inspiré de B-oie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e9dbc1; /* Fond de B-oie */
    color: #333; /* Texte plus sombre pour la lisibilité */
}

/* 🏗️ Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 🗣️ En-tête */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #2c3e50; /* Bleu ardoise foncé du menu de B-oie */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2em;
    color: #34495e; /* Autre bleu foncé de B-oie */
}

/* 🃏 Nouveau style des cartes de projet */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.game-card {
    background: #fcfbf7; /* Fond clair du menu de B-oie */
    border-radius: 10px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.game-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #3498db; /* Bleu de B-oie */
}

.game-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.game-description {
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.game-card.main-game {
    background: #fffde7; /* A slightly yellower tint for the main game */
    border-color: #3498db;
}

/* Section secrète adaptée */
.secret-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fcfbf7;
    padding: 15px;
    border-top: 1px solid #ddd;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    animation: slideInUp 1s ease;
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-label {
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
    letter-spacing: 2px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e9dbc1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    color: white;
}

/* Style des modales adapté */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8); /* Fond bleu ardoise foncé transparent */
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fcfbf7;
    color: #333;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    animation: popIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.modal h2 {
    color: #2c3e50;
}

.modal input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    text-align: center;
    background: #e9dbc1;
}

.modal button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background-color: #3498db;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.modal button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bouton de retour */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    z-index: 10;
}

.back-button:hover {
    background-color: #2c3e50;
}