body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #f0f0f0;
    color: #333;
}

.aperture-logo {
    width: 40px;
    height: 40px;
    display: inline-block;
    border: 3px solid #333;
    border-radius: 50%;
    position: relative;
}

.aperture-logo::before {
    content: '';
    position: absolute;
    inset: 5px;
    background-color: #333;
    border-radius: 50%;
    clip-path: polygon(50% 0%, 65% 35%, 100% 35%, 75% 60%, 85% 100%, 50% 75%, 15% 100%, 25% 60%, 0% 35%, 35% 35%);
}

/* Style pour le mot entier après validation */
.word.correct {
    color: #2b7a78;
}

.word.incorrect {
    color: #e53e3e;
    text-decoration: underline;
}

/* Style pour les caractères individuels pendant la frappe */
.char.correct {
    color: #2b7a78;
}

.char.incorrect {
    color: #e53e3e;
    background-color: #fed7d7;
    /* Fond rouge clair pour l'erreur */
    border-radius: 2px;
}

/* --- STYLES POUR LES SUCCÈS --- */
.achievement-button {
    /* position: absolute;
    top: 1.5rem; */
    /* 24px */
    /* right: 1.5rem; */
    /* 24px */
    background-color: #f0f0f0;
    border-radius: 50%;
    padding: 0.5rem;
    /* 8px */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid #cbd5e0;
    /* gray-400 */
}

.achievement-button:hover {
    transform: scale(1.1);
    background-color: #e2e8f0;
    /* gray-300 */
    border-color: #ff6600;
}

.achievement-button svg {
    width: 2rem;
    /* 32px */
    height: 2rem;
    /* 32px */
    color: #4a5568;
    /* gray-700 */
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    max-width: 90%;
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-top: 8px solid #ff6600;
}

.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #718096;
    /* gray-600 */
}

.modal-close-btn:hover {
    color: #2d3748;
    /* gray-800 */
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    /* gray-300 */
    border-radius: 0.375rem;
    gap: 1rem;
    transition: all 0.2s ease-in-out;
}

.achievement-item.unlocked {
    border-color: #2b7a78;
    /* Couleur "correct" */
    background-color: #f0fafa;
}

.achievement-item.locked {
    opacity: 0.6;
    background-color: #f7fafc;
    /* gray-100 */
}

.achievement-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-item.unlocked .achievement-icon {
    background-color: #2b7a78;
    color: white;
}

.achievement-item.locked .achievement-icon {
    background-color: #cbd5e0;
    /* gray-400 */
    color: #718096;
    /* gray-600 */
}

.achievement-icon svg {
    width: 28px;
    height: 28px;
}

.achievement-details h4 {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
    /* gray-800 */
}

.achievement-item.locked .achievement-details h4 {
    color: #718096;
    /* gray-600 */
}

.achievement-details p {
    font-size: 0.9rem;
    color: #4a5568;
    /* gray-700 */
}

/* --- FIN STYLES SUCCÈS --- */

/* --- STYLE POUR LE BOUTON DE LANGUE --- */
.language-button {
    background-color: #f0f0f0;
    border-radius: 0.375rem;
    /* rounded-md */
    padding: 0.5rem 0.75rem;
    /* py-2 px-3 */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid #cbd5e0;
    /* gray-400 */
    font-size: 1.125rem;
    /* text-lg */
    font-weight: bold;
    color: #4a5568;
    /* gray-700 */
    line-height: 1.5rem;
    /* Correspond à 24px, pour aligner hauteur avec l'icône trophée */
    min-width: 48px;
    /* Taille minimale */
    text-align: center;
}

.language-button:hover {
    transform: scale(1.05);
    background-color: #e2e8f0;
    /* gray-300 */
    border-color: #ff6600;
}

/* Style pour le bouton Musique */
.music-button {
    background-color: #f0f0f0;
    border-radius: 50%;
    padding: 0.5rem;
    /* 8px */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid #cbd5e0;
    /* gray-400 */
    width: 48px;
    /* 3rem */
    height: 48px;
    /* 3rem */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Empêche le bouton de rétrécir */
}

.music-button:hover {
    transform: scale(1.1);
    background-color: #e2e8f0;
    /* gray-300 */
    border-color: #ff6600;
}

.music-button svg {
    width: 1.75rem;
    /* 28px */
    height: 1.75rem;
    /* 28px */
    color: #4a5568;
    /* gray-700 */
}

/* --- FIN STYLES MUSIQUE --- */

/* --- NOUVEAU: STYLE POUR SLIDER VOLUME --- */
#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 8px;
    background: #cbd5e0;
    /* gray-400 */
    outline: none;
    border-radius: 4px;
    vertical-align: middle;
    /* Aligner avec le centre du bouton */
    transition: all 0.2s ease-in-out;
}

#volume-slider:hover {
    background: #a0aec0;
    /* gray-500 */
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ff6600;
    /* Orange */
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ff6600;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
}

/* --- FIN STYLE SLIDER --- */

/* --- STYLES POUR MODAL D'ERREUR 404 --- */
.error-modal-content {
    background-color: #000033;
    /* Bleu très foncé */
    color: #f0f0f0;
    /* Blanc cassé */
    padding: 2rem;
    border-radius: 0.25rem;
    /* Bords carrés */
    max-width: 90%;
    width: 600px;
    border: 2px solid #f0f0f0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    font-family: 'Share Tech Mono', monospace;
}

.error-modal-content h2 {
    color: #ff6600;
    /* Orange Aperture */
    border-bottom: 2px solid #ff6600;
    padding-bottom: 0.5rem;
}

.error-modal-content pre {
    /* 'pre' est utilisé pour conserver le formatage et les sauts de ligne */
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
}

/* --- FIN STYLES ERREUR 404 --- */
