:root {
    /* Couleurs de base */
    --background-color: #f6f0ee;
    --text-color: #333333;
    --text-color-light: white;

    /* Série 1 - Mode de jeu */
    --mode-btn-color: #FA6400;
    --mode-btn-hover: #E55C00;

    /* Série 2 - Clé musicale */
    --clef-sol-color: #7088A1;
    --clef-fa-color: #7A8B8E;
    --clef-hover: #ffffffaa;

    /* Série 3 - Type de portée */
    --lines-color: #8AA1B1;
    --spaces-color: #9CAEA9;
    --both-color: #D87D6B;

    /* Série 4 - Navigation */
    --check-color: #3E8E7E;
    --next-color: #E7AB46;
    --nav-hover: #FAD6A5;

    /* Styles communs */
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

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

/* En-tête élégant */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.logo-container {
    width: 180px;
}

.logo {
    max-width: 100px;
    height: auto;
}

.spacer {
    width: 180px;
}

.title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    text-align: center;
}

.title-container h1 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: normal;
    letter-spacing: 1px;
}

.title-container .subtitle {
    text-align: center;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Conteneur principal du jeu */
.game-container {
    background: var(--background-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

/* Sections du jeu */
.controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.clef-selection, .mode-selection, .game-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 10px 0;
}

.game-actions {
    margin-top: 20px;
}

.clef-btn, .mode-btn, .action-btn {
    padding: 12px 24px;
    margin: 10px;
    font-size: 1em;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover, .mode-btn:hover, .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: var(--hover-color);
}

button:disabled, .mode-btn:disabled, .action-btn:disabled {
    background: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.clef-btn.selected, .mode-btn.selected {
    background-color: var(--selected-color);
    color: white;
}

.reset-btn {
    background-color: #8E8E8E !important;
    color: white;
    padding: 12px 24px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    text-align: center;
    font-weight: bold;
}

.reset-btn:hover {
    background-color: #A9A9A9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.game-info {
    display: flex;
    gap: 25px;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.info-label {
    color: #555;
    font-weight: normal;
}

.info-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--mode-btn-color);
    padding: 0 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Styles spécifiques pour le score et le niveau */
#score, #level {
    font-size: 32px;
    font-weight: bold;
    color: var(--mode-btn-color);
    padding: 0 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Boutons stylisés */
button {
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
    color: white;
}

/* Styles pour les boutons de mode */
.mode-btn {
    padding: 15px 30px;
    margin: 10px;
    font-size: 1.2em;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.mode-btn:hover::after {
    content: "🎵";
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 32px;
    animation: noteBounce 1.5s ease-out forwards;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.8);
}

@keyframes noteBounce {
    0% {
        opacity: 0;
        transform: translateY(5px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    40% {
        transform: translateY(-25px) scale(1);
    }
    60% {
        opacity: 1;
        transform: translateY(-35px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--hover-color), var(--primary-color));
}

.mode-btn.selected {
    background-color: var(--selected-color);
}

/* Styles pour les boutons de clé */
.clef-btn {
    background: linear-gradient(135deg, #7088A1, #5A6B80);
    color: white;
    padding: 12px 24px;
    font-size: 1.1em;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    margin: 0 10px;
    font-weight: bold;
}

.clef-btn[data-clef="fa"],
#bass-clef {
    background: linear-gradient(135deg, #7A8B8E, #5F6E70);
}

.clef-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.clef-btn.selected {
    background: linear-gradient(135deg, #5A6B80, #7088A1);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #7088A1;
    transform: scale(1.05);
}

#bass-clef.selected {
    background: linear-gradient(135deg, #5F6E70, #7A8B8E);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #7A8B8E;
    transform: scale(1.05);
}

/* Styles pour les boutons de note */
.note-mode-btn {
    background-color: #2AA7DD;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-mode-btn:hover {
    background-color: #1e8bb8;
}

/* Styles pour les boutons d'action */
.action-btn {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    color: white;
    padding: 12px 24px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    text-align: center;
    font-weight: bold;
    border: 1px solid transparent;
}

.action-btn:hover {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.action-btn:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour les boutons désactivés */
button:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Styles pour les boutons de note */
.note-button {
    background: linear-gradient(135deg, #5C6BC0, #3F51B5);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    min-width: 60px;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    margin: 5px;
    border: 1px solid transparent;
}

.note-button:hover {
    background: linear-gradient(135deg, #3F51B5, #5C6BC0);
    transform: translateY(-2px);
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.note-button:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.note-button.selected {
    background: linear-gradient(135deg, #3F51B5, #303F9F);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #3F51B5;
    transform: scale(1.05);
}

/* Style pour le bouton de réinitialisation */
.reset-game-btn {
    background: linear-gradient(135deg, #8AA1B1, #7088A1);
    color: white;
    padding: 8px 16px;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    min-width: 100px;
    text-align: center;
    font-weight: bold;
    margin-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.reset-game-btn:hover {
    background: linear-gradient(135deg, #7088A1, #8AA1B1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.reset-game-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Portée musicale */
.staff-container {
    width: 100%;
    margin: 25px 0;
    position: relative;
}

canvas {
    display: block;
    width: 100%;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--background-color);
}

/* Boutons de notes */
.note-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.note-button {
    padding: 12px 24px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.note-button:hover {
    background-color: var(--hover-color);
}

.note-button:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Styles pour les boutons de mode */
.mode-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.mode-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    background: var(--hover-color);
}

.mode-btn:disabled {
    background-color: var(--disabled-color);
    border-color: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Styles for Ligne, Interligne, and Ligne Interligne Buttons */
.clef-btn {
    padding: 10px 20px;
    font-size: 1em;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clef-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: var(--selected-color);
}

/* Instructions */
.instructions-container {
    margin-top: 30px;
}

.instructions {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.instructions h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

.hide-button, .show-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.hide-button:hover, .show-button:hover {
    background-color: var(--accent-color);
}

.show-button {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: var(--light-gray);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Styles pour la notification de niveau */
.level-up {
    color: white;
    font-size: 36px;
    font-weight: bold;
    animation: levelUpAnimation 2.5s ease-in-out;
    background: linear-gradient(135deg, #FA6400, #E55C00);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    max-width: 90%;
    text-align: center;
    z-index: 2000;
    border: 3px solid white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform-origin: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
}

@keyframes levelUpAnimation {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    10% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    20% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
    30% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(0.98); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.02); opacity: 1; }
    60% { transform: translate(-50%, -50%) scale(0.99); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1.01); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    90% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
    }
    
    .game-info {
        justify-content: space-between;
    }
}

/* Bouton de sélection de niveau */
.level-select-btn {
    margin-left: 15px;
    font-size: 14px;
    padding: 5px 10px;
}

/* Sélecteur de niveau */
.level-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.level-selector-content {
    background-color: var(--primary-color);
    padding: 2em;
    border-radius: 8px;
    text-align: center;
}

.level-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1em;
    margin: 2em 0;
}

.level-btn {
    padding: 1em;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.level-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.close-btn {
    padding: 0.8em 1.5em;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-controls {
        flex-direction: column;
        gap: 1em;
    }
    
    .note-buttons {
        flex-wrap: wrap;
    }
    
    .level-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Écran d'accueil */
.welcome-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--background-color);
    padding: 20px;
}

.welcome-content {
    max-width: 800px;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-logo {
    width: auto;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
}

.welcome-content h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

.game-instructions {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    margin-top: 12px;
    margin-bottom: 35px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #FA6400;
    text-align: center;
}

.game-instructions h2 {
    color: #FA6400;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    display: block;
}

.game-instructions h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, #FA6400, transparent);
    margin: 8px auto 15px;
    position: relative;
}

.game-instructions p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 10px;
}

.game-instructions ul {
    list-style-type: none;
    padding: 0;
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.game-instructions li {
    margin: 10px 0;
    padding-left: 12px;
    position: relative;
    line-height: 1.5;
}

.game-instructions li:before {
    content: "♪";
    position: absolute;
    left: -8px;
    top: -12px;
    color: #FA6400;
    font-size: 30px;
    font-weight: bold;
    margin-right: 12px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.mode-selection {
    margin-top: 30px;
}

.mode-selection .mode-btn {
    background: linear-gradient(135deg, #FA6400, #F57C00);
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin: 0 10px;
    font-weight: bold;
    border: 1px solid transparent;
    position: relative;
    overflow: visible;
}

.mode-selection .mode-btn:hover {
    background: linear-gradient(135deg, #F57C00, #FA6400);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mode-selection .mode-btn:hover::after {
    content: "🎵";
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 32px;
    animation: noteBounce 1.5s ease-out forwards;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.8);
}

/* Interface du jeu */
.game-interface {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
}

.game-info {
    display: flex;
    gap: 2em;
    align-items: center;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2em;
}

.clef-selection, .mode-selection {
    display: flex;
    gap: 1em;
}

.clef-btn, .mode-btn {
    padding: 0.8em 1.5em;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.clef-btn.selected, .mode-btn.selected {
    background-color: var(--accent-color);
    color: white;
}

.game-area {
    margin: 2em 0;
    text-align: center;
}

#staff {
    background-color: white;
    border: 1px solid var(--border-color);
    margin-bottom: 1em;
}

.note-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 2em 0;
}

.note-button {
    padding: 12px 24px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.note-button:hover {
    background-color: var(--hover-color);
}

.note-button:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 2em 0;
}

.action-btn {
    padding: 1em 2em;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styles spécifiques pour les boutons de sélection de mode de note */
.note-mode-selection {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.note-mode-selection button {
    background-color: #2aa7dd;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    text-align: center;
    font-weight: bold;
}

.note-mode-selection button:hover {
    background-color: #1e8bb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.note-mode-selection button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.note-mode-selection button.selected {
    background-color: #2aa7dd;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #2aa7dd;
    transform: scale(1.05);
}

.note-mode-selection button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Zone de feedback */
.feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
    display: none;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
}

.feedback.success {
    color: #2e7d32;
    background: linear-gradient(to right, #c8e6c9, #a5d6a7); /* Dégradé pour succès */
    border: 2px solid #2e7d32; /* Bordure colorée */
}

.feedback.error {
    color: #c62828;
    background: linear-gradient(to right, #ffcdd2, #ef9a9a); /* Dégradé pour erreur */
    border: 2px solid #c62828; /* Bordure colorée */
}

/* Animation pour les boutons */
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.mode-btn:hover, .clef-btn:hover, .action-btn:hover, .note-button:hover {
    animation: buttonPulse 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .welcome-content {
        padding: 20px;
    }
    
    .game-logo {
        max-width: 200px;
    }
    
    .mode-btn, .clef-btn, .action-btn, .note-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Styles pour les boutons de mode de note */
#lines-btn, #spaces-btn, #both-btn {
    background: linear-gradient(135deg, #5E97F6, #4285F4);
    color: white;
    padding: 10px 18px;
    font-size: 0.95em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    min-width: 100px;
    text-align: center;
    font-weight: bold;
    border: 1px solid transparent;
}

#lines-btn:hover, #spaces-btn:hover, #both-btn:hover {
    background: linear-gradient(135deg, #4285F4, #5E97F6);
    transform: translateY(-2px);
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#lines-btn:active, #spaces-btn:active, #both-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#lines-btn.selected, #spaces-btn.selected, #both-btn.selected {
    background: linear-gradient(135deg, #4285F4, #3367D6);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #4285F4;
    transform: scale(1.05);
}

#lines-btn:disabled, #spaces-btn:disabled, #both-btn:disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed;
}

/* Conteneur des boutons de mode de note */
.note-mode-selection {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

/* Série 1 - Mode de jeu */
.mode-selection .mode-btn {
    background: linear-gradient(135deg, #FA6400, #F57C00);
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin: 0 10px;
    font-weight: bold;
    border: 1px solid transparent;
    position: relative;
    overflow: visible;
}

.mode-selection .mode-btn:hover {
    background: linear-gradient(135deg, #F57C00, #FA6400);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mode-selection .mode-btn:hover::after {
    content: "🎵";
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 32px;
    animation: noteBounce 1.5s ease-out forwards;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.8);
}

/* Série 2 - Clé musicale */
.clef-selection .clef-btn {
    background: linear-gradient(135deg, #7088A1, #5A6B80);
    color: white;
    padding: 12px 24px;
    font-size: 1.1em;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    margin: 0 10px;
    font-weight: bold;
}

.clef-selection .clef-btn[data-clef="fa"],
#bass-clef {
    background: linear-gradient(135deg, #7A8B8E, #5F6E70);
}

.clef-selection .clef-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.clef-selection .clef-btn.selected {
    background: linear-gradient(135deg, #5A6B80, #7088A1);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #7088A1;
    transform: scale(1.05);
}

#bass-clef.selected {
    background: linear-gradient(135deg, #5F6E70, #7A8B8E);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #7A8B8E;
    transform: scale(1.05);
}

/* Série 3 - Type de portée */
.note-mode-selection .mode-btn {
    background-color: var(--lines-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    min-width: 120px;
    margin: 5px;
}

.note-mode-selection .mode-btn[data-mode="spaces"] {
    background-color: var(--spaces-color);
}

.note-mode-selection .mode-btn[data-mode="both"] {
    background-color: var(--both-color);
}

.note-mode-selection .mode-btn:hover {
    transform: scale(1.05);
}

/* Série 4 - Navigation */
.game-actions .action-btn {
    padding: 12px 24px;
    font-size: 1.2em;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    min-width: 150px;
    margin: 0 10px;
    color: var(--text-color-light);
}

#check-btn {
    background: linear-gradient(135deg, #26A69A, #009688);
}

#check-btn:hover {
    background: linear-gradient(135deg, #009688, #26A69A);
}

#next-btn {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
}

#next-btn:hover {
    background: linear-gradient(135deg, #FB8C00, #FFA726);
}

.game-actions .action-btn:hover {
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Styles communs pour tous les boutons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.selected {
    box-shadow: 0 0 0 2px var(--text-color-light);
}

.mode-container {
    background-color: #f6f0ee; /* Fond clair */
    border: 1px solid #ccc; /* Bordure fine */
    border-radius: 8px; /* Coins arrondis */
    padding: 10px; /* Espacement interne */
    margin: 0 auto; /* Centre l'encadré */
    width: fit-content; /* Ajuste la largeur à son contenu */
    display: flex; /* Utilise flexbox pour l'alignement */
    flex-direction: column; /* Aligne les boutons verticalement */
    align-items: center; /* Centre les boutons horizontalement */
}

.mode-btn {
    margin-bottom: 6px; /* Espace entre les boutons */
}

.note-mode-selection button.selected {
    background-color: #2aa7dd;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #2aa7dd;
    transform: scale(1.05);
}

.completion-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.completion-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.completion-content h2 {
    color: #9B4DCA;
    font-size: 28px;
    margin-bottom: 20px;
}

.completion-content p {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.completion-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.completion-options p {
    font-size: 20px;
    font-weight: bold;
}

#continue-tempo, #back-to-menu, #back-to-menu-max {
    background-color: #9B4DCA;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    min-width: 180px;
}

#continue-tempo:hover, #back-to-menu:hover, #back-to-menu-max:hover {
    background-color: #8A3DBB;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

body.progression-mode .mode-container .mode-btn:nth-child(2) {
    background-color: #FF8C42;
    border: 2px solid #FFF;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.free-mode .mode-container .mode-btn:first-child {
    background-color: #FF8C42;
    border: 2px solid #FFF;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.tempo-mode .mode-container .mode-btn:nth-child(3) {
    background-color: #FF8C42;
    border: 2px solid #FFF;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Style pour le Mode Tempo dans l'écran d'accueil */
#tempo-mode-btn {
    background-color: #9B4DCA;
    color: white;
}

#tempo-mode-btn:hover {
    background-color: #8A3DBB;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Styles pour le bouton Pause */
.pause-btn {
    background-color: #4A7A8C;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.pause-btn:hover {
    background-color: #3A6A7C;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.pause-btn.resume {
    background-color: #56A187;
}

.pause-btn.resume:hover {
    background-color: #468A77;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Panneau de pause */
.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pause-panel {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.pause-panel h3 {
    margin-top: 0;
    color: #4A7A8C;
    font-size: 24px;
}

.pause-panel p {
    margin-bottom: 20px;
    font-size: 16px;
}

.resume-btn {
    background-color: #56A187;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background-color: #468A77;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#start-tempo-btn {
    background: linear-gradient(135deg, #9B4DCA, #7E3AB5);
    color: white;
    font-weight: bold;
    min-width: 200px;
    margin-top: 20px;
}

#start-tempo-btn:hover {
    background: linear-gradient(135deg, #7E3AB5, #9B4DCA);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#start-tempo-btn:disabled {
    background: linear-gradient(135deg, #CCC, #AAA);
    cursor: not-allowed;
    opacity: 0.7;
}

#continue-tempo svg, #back-to-menu svg, #back-to-menu-max svg {
    margin-right: 8px;
    vertical-align: middle;
}

.mode-btn:hover svg {
    transform: scale(1.1);
}

/* Animation pour le message de changement de vitesse */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.speed-change-message {
    animation: fadeInOut 2.5s ease-in-out forwards;
}

.speed-message-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.speed-message-content p {
    margin: 0;
    font-size: 18px;
}

/* Animations pour l'effet "Oups !" */
@keyframes oups-bounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    20% {
        transform: scale(1.2);
        opacity: 1;
    }
    40% {
        transform: scale(0.9);
    }
    60% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes explosion {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

.oups-content {
    position: relative;
    text-align: center;
}

#timer-container {
    display: none;
}

body.tempo-mode #timer-container {
    display: flex;
    align-items: center;
}

#timer {
    font-size: 1.5em;
    font-weight: bold;
    color: #4A7A8C;
    min-width: 70px;
    text-align: center;
}

/* Animation pour le temps qui s'écoule */
@keyframes timerWarning {
    0% { color: #4A7A8C; }
    50% { color: #e74c3c; }
    100% { color: #4A7A8C; }
}

#timer.warning {
    animation: timerWarning 1s infinite;
}

.intro-text {
    margin-bottom: 15px;
}

.signature-container {
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    height: 50px;
}

.brand-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #E67E22;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.brand-name {
    background: linear-gradient(to right, #E67E22 0%, #E67E22 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: signatureWrite 3s ease-in-out forwards;
}

@keyframes signatureWrite {
    0% {
        background-position: 100% 0;
        transform: translateX(-8px) skewX(-15deg);
    }
    15% {
        transform: translateX(-4px) skewX(-10deg);
    }
    30% {
        transform: translateX(0) skewX(0);
    }
    100% {
        background-position: 0 0;
        transform: translateX(0) skewX(0);
    }
}

/* Logo miniature dans l'interface de jeu */
.logo-mini {
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding: 0 10px 0 0;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-logo {
    width: auto;
    max-width: 45px;
    height: auto;
    opacity: 1;
    transition: all 0.3s ease;
}

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

/* Pied de page avec signature et slogan */
.footer-brand {
    text-align: center;
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid rgba(250, 100, 0, 0.2);
}

.footer-brand .signature-container {
    margin-bottom: 5px;
}

.footer-brand .brand-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: #FA6400;
    font-weight: 700;
    background: linear-gradient(to right, #FA6400 0%, #FA6400 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: signatureWrite 2s ease-in-out forwards;
}

.footer-brand .slogan {
    font-style: italic;
    font-size: 0.9rem;
    color: #777;
    margin: 0;
    font-family: 'Georgia', serif;
}

/* Animation pour les notes de musique au survol */
@keyframes noteBounce {
    0% {
        opacity: 0;
        transform: translateY(5px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    40% {
        transform: translateY(-25px) scale(1);
    }
    60% {
        opacity: 1;
        transform: translateY(-35px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* Styles pour tablettes uniquement */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* Écran d'accueil */
    .welcome-content {
        padding: 30px 25px;
    }
    
    .game-logo {
        max-width: 300px;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .brand-name {
        font-size: 1.8rem;
    }
    
    .game-instructions {
        padding: 20px;
    }
    
    .game-instructions li {
        padding-left: 35px;
    }
    
    .game-instructions li:before {
        font-size: 26px;
    }
    
    .mode-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-selection .mode-btn {
        width: 80%;
        max-width: 300px;
        margin-bottom: 15px;
        font-size: 1.1em;
    }
    
    /* Interface de jeu */
    .game-interface {
        padding: 20px 15px;
    }
    
    .game-header {
        flex-wrap: wrap;
    }
    
    .logo-mini {
        margin-right: 10px;
    }
    
    .mini-logo {
        max-width: 55px;
    }
    
    .game-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    
    .info-item {
        padding: 8px 12px;
    }
    
    .info-value, #score, #level {
        font-size: 26px;
    }
    
    .reset-game-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .clef-selection, .note-mode-selection {
        margin: 10px 0;
        width: 100%;
        justify-content: center;
    }
    
    .clef-btn, .note-mode-btn {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .game-area {
        margin: 15px 0;
    }
    
    #staff {
        height: 180px;
    }
    
    .note-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .note-button {
        padding: 15px 20px;
        margin: 5px;
        min-width: 60px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .action-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .footer-brand {
        margin-top: 15px;
        padding: 10px 0;
    }
    
    .footer-brand .brand-name {
        font-size: 1.4rem;
    }
    
    .footer-brand .slogan {
        font-size: 0.85rem;
    }
    
    /* Sélecteur de niveau */
    .level-selector-content {
        width: 90%;
        max-height: 80%;
        padding: 20px;
    }
    
    .level-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .level-btn {
        padding: 15px 5px;
        font-size: 0.9em;
    }
}

/* Message pour mode portrait sur mobile */
@media screen and (max-width: 767px) and (orientation: portrait) {
    .game-interface::before {
        content: "📱 Tournez votre appareil en mode paysage pour une meilleure expérience de jeu 🎵";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(250, 100, 0, 0.9);
        color: white;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        font-weight: bold;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
}

/* Optimisation mobile en mode paysage */
@media screen and (max-width: 767px) and (orientation: landscape) {
    /* Écran d'accueil */
    .welcome-content {
        padding: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-logo {
        max-width: 200px;
        margin: 0 20px 10px 0;
    }
    
    .intro-text, .signature-container, .game-instructions {
        flex: 1 1 300px;
    }
    
    .game-instructions {
        padding: 15px;
        margin: 10px 0;
    }
    
    .game-instructions h2 {
        font-size: 1.2rem;
    }
    
    .game-instructions li {
        font-size: 0.9rem;
        padding-left: 25px;
    }
    
    .game-instructions li:before {
        font-size: 20px;
        top: -8px;
    }
    
    .mode-selection {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mode-selection .mode-btn {
        flex: 0 1 200px;
        margin: 5px;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Interface de jeu */
    .game-interface {
        padding: 10px;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 20px);
    }
    
    .game-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 5px;
        margin-bottom: 5px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .logo-mini {
        flex: 0 0 auto;
    }
    
    .mini-logo {
        max-width: 35px;
    }
    
    .game-info {
        flex: 1;
        padding: 5px 10px;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        background: none;
        box-shadow: none;
    }
    
    .info-item {
        padding: 5px 10px;
        flex: 0 0 auto;
    }
    
    .info-value, #score, #level {
        font-size: 20px;
    }
    
    .reset-game-btn, .pause-btn, .stop-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
        margin-left: 5px;
    }
    
    .game-content {
        display: flex;
        flex: 1;
        overflow: hidden;
    }
    
    .game-controls {
        flex: 0 0 200px;
        display: flex;
        flex-direction: column;
        padding-right: 10px;
        overflow-y: auto;
    }
    
    .clef-selection, .note-mode-selection {
        margin: 5px 0;
    }
    
    .clef-btn, .note-mode-btn {
        padding: 8px;
        font-size: 0.85rem;
        margin: 2px;
    }
    
    .game-main-area {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .game-area {
        flex: 1;
        margin: 5px 0;
        display: flex;
        align-items: center;
        min-height: 120px;
    }
    
    #staff {
        width: 100%;
        min-height: 120px;
        height: auto;
    }
    
    .note-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin: 5px 0;
    }
    
    .note-button {
        padding: 10px;
        font-size: 0.9rem;
        margin: 2px;
        min-width: 40px;
    }
    
    .action-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 5px;
    }
    
    .action-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .footer-brand {
        padding: 5px 0;
        margin-top: 5px;
    }
    
    .footer-brand .brand-name {
        font-size: 1.1rem;
    }
    
    .footer-brand .slogan {
        font-size: 0.75rem;
    }
    
    /* Sélecteur de niveau */
    .level-selector-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .level-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        margin: 10px 0;
    }
    
    .level-btn {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
}


